config

package
v0.0.0-...-0fc9b7b Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSPlatformConfig

type AWSPlatformConfig struct {
}

func (*AWSPlatformConfig) FinalizeConfig

func (c *AWSPlatformConfig) FinalizeConfig(cfg *types.Config)

func (*AWSPlatformConfig) SetFlags

func (c *AWSPlatformConfig) SetFlags(flags *pflag.FlagSet)

type Factory

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

func NewFactory

func NewFactory() *Factory

Platform defines the cloud provider, currently supporting aws, azure, and gcp.

func (*Factory) NewConfig

func (f *Factory) NewConfig(program string) *types.Config

TODO: program param is reserved for program specific configuration lookups.

type GCPPlatformConfig

type GCPPlatformConfig struct {
	Bucket    string
	ProjectID string
	Zone      string
}

func (*GCPPlatformConfig) FinalizeConfig

func (c *GCPPlatformConfig) FinalizeConfig(cfg *types.Config)

func (*GCPPlatformConfig) SetFlags

func (c *GCPPlatformConfig) SetFlags(flags *pflag.FlagSet)

type PlatformConfig

type PlatformConfig interface {
	SetFlags(*pflag.FlagSet)
	FinalizeConfig(*types.Config)
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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