option

package
v0.77.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

func WithAssets

func WithAssets(flag bool) Option

func WithAssetsManager

func WithAssetsManager(assets *graph.AssetManager) Option

func WithBaseURL

func WithBaseURL(baseURL string) Option

func WithDependencies

func WithDependencies(flag bool) Option

func WithEmbedFS

func WithEmbedFS(embedFS *embed.FS) Option

func WithInstance

func WithInstance(instance *graph.Instance) Option

func WithIsRoot

func WithIsRoot(flag bool) Option

func WithParentWorkflowID

func WithParentWorkflowID(parentWorkflowID string) Option

func WithProjectID

func WithProjectID(projectID string) Option

func WithTemplate

func WithTemplate(template string) Option

func WithURI

func WithURI(uri string) Option

type Options

type Options struct {
	WithDependencies bool
	WithAssets       bool
	EmbedFS          *embed.FS

	ProjectID        string
	URI              string
	Template         string
	BaseURL          string
	ParentWorkflowID string
	Instance         *graph.Instance
	Assets           *graph.AssetManager
	Root             *bool
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions(opts ...Option) *Options

func (*Options) IsRoot

func (o *Options) IsRoot() bool

func (*Options) Options

func (o *Options) Options(opts ...Option) []Option

func (*Options) StorageOptions

func (o *Options) StorageOptions(opts ...storage.Option) []storage.Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL