ocisetup

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Creds    string
	Provider SourceOCIProvider
	URL      string
	Timeout  time.Duration
}

func DefaultOptions added in v0.0.3

func DefaultOptions() *Options

func (*Options) BindFlags

func (o *Options) BindFlags(fs *pflag.FlagSet)

BindFlags will parse the given pflag.FlagSet

func (*Options) Build

func (o *Options) Build(ctx context.Context) (*client.Client, error)

type SourceOCIProvider added in v0.0.3

type SourceOCIProvider string

func (*SourceOCIProvider) Description added in v0.0.3

func (p *SourceOCIProvider) Description() string

func (*SourceOCIProvider) Set added in v0.0.3

func (p *SourceOCIProvider) Set(str string) error

func (*SourceOCIProvider) String added in v0.0.3

func (p *SourceOCIProvider) String() string

func (*SourceOCIProvider) ToOCIProvider added in v0.0.3

func (p *SourceOCIProvider) ToOCIProvider() (oci.Provider, error)

func (*SourceOCIProvider) Type added in v0.0.3

func (p *SourceOCIProvider) Type() string

Jump to

Keyboard shortcuts

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