environments

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeEnvironmentComponentSecret

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

ChangeEnvironmentComponentSecret Modifies an application environment component secret

func CreateEnvironment

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

CreateEnvironment Creates a new environment

func DeleteEnvironment

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

DeleteEnvironment Deletes environment

func GetApplicationEnvironmentDeployments

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

GetApplicationEnvironmentDeployments Lists the application environment deployments

func GetEnvironment

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

GetEnvironment Get details for an application environment

func GetEnvironmentEvents

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

GetEnvironmentEvents Get events for an application environment

func GetEnvironmentSummary

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

GetEnvironmentSummary Lists the environments for an application

func GetPodLog added in v1.9.0

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

GetPodLog Get logs of a single pod

func GetScheduledJobLog added in v1.9.0

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

GetScheduledJobLog Get log from a scheduled job

func NewEnvironmentController

func NewEnvironmentController() models.Controller

NewEnvironmentController Constructor

func RestartComponent

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

RestartComponent Restarts job

func StartComponent

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

StartComponent Starts job

func StopComponent

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

StopComponent Stops job

Types

type EnvironmentHandler

type EnvironmentHandler struct {
	// contains filtered or unexported fields
}

EnvironmentHandler Instance variables

func Init

Init Constructor. Use the WithAccounts configuration function to configure a 'ready to use' EnvironmentHandler. EnvironmentHandlerOptions are processed in the seqeunce they are passed to this function.

func (EnvironmentHandler) ChangeEnvironmentComponentSecret

func (eh EnvironmentHandler) ChangeEnvironmentComponentSecret(appName, envName, componentName, secretName string, componentSecret environmentModels.SecretParameters) (*environmentModels.SecretParameters, error)

ChangeEnvironmentComponentSecret handler for HandleChangeEnvironmentComponentSecret

func (EnvironmentHandler) CreateEnvironment

func (eh EnvironmentHandler) CreateEnvironment(appName, envName string) (*v1.RadixEnvironment, error)

CreateEnvironment Handler for CreateEnvironment. Creates an environment if it does not exist

func (EnvironmentHandler) DeleteEnvironment

func (eh EnvironmentHandler) DeleteEnvironment(appName, envName string) error

DeleteEnvironment Handler for DeleteEnvironment. Deletes an environment if it is considered orphaned

func (EnvironmentHandler) GetEnvironment

func (eh EnvironmentHandler) GetEnvironment(appName, envName string) (*environmentModels.Environment, error)

GetEnvironment Handler for GetEnvironment

func (EnvironmentHandler) GetEnvironmentEvents

func (eh EnvironmentHandler) GetEnvironmentEvents(appName, envName string) ([]*eventModels.Event, error)

GetEnvironmentEvents Handler for GetEnvironmentEvents

func (EnvironmentHandler) GetEnvironmentSecrets

func (eh EnvironmentHandler) GetEnvironmentSecrets(appName, envName string) ([]environmentModels.Secret, error)

GetEnvironmentSecrets Lists environment secrets for application

func (EnvironmentHandler) GetEnvironmentSecretsForDeployment

func (eh EnvironmentHandler) GetEnvironmentSecretsForDeployment(appName, envName string, activeDeployment *deploymentModels.Deployment) ([]environmentModels.Secret, error)

GetEnvironmentSecretsForDeployment Lists environment secrets for application

func (EnvironmentHandler) GetEnvironmentSummary

func (eh EnvironmentHandler) GetEnvironmentSummary(appName string) ([]*environmentModels.EnvironmentSummary, error)

GetEnvironmentSummary handles api calls and returns a slice of EnvironmentSummary data for each environment

func (EnvironmentHandler) GetLogs added in v1.9.0

func (eh EnvironmentHandler) GetLogs(appName, envName, podName string, sinceTime *time.Time) (string, error)

GetLogs handler for GetLogs

func (EnvironmentHandler) GetScheduledJobLogs added in v1.9.0

func (eh EnvironmentHandler) GetScheduledJobLogs(appName, envName, scheduledJobName string, sinceTime *time.Time) (string, error)

GetScheduledJobLogs handler for GetScheduledJobLogs

func (EnvironmentHandler) RestartComponent

func (eh EnvironmentHandler) RestartComponent(appName, envName, componentName string) error

RestartComponent Restarts a component

func (EnvironmentHandler) StartComponent

func (eh EnvironmentHandler) StartComponent(appName, envName, componentName string) error

StartComponent Starts a component

func (EnvironmentHandler) StopComponent

func (eh EnvironmentHandler) StopComponent(appName, envName, componentName string) error

StopComponent Stops a component

type EnvironmentHandlerOptions

type EnvironmentHandlerOptions func(*EnvironmentHandler)

EnvironmentHandlerOptions defines a configuration function

func WithAccounts

func WithAccounts(accounts models.Accounts) EnvironmentHandlerOptions

WithAccounts configures all EnvironmentHandler fields

func WithEventHandler

func WithEventHandler(eventHandler events.EventHandler) EnvironmentHandlerOptions

WithEventHandler configures the eventHandler used by EnvironmentHandler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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