Documentation
¶
Index ¶
Constants ¶
View Source
const DEPLOYED = "DEPLOYED"
View Source
const EOL = "\x0a"
View Source
const HelmCLIReleaseStatusTimeFormat = "Mon Jan 2 15:04:05 2006"
Helm time format. Golang requires the format string to be in reference to the specific time as shown. This is so that the formatter and parser can figure out what goes where in the string.
View Source
const INSTALL_ARGS = "install -n %v %v"
View Source
const STATUS_ARGS = "list -a"
View Source
const TAB = "\x09"
View Source
const TEMP_PACKAGE_PREFIX = "anax-helm-package-"
View Source
const UNINSTALL_ARGS = "delete --purge %v"
Variables ¶
This section is empty.
Functions ¶
func ConvertB64StringToFile ¶
Convert a base 64 encoded string into its original bytes and then write the bytes to a file in the file system.
func ConvertFileToB64String ¶
Convert a Helm chart archive file into a base 64 encoded string. The input filepath is assumed to be absolute.
Types ¶
type CliClient ¶
type CliClient struct { }
func NewCliClient ¶
func NewCliClient() *CliClient
func (*CliClient) ReleaseTimeFormat ¶
type HelmClient ¶
type HelmClient interface { Install(b64Package string, releaseName string) error UnInstall(releaseName string) error Status(releaseName string) (*ReleaseStatus, error) ReleaseTimeFormat() string }
The Helm Client interface that we use, regardless of how its implemented under the covers.
func NewHelmClient ¶
func NewHelmClient() HelmClient
type HelmWorker ¶
type HelmWorker struct { worker.BaseWorker // embedded field // contains filtered or unexported fields }
func NewHelmWorker ¶
func NewHelmWorker(name string, config *config.HorizonConfig, db *bolt.DB) *HelmWorker
func (*HelmWorker) CommandHandler ¶
func (w *HelmWorker) CommandHandler(command worker.Command) bool
func (*HelmWorker) Messages ¶
func (w *HelmWorker) Messages() chan events.Message
func (*HelmWorker) NewEvent ¶
func (w *HelmWorker) NewEvent(incoming events.Message)
type InstallCommand ¶
type InstallCommand struct {
LaunchContext interface{}
}
func NewInstallCommand ¶
func NewInstallCommand(launchContext interface{}) *InstallCommand
func (InstallCommand) ShortString ¶
func (i InstallCommand) ShortString() string
type MaintenanceCommand ¶
type MaintenanceCommand struct { AgreementProtocol string AgreementId string Deployment persistence.DeploymentConfig }
func NewMaintenanceCommand ¶
func NewMaintenanceCommand(protocol string, agreementId string, deployment persistence.DeploymentConfig) *MaintenanceCommand
func (MaintenanceCommand) ShortString ¶
func (c MaintenanceCommand) ShortString() string
func (MaintenanceCommand) String ¶
func (c MaintenanceCommand) String() string
type ReleaseStatus ¶
type ReleaseStatus struct { Name string // Release name Revision string // Revision of the release Updated string // The date of last change Status string // The release's status ChartName string // The name of the chart Namespace string // The k8s namespace that the chart was deployed into }
Status object returned by our Helm client.
type UnInstallCommand ¶
type UnInstallCommand struct { AgreementProtocol string CurrentAgreementId string Deployment persistence.DeploymentConfig }
func NewUnInstallCommand ¶
func NewUnInstallCommand(agp string, agId string, dc persistence.DeploymentConfig) *UnInstallCommand
func (UnInstallCommand) ShortString ¶
func (u UnInstallCommand) ShortString() string
Click to show internal directories.
Click to hide internal directories.