Documentation
¶
Overview ¶
Package application provides controller for application.
Package application provides controller for application.
Package application provides controller for application.
Index ¶
- Constants
- type ApplicationImpl
- func (a *ApplicationImpl) Delete(name string) error
- func (a *ApplicationImpl) DeleteWithKeepHistory(name string) error
- func (a *ApplicationImpl) GetApplicationInstanceInfo(appName string) (*ApplicationInstanceInfo, error)
- func (a *ApplicationImpl) GetApplicationInstanceInfoList(limit int, offset int) (*ApplicationInstanceInfos, error)
- func (a *ApplicationImpl) GetApplicationPodsInfo(appName string) (*ApplicationPodInfo, error)
- func (a *ApplicationImpl) GetApplicationReleaseNotes(appName string) (*ApplicationNotes, error)
- func (a *ApplicationImpl) GetApplicationServicesInfo(appName string) (*ApplicationServiceInfo, error)
- type ApplicationInfo
- type ApplicationInstanceInfo
- type ApplicationInstanceInfos
- type ApplicationNotes
- type ApplicationPodInfo
- type ApplicationReleaseInfo
- type ApplicationServiceInfo
- type ContainerInfo
- type ContainerPort
- type EventInfo
- type PodInfo
- type ServiceInfo
- type ServicePort
Constants ¶
View Source
const (
AppPrefix = "app-"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationImpl ¶
type ApplicationImpl struct {
*helm.HelmClientImpl
}
func NewApplicationImpl ¶
func NewApplicationImpl(kubeToken string, namespace string) (*ApplicationImpl, error)
func (*ApplicationImpl) Delete ¶
func (a *ApplicationImpl) Delete(name string) error
func (*ApplicationImpl) DeleteWithKeepHistory ¶
func (a *ApplicationImpl) DeleteWithKeepHistory(name string) error
func (*ApplicationImpl) GetApplicationInstanceInfo ¶
func (a *ApplicationImpl) GetApplicationInstanceInfo(appName string) (*ApplicationInstanceInfo, error)
func (*ApplicationImpl) GetApplicationInstanceInfoList ¶
func (a *ApplicationImpl) GetApplicationInstanceInfoList(limit int, offset int) (*ApplicationInstanceInfos, error)
func (*ApplicationImpl) GetApplicationPodsInfo ¶
func (a *ApplicationImpl) GetApplicationPodsInfo(appName string) (*ApplicationPodInfo, error)
func (*ApplicationImpl) GetApplicationReleaseNotes ¶
func (a *ApplicationImpl) GetApplicationReleaseNotes(appName string) (*ApplicationNotes, error)
func (*ApplicationImpl) GetApplicationServicesInfo ¶
func (a *ApplicationImpl) GetApplicationServicesInfo(appName string) (*ApplicationServiceInfo, error)
type ApplicationInfo ¶
type ApplicationInfo struct {
*helm.PineappleInfo
}
type ApplicationInstanceInfo ¶
type ApplicationInstanceInfo struct {
AppName string `json:"instance_name,omitempty"`
ChartName string `json:"chart_name,omitempty"`
ChartVersion string `json:"chart_version,omitempty"`
CreateTm time.Time `json:"create_tm,omitempty"`
Duration time.Duration `json:"-"`
Status string `json:"status,omitempty"`
}
type ApplicationInstanceInfos ¶
type ApplicationInstanceInfos struct {
Item *[]ApplicationInstanceInfo `json:"item,omitempty"`
Total *int `json:"total,omitempty"`
}
type ApplicationNotes ¶
type ApplicationNotes struct {
Notes string `json:"notes,omitempty"`
}
type ApplicationPodInfo ¶
type ApplicationPodInfo struct {
*ApplicationReleaseInfo
Total int `json:"total,omitempty"`
Pods []PodInfo `json:"item,omitempty"`
}
type ApplicationReleaseInfo ¶
func (*ApplicationReleaseInfo) GetReleaseName ¶
func (a *ApplicationReleaseInfo) GetReleaseName() (string, error)
func (*ApplicationReleaseInfo) GetType ¶
func (a *ApplicationReleaseInfo) GetType() (string, error)
type ApplicationServiceInfo ¶
type ApplicationServiceInfo struct {
*ApplicationReleaseInfo
Total int `json:"total,omitempty"`
Services []ServiceInfo `json:"item,omitempty"`
}
type ContainerInfo ¶
type ContainerInfo struct {
Name string `json:"name,omitempty"`
Image string `json:"image,omitempty"`
State string `json:"state,omitempty"`
Ports []ContainerPort `json:"ports,omitempty"`
}
type ContainerPort ¶
type ServiceInfo ¶
type ServiceInfo struct {
Name string `json:"name,omitempty"`
ClusterIP string `json:"cluster_ip,omitempty"`
ExternalIPs []string `json:"external_ips,omitempty"`
Type v1.ServiceType `json:"type,omitempty"`
Ports []ServicePort `json:"ports,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.