Dagger
Search

miniflux

This module implements the miniflux python library.
https://miniflux.app/docs/api.html

Installation

dagger install github.com/levlaz/daggerverse/miniflux@v0.3.0

Entrypoint

Return Type
Miniflux !
Arguments
NameTypeDefault ValueDescription
hostString !"https://miniflux.app"url for miniflux instance
tokenSecret !-miniflux API token
categoryIdString -optional, category id for blogroll, if not set will grab all feeds.
Example
dagger -m github.com/levlaz/daggerverse/miniflux@7976d232224c7050f5d4131f273cdd8a7a2acf1d call \
 --host string --token env:MYSECRET
func (m *myModule) example(host string, token *Secret) *Miniflux  {
	return dag.
			Miniflux(host, token)
}
@function
def example(host: str, token: dagger.Secret, ) -> dag.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.

https://daggerverse.dev/mod/github.com/levlaz/daggerverse/openring@39958eb474dcb1922439b2a829be6af71d6bc263#Openring.openring

Return Type
File !
Example
dagger -m github.com/levlaz/daggerverse/miniflux@7976d232224c7050f5d4131f273cdd8a7a2acf1d call \
 --host string --token env:MYSECRET generate-sources
func (m *myModule) example(host string, token *Secret) *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@7976d232224c7050f5d4131f273cdd8a7a2acf1d call \
 --host string --token env:MYSECRET generate-blogroll
func (m *myModule) example(host string, token *Secret) *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
NameTypeDefault ValueDescription
headingString !"Recent Favorite Blog Posts"section heading text
limitInteger !10number of posts to return
Example
dagger -m github.com/levlaz/daggerverse/miniflux@7976d232224c7050f5d4131f273cdd8a7a2acf1d call \
 --host string --token env:MYSECRET generate-starred --heading string --limit integer
func (m *myModule) example(host string, token *Secret, heading string, limit int) *File  {
	return dag.
			Miniflux(host, token).
			GenerateStarred(heading, limit)
}
@function
def example(host: str, token: dagger.Secret, heading: str, limit: int) -> dagger.File:
	return (
		dag.miniflux(host, token)
		.generate_starred(heading, limit)
	)
@func()
example(host: string, token: Secret, heading: string, limit: number): File {
	return dag
		.miniflux(host, token)
		.generateStarred(heading, limit)
}