registration

package
v0.0.0-...-a8fc514 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindOptions

func BindOptions(opts *RawOptions, cmd *cobra.Command) error

func NewCommand

func NewCommand() (*cobra.Command, error)

Types

type Configuration

type Configuration map[string]Provider

type Feature

type Feature struct {
	Name string `yaml:"name"`
	Poll bool   `yaml:"poll"`
}

type Options

type Options struct {
	// contains filtered or unexported fields
}

func (*Options) Register

func (opts *Options) Register(ctx context.Context) error

type Provider

type Provider struct {
	Poll     bool      `yaml:"poll"`
	Features []Feature `yaml:"features"`
}

type RawOptions

type RawOptions struct {
	*cmdutils.RawOptions
	ConfigJSON     string
	SubscriptionID string
	PollFrequency  time.Duration
	PollDuration   time.Duration
}

RawOptions holds input values.

func DefaultOptions

func DefaultOptions() *RawOptions

func (*RawOptions) Validate

func (o *RawOptions) Validate() (*ValidatedOptions, error)

type SkippedRegistrationWait

type SkippedRegistrationWait struct {
	What string
}

func (*SkippedRegistrationWait) Error

func (w *SkippedRegistrationWait) Error() string

type ValidatedOptions

type ValidatedOptions struct {
	// contains filtered or unexported fields
}

func (*ValidatedOptions) Complete

func (o *ValidatedOptions) Complete() (*Options, error)

Jump to

Keyboard shortcuts

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