Documentation ¶
Index ¶
- func Create(config CreateConfig) error
- func Delete(config DeleteConfig) error
- func GetParams(envName, nsName string, config GetParamsConfig) (map[string]param.Params, error)
- func List(ksApp app.App) (map[string]Env, error)
- func Rename(from, to string, config RenameConfig) error
- func SetParams(envName, component string, params param.Params, config SetParamsConfig) error
- type CreateConfig
- type DeleteConfig
- type Destination
- type Env
- type GetParamsConfig
- type RenameConfig
- type SetParamsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(config CreateConfig) error
Create creates a new environment for the project.
Types ¶
type CreateConfig ¶
type CreateConfig struct { App app.App Destination Destination Fs afero.Fs K8sSpecFlag string Name string RootPath string OverrideData []byte ParamsData []byte }
CreateConfig is configuration for creating an environment.
type DeleteConfig ¶
DeleteConfig is a configuration for deleting an environment.
type Destination ¶
type Destination struct {
// contains filtered or unexported fields
}
Destination contains destination information for a cluster.
func NewDestination ¶
func NewDestination(server, namespace string) Destination
NewDestination creates an instance of Destination.
func (*Destination) MarshalJSON ¶
func (d *Destination) MarshalJSON() ([]byte, error)
MarshalJSON marshals a Destination to JSON.
func (*Destination) Namespace ¶
func (d *Destination) Namespace() string
Namespace is the namespace of the Kubernetes server that targets should be deployed.
func (*Destination) Server ¶
func (d *Destination) Server() string
Server is URL to the Kubernetes server that the cluster is running on.
type Env ¶
type Env struct { // Name is the environment name. Name string // KubernetesVersion is the version of Kubernetes for this environment. KubernetesVersion string // Destination is the cluster destination for this environment. Destination Destination // Targets are the component namespaces that will be installed. Targets []string }
Env represents a ksonnet environment.
type GetParamsConfig ¶
GetParamsConfig is config items for getting environment params.
type RenameConfig ¶
RenameConfig are options for renaming an environment.
type SetParamsConfig ¶
SetParamsConfig is config items for setting environment params.