cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNaglfarCmd

func NewNaglfarCmd(logger *zap.Logger, streams genericclioptions.IOStreams) *cobra.Command

Types

type NaglfarClient

type NaglfarClient struct {
	client.Client
	*kubernetes.Clientset
}

func (*NaglfarClient) GetMachine

func (c *NaglfarClient) GetMachine(ctx context.Context, name string) (*naglfarv1.Machine, error)

func (*NaglfarClient) GetMachineByHostIP

func (c *NaglfarClient) GetMachineByHostIP(ctx context.Context, hostIP string) (*naglfarv1.Machine, error)

func (*NaglfarClient) GetObject

func (c *NaglfarClient) GetObject(ctx context.Context, obj runtime.Object) error

func (*NaglfarClient) GetResource

func (c *NaglfarClient) GetResource(ctx context.Context, ns string, name string) (*naglfarv1.TestResource, error)

Jump to

Keyboard shortcuts

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