bean

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceNotFoundErr = "Unable to locate Kubernetes resource."
)

Functions

This section is empty.

Types

type BatchResourceResponse

type BatchResourceResponse struct {
	ManifestResponse *k8s.ManifestResponse
	Err              error
}

type CmCsRequestBean

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

func (*CmCsRequestBean) GetClusterId

func (req *CmCsRequestBean) GetClusterId() int

func (*CmCsRequestBean) GetExternalCmList

func (req *CmCsRequestBean) GetExternalCmList() []string

func (*CmCsRequestBean) GetExternalCsList

func (req *CmCsRequestBean) GetExternalCsList() []string

func (*CmCsRequestBean) GetNamespace

func (req *CmCsRequestBean) GetNamespace() string

func (*CmCsRequestBean) SetClusterId

func (req *CmCsRequestBean) SetClusterId(clusterId int) *CmCsRequestBean

func (*CmCsRequestBean) SetExternalCmList

func (req *CmCsRequestBean) SetExternalCmList(externalCmList ...string) *CmCsRequestBean

func (*CmCsRequestBean) SetExternalCsList

func (req *CmCsRequestBean) SetExternalCsList(externalCsList ...string) *CmCsRequestBean

func (*CmCsRequestBean) SetNamespace

func (req *CmCsRequestBean) SetNamespace(namespace string) *CmCsRequestBean

type LogsDownloadBean

type LogsDownloadBean struct {
	FileName string `json:"fileName"`
	LogsData string `json:"data"`
}

type PodContainerList

type PodContainerList struct {
	Containers          []string
	InitContainers      []string
	EphemeralContainers []string
}

type ResourceGetResponse

type ResourceGetResponse struct {
	ManifestResponse *k8s.ManifestResponse `json:"manifestResponse"`
	SecretViewAccess bool                  `json:"secretViewAccess"` // imp: only for resource browser, this is being used to check whether a user can see obscured secret values or not.
}

type ResourceRequestBean

type ResourceRequestBean struct {
	AppId                       string                     `json:"appId"`
	AppType                     int                        `json:"appType,omitempty"`        // 0: DevtronApp, 1: HelmApp, 2:ArgoApp, 3 fluxApp
	DeploymentType              int                        `json:"deploymentType,omitempty"` // 0: DevtronApp, 1: HelmApp
	AppIdentifier               *helmBean.AppIdentifier    `json:"-"`
	K8sRequest                  *k8s.K8sRequestBean        `json:"k8sRequest"`
	DevtronAppIdentifier        *bean.DevtronAppIdentifier `json:"-"`         // For Devtron App Resources
	ClusterId                   int                        `json:"clusterId"` // clusterId is used when request is for direct cluster (not for helm release)
	ExternalArgoApplicationName string                     `json:"externalArgoApplicationName,omitempty"`
	ExternalFluxAppIdentifier   *bean2.FluxAppIdentifier   `json: "-"`
}

func (*ResourceRequestBean) IsValidAppType

func (r *ResourceRequestBean) IsValidAppType() bool

func (*ResourceRequestBean) IsValidDeploymentType

func (r *ResourceRequestBean) IsValidDeploymentType() bool

type RotatePodRequest

type RotatePodRequest struct {
	ClusterId int                      `json:"clusterId"`
	Resources []k8s.ResourceIdentifier `json:"resources"`
}

type RotatePodResponse

type RotatePodResponse struct {
	Responses     []*bean.RotatePodResourceResponse `json:"responses"`
	ContainsError bool                              `json:"containsError"`
}

Jump to

Keyboard shortcuts

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