Dagger
Search

skeeter

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/jghiloni/atproto-utils/skeeter@v0.1.0

Entrypoint

Return Type
Skeeter !
Arguments
NameTypeDescription
pdsUrlString Custom PDS URL (defaults to https://bsky.social)
usernameString bsky username (without the leading @)
appPasswordSecret bsky app password. get an app password at https://bsky.app/settings/app-passwords
Example
dagger -m github.com/jghiloni/atproto-utils/skeeter@fa5e5cdb0d62a26375d52dd721303a3b9fa36b68 call \
func (m *myModule) example() *Skeeter  {
	return dag.
			Skeeter()
}
@function
def example() -> dag.Skeeter:
	return (
		dag.skeeter()
	)
@func()
example(): Skeeter {
	return dag
		.skeeter()
}

Types

Skeeter 🔗

The struct represents the information necessary to post to Bluesky

withCustomPdsurl() 🔗

Sets the bluesky custom Personal Data Server URL

Return Type
Skeeter !
Arguments
NameTypeDefault ValueDescription
pdsUrlString !-No description provided
Example
dagger -m github.com/jghiloni/atproto-utils/skeeter@fa5e5cdb0d62a26375d52dd721303a3b9fa36b68 call \
 with-custom-pdsurl --pds-url string
func (m *myModule) example(pdsUrl string) *Skeeter  {
	return dag.
			Skeeter().
			WithCustomPdsurl(pdsUrl)
}
@function
def example(pds_url: str) -> dag.Skeeter:
	return (
		dag.skeeter()
		.with_custom_pdsurl(pds_url)
	)
@func()
example(pdsUrl: string): Skeeter {
	return dag
		.skeeter()
		.withCustomPdsurl(pdsUrl)
}

withUsername() 🔗

Sets the bluesky username

Return Type
Skeeter !
Arguments
NameTypeDefault ValueDescription
usernameString !-No description provided
Example
dagger -m github.com/jghiloni/atproto-utils/skeeter@fa5e5cdb0d62a26375d52dd721303a3b9fa36b68 call \
 with-username --username string
func (m *myModule) example(username string) *Skeeter  {
	return dag.
			Skeeter().
			WithUsername(username)
}
@function
def example(username: str) -> dag.Skeeter:
	return (
		dag.skeeter()
		.with_username(username)
	)
@func()
example(username: string): Skeeter {
	return dag
		.skeeter()
		.withUsername(username)
}

withAppPassword() 🔗

Sets the app password for a bluesky user (see https://bsky.app/settings/app-passwords)

Return Type
Skeeter !
Arguments
NameTypeDefault ValueDescription
appPasswordSecret !-No description provided
Example
dagger -m github.com/jghiloni/atproto-utils/skeeter@fa5e5cdb0d62a26375d52dd721303a3b9fa36b68 call \
 with-app-password --app-password env:MYSECRET
func (m *myModule) example(appPassword *Secret) *Skeeter  {
	return dag.
			Skeeter().
			WithAppPassword(appPassword)
}
@function
def example(app_password: dagger.Secret) -> dag.Skeeter:
	return (
		dag.skeeter()
		.with_app_password(app_password)
	)
@func()
example(appPassword: Secret): Skeeter {
	return dag
		.skeeter()
		.withAppPassword(appPassword)
}

publish() 🔗

Creates (and maybe publishes) a Bluesky post, or skeet

Return Type
String !
Arguments
NameTypeDefault ValueDescription
postTextString !-The text to post to Bluesky
parseLinksBoolean trueIf true, parse text and convert URLs to hyperlinks
publishBoolean trueIf false, do not publish the skeet. If this is false, the value returned will be the post serialized to JSON
images[File ! ] -Any images listed will be uploaded to bluesky and embedded
Example
dagger -m github.com/jghiloni/atproto-utils/skeeter@fa5e5cdb0d62a26375d52dd721303a3b9fa36b68 call \
 publish --post-text string
func (m *myModule) example(ctx context.Context, postText string) string  {
	return dag.
			Skeeter().
			Publish(ctx, postText)
}
@function
async def example(post_text: str) -> str:
	return await (
		dag.skeeter()
		.publish(post_text)
	)
@func()
async example(postText: string): Promise<string> {
	return dag
		.skeeter()
		.publish(postText)
}