deployer

package
v1.0.202209131709 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployer

type Deployer interface {
	GetDeploymentObject(m *v1.AstraConnector, ctx context.Context) (*appsv1.Deployment, error)
	GetStatefulsetObject(m *v1.AstraConnector, ctx context.Context) (*appsv1.StatefulSet, error)
	GetServiceObject(m *v1.AstraConnector, serviceName string) (*corev1.Service, error)
	GetConfigMapObject(m *v1.AstraConnector) (*corev1.ConfigMap, error)
	GetServiceAccountObject(m *v1.AstraConnector) (*corev1.ServiceAccount, error)
	GetRoleObject(m *v1.AstraConnector) (*rbacv1.Role, error)
	GetRoleBindingObject(m *v1.AstraConnector) (*rbacv1.RoleBinding, error)
}

func Factory

func Factory(
	deploymentName string,
) (Deployer, error)

Factory returns a deployer based on the deploymentName. An error will be returned if the provider is unsupported.

Jump to

Keyboard shortcuts

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