generate

package
v2.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplicationCommand

func NewApplicationCommand(o *ApplicationOptions) *cobra.Command

func NewCommand

func NewCommand(o *Options) *cobra.Command

NewCommand returns a new generate manifests command

func NewExperimentCommand

func NewExperimentCommand(o *ExperimentOptions) *cobra.Command

func NewRBACCommand

func NewRBACCommand(o *RBACOptions) *cobra.Command

func NewTrialCommand

func NewTrialCommand(o *TrialOptions) *cobra.Command

Types

type ApplicationOptions

type ApplicationOptions struct {
	// Config is the Optimize Configuration used to generate the application
	Config *config.OptimizeConfig
	// IOStreams are used to access the standard process streams
	commander.IOStreams

	Generator       application.Generator
	Resources       []string
	DefaultResource konjurev1beta2.Kubernetes
}

type ExperimentOptions

type ExperimentOptions struct {
	// Config is the Optimize Configuration used to generate the experiment
	Config *config.OptimizeConfig
	// IOStreams are used to access the standard process streams
	commander.IOStreams

	Generator experiment.Generator

	Filename  string
	Resources []string
}

type Options

type Options struct {
	// Config is the Optimize Configuration
	Config *config.OptimizeConfig
}

Options includes the configuration for the subcommands

type RBACOptions

type RBACOptions struct {
	// Config is the Optimize Configuration used to generate the role binding
	Config *config.OptimizeConfig
	// Printer is the resource printer used to render generated objects
	Printer commander.ResourcePrinter
	// IOStreams are used to access the standard process streams
	commander.IOStreams

	Filename           string
	Name               string
	IncludeNames       bool
	ClusterRole        bool
	ClusterRoleBinding bool
	// contains filtered or unexported fields
}

func (*RBACOptions) Complete

func (o *RBACOptions) Complete(ctx context.Context)

type TrialOptions

type TrialOptions struct {
	experiments.SuggestOptions

	Filename       string
	Job            string
	JobTrialNumber int
}

Jump to

Keyboard shortcuts

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