gateway

package
v0.0.0-...-be065d1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 2 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 {
	WatchesPath string `json:"watchesPath,omitempty" yaml:"watchesPath,omitempty"`
	Namespace   string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	Repository  string `json:"repository,omitempty" yaml:"repository,omitempty"`
	Tag         string `json:"tag,omitempty" yaml:"tag,omitempty"`
}

Options contains configuration of the default Gateway

func NewGatewayOptions

func NewGatewayOptions() *Options

NewGatewayOptions creates a default Gateway Option

func (*Options) AddFlags

func (s *Options) AddFlags(fs *pflag.FlagSet, c *Options)

AddFlags add options flags to command line flags, if watchesPath left empty, following options will be ignored

func (*Options) ApplyTo

func (s *Options) ApplyTo(options *Options)

ApplyTo overrides options if it's valid, which watchesPath is not empty

func (*Options) IsEmpty

func (s *Options) IsEmpty() bool

func (*Options) Validate

func (s *Options) Validate() []error

Validate check options values

Jump to

Keyboard shortcuts

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