Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type DeleteReleaseRequest
- type GetReleaseContentRequest
- type InstallReleaseRequest
- type Release
- type ReleaseHook
- type ReleaseResource
- type RollbackReleaseRequest
- type StartReleaseRequest
- type StartReleaseResponse
- type StopReleaseRequest
- type StopReleaseResponse
- type SyncRequest
- type TestJobFinished
- type TestReleaseRequest
- type TestReleaseResponse
- type TestReleaseStatus
- type TestStatusResponse
- type UpgradeReleaseRequest
Constants ¶
View Source
const (
ErrReleaseNotFound = "release: not found"
)
Variables ¶
View Source
var (
ExpectedResourceKind = []string{"Deployment", "ReplicaSet", "StatefulSet"}
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ListRelease(namespace string) ([]*Release, error) //ExecuteTest(request *TestReleaseRequest, username, password string) (*TestReleaseResponse, error) InstallRelease(request *InstallReleaseRequest, username, password string) (*Release, error) PreInstallRelease(request *InstallReleaseRequest, username, password string) ([]*ReleaseHook, error) PreUpgradeRelease(request *UpgradeReleaseRequest, username, password string) ([]*ReleaseHook, error) UpgradeRelease(request *UpgradeReleaseRequest, username, password string) (*Release, error) DeleteRelease(request *DeleteReleaseRequest) (*release.UninstallReleaseResponse, error) StartRelease(request *StartReleaseRequest, cluster *kubernetes.Cluster) (*StartReleaseResponse, error) StopRelease(request *StopReleaseRequest, cluster *kubernetes.Cluster) (*StopReleaseResponse, error) GetRelease(request *GetReleaseContentRequest) (*Release, error) DeleteNamespaceReleases(namespaces string) error //GetReleaseContent(request *GetReleaseContentRequest) (*Release, error) //RollbackRelease(request *RollbackReleaseRequest) (*Release, error) GetKubeClient() (envkube.Client, error) ApplyCertManagerCrd() error }
type DeleteReleaseRequest ¶
type InstallReleaseRequest ¶
type InstallReleaseRequest struct { RepoURL string `json:"repoUrl,omitempty"` ChartName string `json:"chartName,omitempty"` ChartVersion string `json:"chartVersion,omitempty"` Values string `json:"values,omitempty"` ReleaseName string `json:"releaseName,omitempty"` Commit string `json:"commit,omitempty"` Command int64 `json:"command,omitempty"` V1Command string `json:"v1Command,omitempty"` Namespace string `json:"namespace,omitempty"` AppServiceId int64 `json:"appServiceId,omitempty"` V1AppServiceId string `json:"v1AppServiceId,omitempty"` ImagePullSecrets []core_v1.LocalObjectReference `json:"imagePullSecrets,omitempty"` FailedCount int `json:"failedCount,omitempty"` LasttimeFailedInstallErr string `json:"lasttimeFailedInstallErr"` }
type Release ¶
type Release struct { Name string `json:"name,omitempty"` Revision int `json:"revision,omitempty"` Namespace string `json:"namespace,omitempty"` Status string `json:"status,omitempty"` ChartName string `json:"chartName,omitempty"` ChartVersion string `json:"chartVersion,omitempty"` Manifest string `json:"-"` Hooks []*ReleaseHook `json:"hooks,omitempty"` Resources []*ReleaseResource `json:"resources,omitempty"` Config string `json:"config,omitempty"` Commit string `json:"commit,omitempty"` Command int64 `json:"command,omitempty"` V1Command string `json:"v1Command,omitempty"` }
安装或者升级 返回值。
type ReleaseHook ¶
type ReleaseResource ¶
type RollbackReleaseRequest ¶
type StartReleaseRequest ¶
type StartReleaseResponse ¶
type StartReleaseResponse struct {
ReleaseName string `json:"releaseName,omitempty"`
}
type StopReleaseRequest ¶
type StopReleaseResponse ¶
type SyncRequest ¶
type SyncRequest struct { ResourceType string `json:"resourceType,omitempty"` ResourceName string `json:"resourceName,omitempty"` Commit string `json:"commit,omitempty"` Id int64 `json:"id,omitempty"` Namespace string `json:"namespace,omitempty"` ResourceStatus string `json:"resourceStatus,omitempty"` }
type TestJobFinished ¶
type TestReleaseRequest ¶
type TestReleaseRequest struct { RepoURL string `json:"repoUrl,omitempty"` ChartName string `json:"chartName,omitempty"` ChartVersion string `json:"chartVersion,omitempty"` Values string `json:"values,omitempty"` ReleaseName string `json:"releaseName,omitempty"` Label string `json:"label,omitempty"` ImagePullSecrets []core_v1.LocalObjectReference `json:"imagePullSecrets,omitempty"` }
type TestReleaseResponse ¶
type TestReleaseResponse struct {
ReleaseName string `json:"releaseName,omitempty"`
}
type TestReleaseStatus ¶
type TestStatusResponse ¶
type UpgradeReleaseRequest ¶
type UpgradeReleaseRequest struct { ReleaseName string `json:"releaseName,omitempty"` RepoURL string `json:"repoUrl,omitempty,omitempty"` ChartName string `json:"chartName,omitempty"` ChartVersion string `json:"chartVersion,omitempty"` Values string `json:"values,omitempty"` Command int64 `json:"command,omitempty"` V1Command string `json:"v1Command,omitempty"` Commit string `json:"commit,omitempty"` Namespace string `json:"namespace,omitempty"` AppServiceId int64 `json:"appServiceId,omitempty"` V1AppServiceId string `json:"v1AppServiceId,omitempty"` ImagePullSecrets []core_v1.LocalObjectReference `json:"imagePullSecrets,omitempty"` ReUseValues bool `json:"reUseValues"` }
Click to show internal directories.
Click to hide internal directories.