config

package
v0.0.0-...-e5742bd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ClusterContext

type ClusterContext struct {
	Schemas           *types.Schemas
	Management        *ManagementContext
	ClusterName       string
	RESTConfig        rest.Config
	UnversionedClient rest.Interface
	K8sClient         kubernetes.Interface

	Apps       appsv1beta2.Interface
	Project    projectv3.Interface
	Core       corev1.Interface
	RBAC       rbacv1.Interface
	Extensions extv1beta1.Interface
}

func NewClusterContext

func NewClusterContext(managementConfig, config rest.Config, clusterName string) (*ClusterContext, error)

func (*ClusterContext) Start

func (w *ClusterContext) Start(ctx context.Context) error

func (*ClusterContext) StartAndWait

func (w *ClusterContext) StartAndWait(ctx context.Context) error

func (*ClusterContext) WorkloadContext

func (w *ClusterContext) WorkloadContext() *WorkloadContext

type ManagementContext

type ManagementContext struct {
	LocalConfig       *rest.Config
	RESTConfig        rest.Config
	UnversionedClient rest.Interface
	K8sClient         kubernetes.Interface
	Events            record.EventRecorder
	EventLogger       event.Logger
	Schemas           *types.Schemas
	Scheme            *runtime.Scheme

	Management managementv3.Interface
	RBAC       rbacv1.Interface
	Core       corev1.Interface
	// contains filtered or unexported fields
}

func NewManagementContext

func NewManagementContext(config rest.Config) (*ManagementContext, error)

func (*ManagementContext) Start

func (c *ManagementContext) Start(ctx context.Context) error

func (*ManagementContext) StartAndWait

func (c *ManagementContext) StartAndWait() error

type WorkloadContext

type WorkloadContext struct {
	Schemas           *types.Schemas
	ClusterName       string
	RESTConfig        rest.Config
	UnversionedClient rest.Interface
	K8sClient         kubernetes.Interface

	Apps       appsv1beta2.Interface
	Project    projectv3.Interface
	Core       corev1.Interface
	RBAC       rbacv1.Interface
	Extensions extv1beta1.Interface
}

func NewWorkloadContext

func NewWorkloadContext(config rest.Config, clusterName string) (*WorkloadContext, error)

func (*WorkloadContext) Start

func (w *WorkloadContext) Start(ctx context.Context) error

func (*WorkloadContext) StartAndWait

func (w *WorkloadContext) StartAndWait(ctx context.Context) error

Jump to

Keyboard shortcuts

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