deployments

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetComponentStateFromSpec

func GetComponentStateFromSpec(
	kubeClient kubernetes.Interface,
	appName string,
	deployment *deploymentModels.DeploymentSummary,
	deploymentStatus v1.RadixDeployStatus,
	environmentConfig *v1.RadixEnvironmentConfig,
	component v1.RadixCommonDeployComponent) (*deploymentModels.Component, error)

GetComponentStateFromSpec Returns a component with the current state

func GetComponents

func GetComponents(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

GetComponents for a deployment

func GetDeployment

func GetDeployment(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

GetDeployment Get deployment details

func GetDeployments

func GetDeployments(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

GetDeployments Lists deployments

func GetPodLog

func GetPodLog(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

GetPodLog Get logs of a single pod

func NewDeploymentController

func NewDeploymentController() models.Controller

NewDeploymentController Constructor

Types

type DeployHandler

type DeployHandler interface {
	GetLogs(appName, podName string, sinceTime *time.Time) (string, error)
	GetDeploymentWithName(appName, deploymentName string) (*deploymentModels.Deployment, error)
	GetDeploymentsForApplicationEnvironment(appName, environment string, latest bool) ([]*deploymentModels.DeploymentSummary, error)
	GetComponentsForDeploymentName(appName, deploymentID string) ([]*deploymentModels.Component, error)
	GetComponentsForDeployment(appName string, deployment *deploymentModels.DeploymentSummary) ([]*deploymentModels.Component, error)
	GetLatestDeploymentForApplicationEnvironment(appName, environment string) (*deploymentModels.DeploymentSummary, error)
	GetDeploymentsForJob(appName, jobName string) ([]*deploymentModels.DeploymentSummary, error)
}

func Init

func Init(accounts models.Accounts) DeployHandler

Init Constructor

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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