types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// contains filtered or unexported fields
}

func NewArgs

func NewArgs(args_ []string) *Args

func (Args) GetValue

func (args Args) GetValue(name string) string

func (Args) GetValueOrDefault

func (args Args) GetValueOrDefault(name, defaultValue string) string

type Client

type Client struct {
	client.Client
	// contains filtered or unexported fields
}

func (Client) Exec

func (c Client) Exec(podName, containerName string, cmd []string) error

func (Client) GetDaemonSet

func (c Client) GetDaemonSet(ctx context.Context, name string) (appsv1.DaemonSet, error)

func (Client) GetDeployment

func (c Client) GetDeployment(ctx context.Context, name string) (appsv1.Deployment, error)

func (Client) GetNamespace

func (c Client) GetNamespace() string

func (Client) GetNode

func (c Client) GetNode(ctx context.Context, name string) (corev1.Node, error)

func (Client) ListAllCommunities

func (c Client) ListAllCommunities(ctx context.Context) ([]apisv1.Community, error)

func (Client) ListClusters

func (c Client) ListClusters(ctx context.Context) ([]apisv1.Cluster, error)

func (Client) ListNodes

func (c Client) ListNodes(ctx context.Context, labels client.MatchingLabels) ([]corev1.Node, error)

type ClientFactory

type ClientFactory struct {
	Namespace string
}

func NewClientFlags

func NewClientFlags() *ClientFactory

func (*ClientFactory) AddFlags

func (cfg *ClientFactory) AddFlags(fs *pflag.FlagSet)

func (ClientFactory) GetClient

func (cfg ClientFactory) GetClient() (*Client, error)

func (ClientFactory) GetConfig

func (cfg ClientFactory) GetConfig() (*rest.Config, error)

type ClientGetter

type ClientGetter interface {
	GetConfig() (*rest.Config, error)
	GetClient() (*Client, error)
}

type Cluster

type Cluster struct {
	Name              string
	CNIType           string
	EdgeLabels        map[string]string
	EndpointIDFormat  string
	NewEndpoint       ftypes.NewEndpointFunc
	EdgeToCommunities map[string][]string
	Communities       map[string]apisv1.Community
	// contains filtered or unexported fields
}

func NewCluster

func NewCluster(client *Client) *Cluster

func (*Cluster) ExtractArgumentsFromFabEdge

func (cluster *Cluster) ExtractArgumentsFromFabEdge() error

func (*Cluster) LoadCommunities

func (cluster *Cluster) LoadCommunities() error

type ExecResult

type ExecResult struct {
	Stdout string
	Stderr string
	Err    error
}

type ObjectKey

type ObjectKey = client.ObjectKey

Jump to

Keyboard shortcuts

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