Documentation ¶
Index ¶
- Variables
- func EventPush(a *ApplicationEventPack)
- func GetAllApplicationMetas() []*appmeta.ApplicationMeta
- func GetApplicationMeta(ns, appName string, configBytes []byte) *appmeta.ApplicationMeta
- func GetApplicationMetas(ns string, configBytes []byte, filter func(*appmeta.ApplicationMeta) bool) []*appmeta.ApplicationMeta
- func GetRlsNameFromKey(key string) (string, error)
- func Init()
- func NewApplicationSecretWatcher(configBytes []byte, ns string) *applicationSecretWatcher
- func NewHelmCmWatcher(configBytes []byte, ns string) *helmCmWatcher
- func NewHelmSecretWatcher(configBytes []byte, ns string) *helmSecretWatcher
- func RegisterListener(fun func(*ApplicationEventPack) error)
- func Start()
- func UpdateApplicationMetasManually(ns string, configBytes []byte, secretName string, secret *v1.Secret) error
- type ApplicationEventPack
- type Info
- type Release
- type Status
- type Supervisor
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Events []*ApplicationEventPack
)
Functions ¶
func EventPush ¶
func EventPush(a *ApplicationEventPack)
func GetAllApplicationMetas ¶
func GetAllApplicationMetas() []*appmeta.ApplicationMeta
GetAllApplicationMetasWithDeepClone get all developing application, will not update appmeta.ApplicationMeta
func GetApplicationMeta ¶
func GetApplicationMeta(ns, appName string, configBytes []byte) *appmeta.ApplicationMeta
func GetApplicationMetas ¶
func GetApplicationMetas(ns string, configBytes []byte, filter func(*appmeta.ApplicationMeta) bool) []*appmeta.ApplicationMeta
func GetRlsNameFromKey ¶
func NewHelmCmWatcher ¶
func NewHelmSecretWatcher ¶
func RegisterListener ¶
func RegisterListener(fun func(*ApplicationEventPack) error)
Types ¶
type ApplicationEventPack ¶
type ApplicationEventPack struct { Event *appmeta.ApplicationEvent Ns, AppName string KubeConfigBytes []byte }
func EventPop ¶
func EventPop() *ApplicationEventPack
type Info ¶
type Info struct { // FirstDeployed is when the release was first deployed. FirstDeployed string `json:"first_deployed,omitempty"` // LastDeployed is when the release was last deployed. LastDeployed string `json:"last_deployed,omitempty"` // Deleted tracks when this object was deleted. Deleted string `json:"deleted"` // Description is human-friendly "log entry" about this release. Description string `json:"description,omitempty"` // Status is the current state of the release Status Status `json:"status,omitempty"` // Contains the rendered templates/NOTES.txt if available Notes string `json:"notes,omitempty"` }
Info describes release information.
type Release ¶
type Release struct { // Name is the name of the release Name string `json:"name,omitempty"` // Info provides information about a release Info *Info `json:"info,omitempty"` // Config is the set of extra Values added to the chart. // These values override the default values inside of the chart. Config map[string]interface{} `json:"config,omitempty"` // Manifest is the string representation of the rendered template. Manifest string `json:"manifest,omitempty"` // Version is an int which represents the revision of the release. Version int `json:"version,omitempty"` // Namespace is the kubernetes namespace of the release. Namespace string `json:"namespace,omitempty"` // Labels of the release. // Disabled encoding into Json cause labels are stored in storage driver metadata field. Labels map[string]string `json:"-"` }
Release describes a deployment of a chart, together with the chart and the variables used to deploy that chart.
func DecodeRelease ¶
DecodeRelease decodes the bytes of data into a release type. Data must contain a base64 encoded gzipped string of a valid release, otherwise an error is returned.
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.