Documentation ¶
Overview ¶
Package releases implements the releases subcommand structure.
Index ¶
- func FallBackNS(namespace, fallback string) string
- func FilterResult(value interface{}, filter string) (string, error)
- func GetK8sClientset(ctx context.Context, driver driver.WithSource, namespace string) (*kubernetes.Clientset, error)
- type Describe
- type EmbeddedTable
- type Generate
- type GenerateOptions
- type Install
- type Uninstall
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FallBackNS ¶
FallBackNS defines a helper function for ensuring namespace fallback.
func FilterResult ¶
FilterResult helper function allows jq like filtering through a json.
func GetK8sClientset ¶
func GetK8sClientset(ctx context.Context, driver driver.WithSource, namespace string) (*kubernetes.Clientset, error)
GetK8sClientset defines a function which generates a new client connection to kubernetes.
Types ¶
type Describe ¶
type Describe struct { Driver interface { driver.WithNamespace driver.WithReleases driver.WithSource } `json:"driver" yaml:"driver"` }
Describe represents the cluster release describe command object.
type EmbeddedTable ¶
type EmbeddedTable struct { Results []runtime.Object Table *tablewriter.Table Buffer *bytes.Buffer }
EmbeddedTable represents an in memory data aggregator for a single kube manifest kind.
func NewEmbeddedTable ¶
func NewEmbeddedTable() *EmbeddedTable
NewEmbeddedTable defines helper function for generating tabled data.
type Generate ¶
type Generate struct { Driver interface { driver.WithReleases driver.WithSource } `json:"driver" yaml:"driver"` }
Generate represents the generate command which allows for generating new templates of the cluster migrations file.
type GenerateOptions ¶
type GenerateOptions struct { Dir string `json:"dir" yaml:"dir"` Name string `json:"name" yaml:"name"` Tag string `json:"tag" yaml:"tag"` }
GenerateOptions is used for executing the run() method.
type Install ¶
type Install struct { Driver interface { driver.WithNamespace driver.WithReleases driver.WithSource } `json:"driver" yaml:"driver"` }
Install represents the cluster release install command object.
type Uninstall ¶
type Uninstall struct { Driver interface { driver.WithNamespace driver.WithReleases driver.WithSource } `json:"driver" yaml:"driver"` }
Uninstall represents the cluster release uninstall command object.
type Update ¶
type Update struct { Driver interface { driver.WithNamespace driver.WithReleases driver.WithSource } `json:"driver" yaml:"driver"` }
Update represents the cluster release upgrade command object.