miniflux
This module implements the miniflux python library.https://miniflux.app/docs/api.html
Installation
dagger install github.com/levlaz/daggerverse/miniflux@v0.4.0Entrypoint
Return Type
Miniflux !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| host | String ! | "https://miniflux.app" | url for miniflux instance | 
| token | Secret ! | - | miniflux API token | 
| categoryId | String | - | optional, category id for blogroll, if not set will grab all feeds. | 
Example
dagger -m github.com/levlaz/daggerverse/miniflux@a3dc5b44e9b94554f074ee4fbd925bf1a1046616 call \
 --host string --token env:MYSECRETfunc (m *MyModule) Example(host string, token *dagger.Secret) *dagger.Miniflux  {
	return dag.
			Miniflux(host, token)
}@function
def example(host: str, token: dagger.Secret, ) -> dagger.Miniflux:
	return (
		dag.miniflux(host, token)
	)@func()
example(host: string, token: Secret, ): Miniflux {
	return dag
		.miniflux(host, token)
}Types
Miniflux 🔗
generateSources() 🔗
Generate sources file for openring
This function grabs all the feeds from a given category in miniflux, grabs the feed_url and then generates a sources.txt file for the purpose of feeding it into the openring module.
Return Type
File !Example
dagger -m github.com/levlaz/daggerverse/miniflux@a3dc5b44e9b94554f074ee4fbd925bf1a1046616 call \
 --host string --token env:MYSECRET generate-sourcesfunc (m *MyModule) Example(host string, token *dagger.Secret) *dagger.File  {
	return dag.
			Miniflux(host, token).
			GenerateSources()
}@function
def example(host: str, token: dagger.Secret, ) -> dagger.File:
	return (
		dag.miniflux(host, token)
		.generate_sources()
	)@func()
example(host: string, token: Secret, ): File {
	return dag
		.miniflux(host, token)
		.generateSources()
}generateBlogroll() 🔗
Generate blogroll template
This function uses the Jinja templating library to create a blog roll list that you can embed in your own website based on the blogs you read in miniflux.
Return Type
File !Example
dagger -m github.com/levlaz/daggerverse/miniflux@a3dc5b44e9b94554f074ee4fbd925bf1a1046616 call \
 --host string --token env:MYSECRET generate-blogrollfunc (m *MyModule) Example(host string, token *dagger.Secret) *dagger.File  {
	return dag.
			Miniflux(host, token).
			GenerateBlogroll()
}@function
def example(host: str, token: dagger.Secret, ) -> dagger.File:
	return (
		dag.miniflux(host, token)
		.generate_blogroll()
	)@func()
example(host: string, token: Secret, ): File {
	return dag
		.miniflux(host, token)
		.generateBlogroll()
}generateStarred() 🔗
Generate list of starred posts
This function generates a file of links for your starred posts, by default you will get the 10 most recent.
Return Type
File !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| heading | String ! | "Recent Favorite Blog Posts" | section heading text | 
| direction | String ! | "desc" | Order to retrieve posts, desc or asc | 
| limit | Integer ! | 10 | number of posts to return | 
Example
dagger -m github.com/levlaz/daggerverse/miniflux@a3dc5b44e9b94554f074ee4fbd925bf1a1046616 call \
 --host string --token env:MYSECRET generate-starred --heading string --direction string --limit integerfunc (m *MyModule) Example(host string, token *dagger.Secret, heading string, direction string, limit int) *dagger.File  {
	return dag.
			Miniflux(host, token).
			GenerateStarred(heading, direction, limit)
}@function
def example(host: str, token: dagger.Secret, heading: str, direction: str, limit: int) -> dagger.File:
	return (
		dag.miniflux(host, token)
		.generate_starred(heading, direction, limit)
	)@func()
example(host: string, token: Secret, heading: string, direction: string, limit: number): File {
	return dag
		.miniflux(host, token)
		.generateStarred(heading, direction, limit)
}