common

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright Red Hat

Copyright Red Hat

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	//ApplierFlags: The generic options from the applier cli-runtime.
	ApplierFlags *genericclioptionsapplier.ApplierFlags
	// Header specify a file that needs to be added at the beginning of each template
	Header string
	//A list of Paths
	Paths         []string
	ValuesPath    string
	Values        map[string]interface{}
	ResourcesType ResourceType
	//The file to output the resources will be sent to the file.
	OutputFile string
	SortOnKind bool
	Exclude    []string
}

func NewOptions

func NewOptions(applierFlags *genericclioptionsapplier.ApplierFlags, streams genericclioptions.IOStreams) *Options

func (*Options) Complete

func (o *Options) Complete(cmd *cobra.Command, args []string) (err error)

func (*Options) Run

func (o *Options) Run() error

func (*Options) Validate

func (o *Options) Validate() error

type ResourceType

type ResourceType string
const CoreResources ResourceType = "core-resources"
const CustomResources ResourceType = "custom-resources"
const Deployments ResourceType = "deployments"

Jump to

Keyboard shortcuts

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