platform

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCannotDelete = errors.New("cannot delete config on this platform")
)

Functions

func Names

func Names() (names []string)

Types

type Config

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

Config represents a set of options that map to a particular platform.

func Get

func Get(name string) (config Config, ok bool)

func MustGet

func MustGet(name string) Config

func (Config) DelConfig added in v2.14.0

func (c Config) DelConfig(f *resource.Fetcher) error

func (Config) FetchFunc

func (c Config) FetchFunc() providers.FuncFetchConfig

func (Config) InitFunc added in v2.7.0

func (c Config) InitFunc() providers.FuncInit

InitFunc returns a function that performs additional fetcher configuration post-config fetch. This ensures that networking is already available if a platform needs to reach out to the metadata service to fetch additional options / data.

func (Config) Name

func (c Config) Name() string

func (Config) NewFetcherFunc

func (c Config) NewFetcherFunc() providers.FuncNewFetcher

func (Config) Status

func (c Config) Status(stageName string, f resource.Fetcher, statusErr error) error

Status takes a Fetcher and the error from Run (from engine)

type Name

type Name string

Name is used to identify an platform. It must be in the set of registered platforms.

func (*Name) Set

func (s *Name) Set(val string) error

func (Name) String

func (s Name) String() string

Jump to

Keyboard shortcuts

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