appmeta_manager

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 27 Imported by: 0

Documentation

Index

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 GetRlsNameFromKey(key string) (string, error)

func Init

func Init()

func NewApplicationSecretWatcher

func NewApplicationSecretWatcher(configBytes []byte, ns string) *applicationSecretWatcher

func NewHelmCmWatcher

func NewHelmCmWatcher(configBytes []byte, ns string) *helmCmWatcher

func NewHelmSecretWatcher

func NewHelmSecretWatcher(configBytes []byte, ns string) *helmSecretWatcher

func RegisterListener

func RegisterListener(fun func(*ApplicationEventPack) error)

func Start

func Start()

func UpdateApplicationMetasManually

func UpdateApplicationMetasManually(ns string, configBytes []byte, secretName string, secret *v1.Secret) 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

func DecodeRelease(data string) (*Release, error)

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 Status

type Status string

Status is the status of a release

type Supervisor

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

Jump to

Keyboard shortcuts

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