optutils

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const RegistrationFormat = "<name>[:<artifact type>[:<media type>]]=<JSON target config"

Variables

This section is empty.

Functions

This section is empty.

Types

type Registration

type Registration struct {
	Name         string
	ArtifactType string
	MediaType    string
	Config       json.RawMessage
}

type RegistrationOption

type RegistrationOption struct {
	Registrations []*Registration
	// contains filtered or unexported fields
}

func NewRegistrationOption

func NewRegistrationOption(name, short, desc, usage string) RegistrationOption

func (*RegistrationOption) AddFlags

func (o *RegistrationOption) AddFlags(fs *pflag.FlagSet)

func (*RegistrationOption) Configure

func (o *RegistrationOption) Configure(ctx clictx.Context) error

func (*RegistrationOption) HasRegistrations

func (o *RegistrationOption) HasRegistrations() bool

func (*RegistrationOption) Usage

func (o *RegistrationOption) Usage() string

Jump to

Keyboard shortcuts

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