releases

package
v2.0.0-alpha.14 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 34 Imported by: 0

Documentation

Overview

Package releases implements the releases subcommand structure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FallBackNS

func FallBackNS(namespace, fallback string) string

FallBackNS defines a helper function for ensuring namespace fallback.

func FilterResult

func FilterResult(value interface{}, filter string) (string, error)

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.

func (Describe) Execute

func (r Describe) Execute(name string, out io.Writer, args []string) error

Execute runs the command.

func (Describe) NewCommand

func (r Describe) NewCommand(ctx context.Context, name string) *cobra.Command

NewCommand creates a new cobra.Command, configures it and returns it.

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.

func (Generate) Execute

func (r Generate) Execute(name string, out io.Writer, args []string) error

Execute runs the command.

func (Generate) NewCommand

func (r Generate) NewCommand(ctx context.Context, name string) *cobra.Command

NewCommand returns a new cobra.Command generate command object.

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.

func (Install) Execute

func (r Install) Execute(name string, out io.Writer, args []string) error

Execute runs the command.

func (Install) NewCommand

func (r Install) NewCommand(ctx context.Context, name string) *cobra.Command

NewCommand creates a new cobra.Command, configures it and returns it.

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.

func (Uninstall) Execute

func (r Uninstall) Execute(name string, out io.Writer, args []string) error

Execute runs the command.

func (Uninstall) NewCommand

func (r Uninstall) NewCommand(ctx context.Context, name string) *cobra.Command

NewCommand creates a new cobra.Command, configures it, and returns it.

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.

func (Update) Execute

func (r Update) Execute(name string, out io.Writer, args []string) error

Execute runs the command.

func (Update) NewCommand

func (r Update) NewCommand(ctx context.Context, name string) *cobra.Command

NewCommand creates a new cobra.Command, configures it and returns it.

Jump to

Keyboard shortcuts

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