cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVersionCmd

func NewVersionCmd(streams genericclioptions.IOStreams) *cobra.Command

Types

type ApplyOptions

type ApplyOptions struct {
	genericclioptions.IOStreams

	ChartFlags   ChartFlags
	HookFlags    HookFlags
	DiffFlags    DiffFlags
	DiffOptions  *DiffOptions
	DryRun       bool
	ServerDryRun bool
	ShowDiff     bool
	Prune        bool

	Printer         printers.ContextPrinter
	Recorder        recorders.OperationRecorder
	DynamicClient   dynamic.Interface
	DiscoveryClient discovery.CachedDiscoveryInterface
	OpenAPISchema   openapi.Resources
	Mapper          meta.RESTMapper
	BuilderFactory  func() *resource.Builder
	Encoder         resources.Encoder
	Visitor         chart.Visitor
	HookExecutor    chart.HookExecutor
	Deleter         deletions.Deleter

	Namespace        string
	EnforceNamespace bool
}

func NewApplyOptions

func NewApplyOptions(streams genericclioptions.IOStreams) *ApplyOptions

func (*ApplyOptions) Complete

func (*ApplyOptions) Run

func (o *ApplyOptions) Run() error

func (*ApplyOptions) Validate

func (o *ApplyOptions) Validate() error

type ChartFlags

type ChartFlags struct {
	ChartDir    string
	ChartFilter []string
	Recursive   bool
	ValueFiles  []string
}

func (*ChartFlags) AddFlags

func (f *ChartFlags) AddFlags(cmd *cobra.Command)

func (*ChartFlags) ToVisitor

func (f *ChartFlags) ToVisitor(namespace string) (chart.Visitor, error)

type DeleteOptions

type DeleteOptions struct {
	genericclioptions.IOStreams

	ChartFlags ChartFlags
	HookFlags  HookFlags
	PrintFlags PrintFlags
	DryRun     bool
	Prune      bool

	DynamicClient   dynamic.Interface
	DiscoveryClient discovery.CachedDiscoveryInterface
	BuilderFactory  func() *resource.Builder
	Mapper          meta.RESTMapper
	Encoder         resources.Encoder
	Visitor         chart.Visitor
	HookExecutor    chart.HookExecutor
	Deleter         deletions.Deleter

	Namespace        string
	EnforceNamespace bool
}

func NewDeleteOptions

func NewDeleteOptions(streams genericclioptions.IOStreams) *DeleteOptions

func (*DeleteOptions) Complete

func (*DeleteOptions) DeleteChart added in v0.0.2

func (o *DeleteOptions) DeleteChart(c *chart.Chart) error

func (*DeleteOptions) Run

func (o *DeleteOptions) Run() error

type DiffFlags

type DiffFlags struct {
	Context    int
	PrintFlags PrintFlags
}

func NewDefaultDiffFlags

func NewDefaultDiffFlags() DiffFlags

func (*DiffFlags) AddFlags

func (f *DiffFlags) AddFlags(cmd *cobra.Command)

func (*DiffFlags) ToPrinter

func (f *DiffFlags) ToPrinter() diff.Printer

type DiffOptions

type DiffOptions struct {
	genericclioptions.IOStreams

	ChartFlags ChartFlags
	DiffFlags  DiffFlags

	OpenAPISchema  openapi.Resources
	DryRunVerifier *apply.DryRunVerifier
	BuilderFactory func() *resource.Builder
	DiffPrinter    diff.Printer
	Encoder        resources.Encoder
	Visitor        chart.Visitor

	Namespace string
}

func NewDiffOptions

func NewDiffOptions(streams genericclioptions.IOStreams) *DiffOptions

func (*DiffOptions) Complete

func (*DiffOptions) Diff

func (o *DiffOptions) Diff(c *chart.Chart) error

Diff performs a diff of a rendered chart and prints it.

func (*DiffOptions) Run

func (o *DiffOptions) Run() error

type DumpValuesOptions

type DumpValuesOptions struct {
	genericclioptions.IOStreams
	ChartFlags
}

func NewDumpValuesOptions

func NewDumpValuesOptions(streams genericclioptions.IOStreams) *DumpValuesOptions

func (*DumpValuesOptions) Complete

func (*DumpValuesOptions) Dump

func (o *DumpValuesOptions) Dump(chartName, chartDir string, additionalValues map[interface{}]interface{}) error

func (*DumpValuesOptions) Run

func (o *DumpValuesOptions) Run() error

type HookFlags

type HookFlags struct {
	NoHooks bool
}

func (*HookFlags) AddFlags

func (f *HookFlags) AddFlags(cmd *cobra.Command)

type PrintFlags added in v0.0.2

type PrintFlags struct {
	NoColor bool
}

func (*PrintFlags) AddFlags added in v0.0.2

func (f *PrintFlags) AddFlags(cmd *cobra.Command)

func (*PrintFlags) ToPrinter added in v0.0.2

func (f *PrintFlags) ToPrinter(dryRun bool) printers.ContextPrinter

type RenderOptions

type RenderOptions struct {
	genericclioptions.IOStreams

	ChartFlags ChartFlags
	HookType   string

	Encoder resources.Encoder
	Visitor chart.Visitor
}

func NewRenderOptions

func NewRenderOptions(streams genericclioptions.IOStreams) *RenderOptions

func (*RenderOptions) Complete

func (*RenderOptions) Run

func (o *RenderOptions) Run() error

func (*RenderOptions) Validate

func (o *RenderOptions) Validate() error

type VersionOptions

type VersionOptions struct {
	genericclioptions.IOStreams

	Short  bool
	Output string
}

func NewVersionOptions

func NewVersionOptions(streams genericclioptions.IOStreams) *VersionOptions

func (*VersionOptions) Run

func (o *VersionOptions) Run() error

func (*VersionOptions) Validate

func (o *VersionOptions) Validate() error

Jump to

Keyboard shortcuts

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