gateway

package
v0.0.0-...-b5015ec Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 6

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