Documentation
¶
Index ¶
- Variables
- type Agent
- func (a *Agent) GetRelease(name string, version int) (*release.Release, error)
- func (a *Agent) GetReleaseHistory(name string) ([]*release.Release, error)
- func (a *Agent) ListReleases(namespace string, filter *ListFilter) ([]*release.Release, error)
- func (a *Agent) RollbackRelease(name string, version int) error
- func (a *Agent) UpgradeRelease(name string, values string) (*release.Release, error)
- type Form
- type ListFilter
- type NewStorageDriver
Constants ¶
This section is empty.
Variables ¶
var StorageMap map[string]NewStorageDriver = map[string]NewStorageDriver{
"secret": newSecretStorageDriver,
"configmap": newConfigMapsStorageDriver,
"memory": newMemoryStorageDriver,
}
StorageMap is a map from storage configuration env variables to a function that initializes that Helm storage driver.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
ActionConfig *action.Configuration
}
Agent is a Helm agent for performing helm operations
func GetAgentInClusterConfig ¶
GetAgentInClusterConfig creates a new Agent from inside the cluster using the underlying kubernetes.GetAgentInClusterConfig method
func GetAgentOutOfClusterConfig ¶
GetAgentOutOfClusterConfig creates a new Agent from outside the cluster using the underlying kubernetes.GetAgentOutOfClusterConfig method
func GetAgentTesting ¶
GetAgentTesting creates a new Agent using an optional existing storage class
func (*Agent) GetRelease ¶
GetRelease returns the info of a release.
func (*Agent) GetReleaseHistory ¶
GetReleaseHistory returns a list of charts for a specific release
func (*Agent) ListReleases ¶
ListReleases lists releases based on a ListFilter
func (*Agent) RollbackRelease ¶
RollbackRelease rolls a release back to a specified revision/version
type Form ¶
type Form struct {
ServiceAccount *models.ServiceAccount `form:"required"`
ClusterID uint `json:"cluster_id" form:"required"`
Storage string `json:"storage" form:"oneof=secret configmap memory"`
Namespace string `json:"namespace"`
UpdateTokenCache kubernetes.UpdateTokenCacheFunc
}
Form represents the options for connecting to a cluster and creating a Helm agent
type ListFilter ¶
type ListFilter struct {
Namespace string `json:"namespace"`
Limit int `json:"limit"`
Skip int `json:"skip"`
ByDate bool `json:"byDate"`
StatusFilter []string `json:"statusFilter"`
}
ListFilter is a struct that represents the various filter options used for retrieving the releases
type NewStorageDriver ¶
type NewStorageDriver func( l *logger.Logger, v1Interface corev1.CoreV1Interface, namespace string, ) *storage.Storage
NewStorageDriver is a function type for returning a new storage driver