Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Age ¶
type Age struct {
// Recipients is a list of age recipients
Recipients []string `json:"recipients,omitempty" yaml:"recipients,omitempty"`
}
type BananaFile ¶
type BananaFile struct {
TypeMeta `json:",inline" yaml:",inline"`
MetaData *ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
// Name is the name of this konfig
Name string `json:"name,omitempty" yaml:"name,omitempty"`
// Version is the version of this konfig
Version string `json:"version,omitempty" yaml:"version,omitempty"`
// Clusters is a list of clusters in this konf
Clusters []*Cluster `json:"clusters,omitempty" yaml:"clusters,omitempty"`
// Modules is a list of modules applied to this konfig
Modules []Module `json:"modules,omitempty" yaml:"modules,omitempty"`
// Age controls age-specific attributes
Age *Age `json:"age,omitempty" yaml:"age,omitempty"`
}
type Cluster ¶
type Cluster struct {
MetaData *ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
// Name is the name of this cluster
Name string `json:"name,omitempty" yaml:"name,omitempty"`
// Version is the k8s version of this cluster
Version string `json:"version,omitempty" yaml:"version,omitempty"`
// Ingress is the ingress configuration for services in this cluster
Ingress *Ingress `json:"ingress,omitempty" yaml:"ingress,omitempty"`
}
type Host ¶
type Host struct {
// Prefix is the prefix of this Host instance
Prefix string `json:"prefix,omitempty" yaml:"prefix,omitempty"`
// Wildcard is the wildcard of this Host instance
Wildcard string `json:"wildcard,omitempty" yaml:"wildcard,omitempty"`
// HostName is the hostname of this Host instance
HostName string `json:"hostname,omitempty" yaml:"hostname,omitempty"`
// Delimiter is the delimiter used to concatenate prefix, wildcard and hostname together
Delimiter string `json:"delimiter,omitempty" yaml:"delimiter,omitempty"`
}
type Ingress ¶
type Ingress struct {
// URLFormat is the format string for generating URL's to different services in the cluster
URLFormat string `json:"urlFormat,omitempty" yaml:"urlFormat,omitempty"`
}
type Module ¶
type Module struct {
MetaData *ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
// Name is the name of this module
Name string `json:"name,omitempty" yaml:"name,omitempty"`
// Version is the version of this module, typically translates to a git tag
Version string `json:"version,omitempty" yaml:"version,omitempty"`
// Ref is the git reference name of this module
Ref string `json:"ref,omitempty" yaml:"ref,omitempty"`
// Namespace is the namespace for this module
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
// Opt is options that can be passed to this module
Opts ModuleOpts `json:"opts,omitempty" yaml:"opts,omitempty"`
// Components is a list of components for this module
Components []string `json:"components,omitempty" yaml:"components,omitempty"`
// Hosts is a list of Host types mapped to this module
Hosts *Host `json:"hosts,omitempty" yaml:"hosts,omitempty"`
// Secrets is a list of secrets mapped to this module
Secrets []string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
}
type ModuleOpts ¶
type ModuleOpts map[string]interface{}
type ObjectMeta ¶
type ObjectMeta struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
}
ObjectMeta partially copies apimachinery/pkg/apis/meta/v1.ObjectMeta No need for a direct dependence; the fields are stable.
Click to show internal directories.
Click to hide internal directories.