config

package
v0.0.0-...-4370ff1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 38 Imported by: 6,567

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserStorageContext       types.StorageContext = "user"
	ManagementStorageContext types.StorageContext = "mgmt"
)

Functions

This section is empty.

Types

type CatalogManager

type CatalogManager interface {
	ValidateChartCompatibility(template *managementv3.CatalogTemplateVersion, clusterName string) error
	ValidateKubeVersion(template *managementv3.CatalogTemplateVersion, clusterName string) error
	ValidateRancherVersion(template *managementv3.CatalogTemplateVersion) error
	LatestAvailableTemplateVersion(template *managementv3.CatalogTemplate, clusterName string) (*managementv3.TemplateVersionSpec, error)
	GetSystemAppCatalogID(templateVersionID, clusterName string) (string, error)
}

type ManagementContext

type ManagementContext struct {
	ClientGetter      proxy.ClientGetter
	RESTConfig        rest.Config
	UnversionedClient rest.Interface
	DynamicClient     k8dynamic.Interface
	K8sClient         kubernetes.Interface
	APIExtClient      clientset.Interface
	Schemas           *types.Schemas
	Scheme            *runtime.Scheme
	Dialer            dialer.Factory
	UserManager       user.Manager
	CatalogManager    CatalogManager

	Management managementv3.Interface
	Project    projectv3.Interface
	RBAC       rbacv1.Interface
	Core       corev1.Interface
}

func NewManagementContext

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

func (*ManagementContext) Start

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

type ScaledContext

type ScaledContext struct {
	ClientGetter      proxy.ClientGetter
	KubeConfig        clientcmdapi.Config
	RESTConfig        rest.Config
	UnversionedClient rest.Interface
	K8sClient         kubernetes.Interface
	APIExtClient      clientset.Interface
	Schemas           *types.Schemas
	AccessControl     types.AccessControl
	Dialer            dialer.Factory
	UserManager       user.Manager
	PeerManager       peermanager.PeerManager
	CatalogManager    CatalogManager

	Management managementv3.Interface
	Project    projectv3.Interface
	RBAC       rbacv1.Interface
	Core       corev1.Interface
	Storage    storagev1.Interface

	RunContext context.Context
	// contains filtered or unexported fields
}

func NewScaledContext

func NewScaledContext(config rest.Config) (*ScaledContext, error)

func (*ScaledContext) NewManagementContext

func (c *ScaledContext) NewManagementContext() (*ManagementContext, error)

func (*ScaledContext) Start

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

type UserContext

type UserContext struct {
	Management        *ManagementContext
	ClusterName       string
	RESTConfig        rest.Config
	UnversionedClient rest.Interface
	APIExtClient      clientset.Interface
	K8sClient         kubernetes.Interface

	APIAggregation apiregistrationv1.Interface
	Apps           appsv1.Interface
	Autoscaling    autoscaling.Interface
	Project        projectv3.Interface
	Core           corev1.Interface
	RBAC           rbacv1.Interface
	Extensions     extv1beta1.Interface
	BatchV1        batchv1.Interface
	BatchV1Beta1   batchv1beta1.Interface
	Networking     knetworkingv1.Interface
	Monitoring     monitoringv1.Interface
	Cluster        clusterv3.Interface
	Istio          istiov1alpha3.Interface
	Storage        storagev1.Interface
	Policy         policyv1beta1.Interface

	RBACw wrbacv1.Interface
	// contains filtered or unexported fields
}

func NewUserContext

func NewUserContext(scaledContext *ScaledContext, config rest.Config, clusterName string) (*UserContext, error)

func (*UserContext) Start

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

func (*UserContext) UserOnlyContext

func (w *UserContext) UserOnlyContext() *UserOnlyContext

type UserOnlyContext

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

	APIRegistration apiregistrationv1.Interface
	Apps            appsv1.Interface
	Autoscaling     autoscaling.Interface
	Project         projectv3.Interface
	Core            corev1.Interface
	RBAC            rbacv1.Interface
	Extensions      extv1beta1.Interface
	BatchV1         batchv1.Interface
	BatchV1Beta1    batchv1beta1.Interface
	Monitoring      monitoringv1.Interface
	Cluster         clusterv3.Interface
	Istio           istiov1alpha3.Interface
	Storage         storagev1.Interface
	Policy          policyv1beta1.Interface
}

func NewUserOnlyContext

func NewUserOnlyContext(config rest.Config) (*UserOnlyContext, error)

func (*UserOnlyContext) Start

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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