Documentation ¶
Index ¶
- Constants
- func DeployIdParts(id string) (string, string, error)
- func MergeMaps(a, b map[string]interface{}) map[string]interface{}
- type ChartSource
- type Conf
- type Deploy
- type Deploys
- type Jsonnet
- type Labels
- type Lock
- type LockFile
- type Namespace
- type Svc
- func (s Svc) ChartPath(d Deploy) (string, error)
- func (s Svc) Deploys() (Deploys, error)
- func (s Svc) DeploysForEnvironment(environment string) (Deploys, error)
- func (s Svc) GetDeploy(component string, environment string) (*Deploy, error)
- func (s Svc) Init(template string) error
- func (s Svc) InitIfEmpty(template string) error
- func (s Svc) ManifestPath(d *Deploy) (string, error)
- func (s Svc) Set(path string, value interface{}) error
- type With
- type Withs
Constants ¶
View Source
const ( ConfPath = "config" DeployPath = "deploy" ChartsPath = "charts" ResourcesPath = "resources" DefaultConfigFsPerm = 0655 DefaultConfigDirPerm = 0755 Suffix = ".yml" GlobalConfigFile = "simple-ops.yml" LockFileName = "simple-ops.lock" )
Variables ¶
This section is empty.
Functions ¶
func DeployIdParts ¶
DeployIdParts returns "environment.component" or error
Types ¶
type ChartSource ¶
type Deploy ¶
type Deploy struct { Namespace Namespace `json:"namespace"` Labels map[string]string `json:"labels"` Chart string `json:"chart"` Disabled bool `json:"disabled"` With Withs `json:"with"` Values map[string]interface{} `json:"values"` Kustomizations map[string]*types.Kustomization `json:"kustomizations"` KustomizationPaths []string `json:"kustomizationPaths"` Jsonnet map[string]*Jsonnet `json:"jsonnet"` Environment string `json:"-"` Component string `json:"-"` FsSlice map[string][]types.FieldSpec `json:"fsslice"` Chain []string `json:"chain"` }
type Deploys ¶
type Deploys []*Deploy
Deploys is a container for different Deployments of a component
type LockFile ¶
type LockFile struct {
Charts []*ChartSource `json:"charts"`
}
type Svc ¶
type Svc struct {
// contains filtered or unexported fields
}
func (Svc) DeploysForEnvironment ¶
func (Svc) InitIfEmpty ¶
InitIfEmpty creates simple-ops directory and structure in path if directory not exists or empty.
Click to show internal directories.
Click to hide internal directories.