Documentation ¶
Index ¶
- type Context
- func (c *Context) CertificateStore() autocert.DirCache
- func (c *Context) CloudClient() (*cloud.Client, error)
- func (c *Context) CloudCredentials() (id, token string, err error)
- func (c *Context) Config() (*config.Config, error)
- func (c *Context) ConfigStoreDir() string
- func (c *Context) Err() io.Writer
- func (c *Context) Home() string
- func (c *Context) In() FileReader
- func (c *Context) Logger() *log.Logger
- func (c *Context) ManifestManager() *deploy.Manager
- func (c *Context) NewConfig(provider, repository, branch string) *config.Config
- func (c *Context) Out() FileWriter
- func (c *Context) ProxyLogger() *log.Logger
- func (c *Context) ServicesConfig() (*config.ServicesConfig, error)
- func (c *Context) SetCloudCredentials(id string, token string) error
- func (c *Context) Subnetter(CIDRs []string) *docker.Subnetter
- func (c *Context) UnvalidatedServicesConfig() (*config.ServicesConfig, error)
- type FileReader
- type FileWriter
- type Option
- func WithConfig(config *config.Config) Option
- func WithConfigHome(home string) Option
- func WithDefaultConfigHome() Option
- func WithDefaultInternalLogger() Option
- func WithDefaultProxyLogger() Option
- func WithLogger(logger *log.Logger) Option
- func WithServicesConfig(servicesConfig *config.ServicesConfig) Option
- func WithStdio(stdin FileReader, stdout FileWriter, stderr io.Writer) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is a struct that holds the context of the application
func (*Context) CertificateStore ¶
func (*Context) CloudCredentials ¶
func (*Context) Config ¶
Config returns the cached nest config or loads it if it hasn't been loaded yet.
func (*Context) ConfigStoreDir ¶
func (*Context) In ¶
func (c *Context) In() FileReader
func (*Context) ManifestManager ¶
func (*Context) Out ¶
func (c *Context) Out() FileWriter
func (*Context) ProxyLogger ¶
func (*Context) ServicesConfig ¶
func (c *Context) ServicesConfig() (*config.ServicesConfig, error)
ServicesConfig returns the cached services config or loads it if it hasn't been loaded yet.
func (*Context) SetCloudCredentials ¶
func (*Context) UnvalidatedServicesConfig ¶
func (c *Context) UnvalidatedServicesConfig() (*config.ServicesConfig, error)
type FileReader ¶
FileReader provides a minimal interface for Stdout.
type FileWriter ¶
FileWriter provides a minimal interface for Stdin.
type Option ¶
func WithConfig ¶
func WithConfigHome ¶
func WithDefaultConfigHome ¶
func WithDefaultConfigHome() Option
func WithDefaultInternalLogger ¶
func WithDefaultInternalLogger() Option
func WithDefaultProxyLogger ¶
func WithDefaultProxyLogger() Option
func WithLogger ¶
func WithServicesConfig ¶
func WithServicesConfig(servicesConfig *config.ServicesConfig) Option
func WithStdio ¶
func WithStdio(stdin FileReader, stdout FileWriter, stderr io.Writer) Option
Click to show internal directories.
Click to hide internal directories.