environments

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: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 GetBatch added in v1.20.0

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

GetBatch Get a scheduled batch

func GetBatches added in v1.20.0

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

GetBatches Get list of scheduled batches

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 GetJob added in v1.20.0

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

GetJob Get a scheduled job

func GetJobs added in v1.20.0

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

GetJobs Get list of scheduled jobs

func GetOAuthAuxiliaryResourcePodLog added in v1.19.2

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

GetOAuthAuxiliaryResourcePodLog Get log for a single auxiliary resource pod

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 RestartApplication added in v1.12.0

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

RestartApplication Restarts all components in all environments of the application

func RestartComponent

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

RestartComponent Restarts job

func RestartEnvironment added in v1.12.0

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

RestartEnvironment Restarts all components in the environment

func RestartOAuthAuxiliaryResource added in v1.19.2

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

RestartOAuthAuxiliaryResource Restarts oauth auxiliary resource for a component

func StartApplication added in v1.12.0

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

StartApplication Starts all components in all environments of the application

func StartComponent

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

StartComponent Starts job

func StartEnvironment added in v1.12.0

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

StartEnvironment Starts all components in the environment

func StopApplication added in v1.12.0

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

StopApplication all components in all environments of the application

func StopComponent

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

StopComponent Stops job

func StopEnvironment added in v1.12.0

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

StopEnvironment all components in the environment

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) 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) GetAuxiliaryResourcePodLog added in v1.19.2

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

GetAuxiliaryResourcePodLog handler for GetAuxiliaryResourcePodLog

func (EnvironmentHandler) GetBatch added in v1.20.0

func (eh EnvironmentHandler) GetBatch(appName, envName, jobComponentName, batchName string) (*deploymentModels.
	ScheduledBatchSummary, error)

GetBatch Gets batch by name

func (EnvironmentHandler) GetBatches added in v1.20.0

func (eh EnvironmentHandler) GetBatches(appName, envName, jobComponentName string) ([]deploymentModels.
	ScheduledBatchSummary, error)

GetBatches Get batches

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) 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) GetJob added in v1.20.0

func (eh EnvironmentHandler) GetJob(appName, envName, jobComponentName, jobName string) (*deploymentModels.
	ScheduledJobSummary, error)

GetJob Gets job by name

func (EnvironmentHandler) GetJobs added in v1.20.0

func (eh EnvironmentHandler) GetJobs(appName, envName, jobComponentName string) ([]deploymentModels.
	ScheduledJobSummary, error)

GetJobs Get jobs

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) RestartApplication added in v1.12.0

func (eh EnvironmentHandler) RestartApplication(appName string) error

RestartApplication Restarts all components in all environments of the application

func (EnvironmentHandler) RestartComponent

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

RestartComponent Restarts a component

func (EnvironmentHandler) RestartComponentAuxiliaryResource added in v1.19.2

func (eh EnvironmentHandler) RestartComponentAuxiliaryResource(appName, envName, componentName, auxType string) error

RestartComponentAuxiliaryResource Restarts a component's auxiliary resource

func (EnvironmentHandler) RestartEnvironment added in v1.12.0

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

RestartEnvironment Restarts all components in the environment

func (EnvironmentHandler) StartApplication added in v1.12.0

func (eh EnvironmentHandler) StartApplication(appName string) error

StartApplication Starts all components in all environments of the application

func (EnvironmentHandler) StartComponent

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

StartComponent Starts a component

func (EnvironmentHandler) StartEnvironment added in v1.12.0

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

StartEnvironment Starts all components in the environment

func (EnvironmentHandler) StopApplication added in v1.12.0

func (eh EnvironmentHandler) StopApplication(appName string) error

StopApplication Stops all components in all environments of the application

func (EnvironmentHandler) StopComponent

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

StopComponent Stops a component

func (EnvironmentHandler) StopEnvironment added in v1.12.0

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

StopEnvironment Stops all components in the environment

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
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