framework

package
v0.0.0-...-199cf30 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Image          = "linode/linode-cloud-controller-manager:latest"
	ApiToken       = ""
	DockerRegistry = "kubedbci"
	DBCatalogName  = "9.6-v2"
	StorageClass   = "linode-block-storage"
	Timeout        time.Duration
	RetryInterval  time.Duration
)

Functions

func CreateCluster

func CreateCluster(cluster string) error

func DeleteCluster

func DeleteCluster() error

func GetHTTPResponse

func GetHTTPResponse(link string) (bool, string, error)

func RunScript

func RunScript(script string, args ...string) error

Types

type Framework

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

func New

func New(
	restConfig *rest.Config,
	kubeClient kubernetes.Interface,
	kubeConfig string,
	metricsClient *metricsclientset.Clientset,
) (*Framework, error)

func (Framework) ApplyManifest

func (f Framework) ApplyManifest(manifestPath string) error

func (*Framework) CreateNamespace

func (f *Framework) CreateNamespace() error

func (*Framework) DeleteNamespace

func (f *Framework) DeleteNamespace() error

func (Framework) GetResponseFromPod

func (f Framework) GetResponseFromPod(podName string) (bool, error)

func (*Framework) Invoke

func (f *Framework) Invoke() (*Invocation, error)

func (*Framework) Namespace

func (f *Framework) Namespace() string

func (*Framework) RestConfig

func (f *Framework) RestConfig() *rest.Config

type Invocation

type Invocation struct {
	Cluster *k8sInvocation
	// contains filtered or unexported fields
}

func (*Invocation) GetNodeList

func (i *Invocation) GetNodeList() ([]string, error)

func (*Invocation) WaitForHTTPResponse

func (f *Invocation) WaitForHTTPResponse(link string) error

Jump to

Keyboard shortcuts

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