base

package
v1.8.17 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Flags = FlagsStruct{
	OutputType: common.OutputTypePretty,
}

Functions

func GetOperatorConfig added in v1.7.2

func GetOperatorConfig(
	ctx context.Context,
	operatorClient *OperatorClient,
	scheme *runtime.Scheme,
) (*v1alpha1.OperatorConfig, error)

func NewKubernetesClient

func NewKubernetesClient() (client.Client, *rest.Config, error)

func NewKubernetesReader

func NewKubernetesReader(cc client.Client) (client.Reader, error)

func NewRigClient

func NewRigClient(ctx context.Context, fs afero.Fs, prompter common.Prompter) (rig.Client, error)

func Register

func Register(f interface{}) func(cmd *cobra.Command, args []string) error

Types

type FlagsStruct

type FlagsStruct struct {
	KubeContext    string
	KubeConfig     string
	RigConfig      string
	RigContext     string
	Namespace      string
	Project        string
	Environment    string
	KubeFile       string
	OperatorConfig string
	OutputType     common.OutputType
}

type OperatorClient

type OperatorClient struct {
	Pipeline     pipelineconnect.ServiceClient
	Capabilities capabilitiesconnect.ServiceClient
}

func NewOperatorClient

func NewOperatorClient(ctx context.Context, cc client.Client, cfg *rest.Config) (*OperatorClient, error)

Jump to

Keyboard shortcuts

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