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) 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) 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) StartAndWait ¶
func (w *WorkloadContext) StartAndWait(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.