application

package
v0.0.0-...-c9dffe9 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package application provides controller for application.

Package application provides controller for application.

Package application provides controller for application.

Index

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

type ApplicationReleaseInfo struct {
	ReleaseName string `json:"-"`
	Type        string `json:"-"`
}

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 ContainerPort struct {
	ContainerPort string `json:"container_port,omitempty"`
	Protocol      string `json:"protocol,omitempty"`
}

type EventInfo

type EventInfo struct {
	Age     string `json:"age,omitempty"`
	From    string `json:"from,omitempty"`
	Message string `json:"message,omitempty"`
	Reason  string `json:"reason,omitempty"`
	Type    string `json:"type,omitempty"`
}

type PodInfo

type PodInfo struct {
	Name       string          `json:"name,omitempty"`
	Status     v1.PodPhase     `json:"state,omitempty"`
	Containers []ContainerInfo `json:"containers,omitempty"`
	Event      []EventInfo     `json:"events,omitempty"`
	CreateTm   time.Time       `json:"create_tm,omitempty"`
}

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"`
}

type ServicePort

type ServicePort struct {
	Name     string `json:"name,omitempty"`
	Port     string `json:"port,omitempty"`
	NodePort string `json:"node_port,omitempty"`
	Protocol string `json:"protocol,omitempty"`
}

Jump to

Keyboard shortcuts

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