types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// functions
	FuncGet           = "get"
	FuncAdd           = "add"
	FuncRemove        = "remove"
	FuncRemoveAll     = "remove_all"
	FuncKeepOnly      = "keep_only"
	FuncPrintInfo     = "print_info"
	FuncWaitForReady  = "wait_for_ready"
	FuncWaitForDelete = "wait_for_delete"
	FuncLogin         = "login"
	FuncLogout        = "logout"

	// kinds
	KindSubscription             = "Subscription"
	KindImageContentSourcePolicy = "ImageContentSourcePolicy"
	KindCatalogSource            = "CatalogSource"
	KindNamespace                = "Namespace"
	KindDeployment               = "Deployment"
	KindPod                      = "Pod"
	KindRoute                    = "Route"
	KindInternal                 = "Internal"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Name        string
	DisplayName string
	Version     version.OperatorVersion
	Images      []string
	Phase       corsosv1alpha1.ClusterServiceVersionPhase
}

type Node

type Node struct {
	Name     string                `json:"name"`
	Labels   map[string]string     `json:"labels"`
	IsMaster bool                  `json:"isMaster"`
	Capacity corev1.ResourceList   `json:"capacity"`
	NodeInfo corev1.NodeSystemInfo `json:"nodeInfo"`
}

type PluginConfig

type PluginConfig struct {
	LoadClient     bool          `yaml:"load_client"`
	LoadFromConfig bool          `yaml:"load_from_config"`
	ConfigFile     string        `yaml:"config_file"`
	Server         string        `yaml:"server"`
	Username       string        `yaml:"username"`
	Password       string        `yaml:"password"`
	Token          string        `yaml:"token"`
	Insecure       bool          `yaml:"insecure"`
	TimeoutConfig  TimeoutConfig `yaml:"timeout_config"`
}

PluginConfig struct

func (*PluginConfig) Validate

func (p *PluginConfig) Validate() error

type PortForwardRequest added in v1.1.0

type PortForwardRequest struct {
	Namespace  string                `json:"namespace"`
	Pod        string                `json:"pod"`
	Deployment string                `json:"deployment"`
	Addresses  []string              `json:"addresses"`
	Ports      []string              `json:"ports"`
	Streams    *iostreamTY.IOStreams `json:"-"`
}

type ProviderConfig

type ProviderConfig struct {
	Kind     string        `yaml:"kind"`
	Function string        `yaml:"function"`
	Config   TaskConfig    `yaml:"config"`
	Data     []interface{} `yaml:"data"`
}

ProviderConfig struct

type TaskConfig

type TaskConfig struct {
	Recreate      bool          `yaml:"recreate"`
	TimeoutConfig TimeoutConfig `yaml:"timeout_config"`
}

type TimeoutConfig

type TimeoutConfig struct {
	Timeout              time.Duration `yaml:"timeout"`
	ScanInterval         time.Duration `yaml:"scan_interval"`
	ExpectedSuccessCount int           `yaml:"success_count"`
}

func (*TimeoutConfig) UpdateDefaults

func (tc *TimeoutConfig) UpdateDefaults()

Jump to

Keyboard shortcuts

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