config

package
v0.0.0-...-a80b3ab Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJenkinsInstancePool

func AddJenkinsInstancePool(c *clusterv1alpha1.Cluster)

AddJenkinsInstancePool is adding a instance pool of jenkins to the cluster

func ApplyDefaults

func ApplyDefaults(src runtime.Object) error

func NewAmazonProfileProvider

func NewAmazonProfileProvider(name string, profile string) *tarmakv1alpha1.Provider

func NewClusterMulti

func NewClusterMulti(environment string, name string) *clusterv1alpha1.Cluster

This creates a new cluster for a multi cluster environment

func NewClusterSingle

func NewClusterSingle(environment string, name string) *clusterv1alpha1.Cluster

This creates a new cluster for a single cluster environment

func NewEnvironment

func NewEnvironment(name, contact, project string) *tarmakv1alpha1.Environment

func NewHub

func NewHub(environment string) *clusterv1alpha1.Cluster

This creates a new hub for a multi cluster environment

Types

type Config

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

func New

func New(tarmak interfaces.Tarmak, flags *tarmakv1alpha1.Flags) (*Config, error)

func (*Config) AppendCluster

func (c *Config) AppendCluster(cluster *clusterv1alpha1.Cluster) error

func (*Config) AppendEnvironment

func (c *Config) AppendEnvironment(env *tarmakv1alpha1.Environment) error

func (*Config) AppendProvider

func (c *Config) AppendProvider(prov *tarmakv1alpha1.Provider) error

func (*Config) Cluster

func (c *Config) Cluster(environment string, name string) (cluster *clusterv1alpha1.Cluster, err error)

func (*Config) Clusters

func (c *Config) Clusters(environment string) (clusters []*clusterv1alpha1.Cluster)

func (*Config) Contact

func (c *Config) Contact() string

func (*Config) CurrentCluster

func (c *Config) CurrentCluster() (string, error)

func (*Config) CurrentClusterName

func (c *Config) CurrentClusterName() (string, error)

func (*Config) CurrentEnvironmentName

func (c *Config) CurrentEnvironmentName() (string, error)

func (*Config) Environment

func (c *Config) Environment(name string) (*tarmakv1alpha1.Environment, error)

func (*Config) Environments

func (c *Config) Environments() (environments []*tarmakv1alpha1.Environment)

func (*Config) IgnoreMissingPublicKeyTags

func (c *Config) IgnoreMissingPublicKeyTags() bool

func (*Config) NewAmazonConfigClusterSingle

func (c *Config) NewAmazonConfigClusterSingle() *tarmakv1alpha1.Config

func (*Config) Project

func (c *Config) Project() string

func (*Config) Provider

func (c *Config) Provider(name string) (cluster *tarmakv1alpha1.Provider, err error)

func (*Config) Providers

func (c *Config) Providers() (providers []*tarmakv1alpha1.Provider)

func (*Config) ReadConfig

func (c *Config) ReadConfig() (*tarmakv1alpha1.Config, error)

func (*Config) RemoveEnvironment

func (c *Config) RemoveEnvironment(environment string) error

func (*Config) SetCurrentCluster

func (c *Config) SetCurrentCluster(clusterName string) error

func (*Config) UniqueClusterName

func (c *Config) UniqueClusterName(environment, name string) error

func (*Config) UniqueEnvironmentName

func (c *Config) UniqueEnvironmentName(name string) error

func (*Config) UniqueProviderName

func (c *Config) UniqueProviderName(name string) error

func (*Config) ValidName

func (c *Config) ValidName(name, regex string) error

func (*Config) WingDevMode

func (c *Config) WingDevMode() bool

Jump to

Keyboard shortcuts

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