deployments

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetComponentStateFromSpec

func GetComponentStateFromSpec(
	client 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 struct {
	// contains filtered or unexported fields
}

DeployHandler Instance variables

func Init

func Init(accounts models.Accounts) DeployHandler

Init Constructor

func (DeployHandler) GetComponentsForDeployment

func (deploy DeployHandler) GetComponentsForDeployment(appName string, deployment *deploymentModels.DeploymentSummary) ([]*deploymentModels.Component, error)

GetComponentsForDeployment Gets a list of components for a given deployment

func (DeployHandler) GetComponentsForDeploymentName

func (deploy DeployHandler) GetComponentsForDeploymentName(appName, deploymentID string) ([]*deploymentModels.Component, error)

GetComponentsForDeploymentName handler for GetDeployments

func (DeployHandler) GetDeploymentWithName

func (deploy DeployHandler) GetDeploymentWithName(appName, deploymentName string) (*deploymentModels.Deployment, error)

GetDeploymentWithName Handler for GetDeploymentWithName

func (DeployHandler) GetDeploymentsForApplication

func (deploy DeployHandler) GetDeploymentsForApplication(appName string, latest bool) ([]*deploymentModels.DeploymentSummary, error)

GetDeploymentsForApplication Lists deployments across environments

func (DeployHandler) GetDeploymentsForApplicationEnvironment

func (deploy DeployHandler) GetDeploymentsForApplicationEnvironment(appName, environment string, latest bool) ([]*deploymentModels.DeploymentSummary, error)

GetDeploymentsForApplicationEnvironment Lists deployments inside environment

func (DeployHandler) GetDeploymentsForJob

func (deploy DeployHandler) GetDeploymentsForJob(appName, jobName string) ([]*deploymentModels.DeploymentSummary, error)

GetDeploymentsForJob Lists deployments for job name

func (DeployHandler) GetLatestDeploymentForApplicationEnvironment

func (deploy DeployHandler) GetLatestDeploymentForApplicationEnvironment(appName, environment string) (*deploymentModels.DeploymentSummary, error)

GetLatestDeploymentForApplicationEnvironment Gets latest, active, deployment in environment

func (DeployHandler) GetLogs

func (deploy DeployHandler) GetLogs(appName, podName string, sinceTime *time.Time) (string, error)

GetLogs handler for GetLogs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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