Documentation
¶
Index ¶
- type CleanConfig
- type Client
- func (c *Client) AddLocalCluster() error
- func (c *Client) DockerClean() error
- func (c *Client) GetContainerLog(envName, projectName, container, pod string, tailLines int64) (string, error)
- func (c *Client) GetDefaultLogin() (*GetDefaultLoginResp, error)
- func (c *Client) GetDockerCleanConfig() (*CleanConfig, error)
- func (c *Client) GetEnvironment(envName, projectName string) (*Environment, error)
- func (c *Client) GetLocalCluster() (*clusterResp, error)
- func (c *Client) GetServiceDetail(projectName, serviceName, envName string) (*ServiceDetail, error)
- func (c *Client) GetTextFromEncryptedKey(encryptedKey string) (*GetAesKeyFromEncryptedKeyResp, error)
- func (c *Client) GetWorkflowConcurrencySetting() (*workflowConcurrencySettingResp, error)
- func (c *Client) Healthz() error
- func (c *Client) ListEnvironments(projectName string) ([]*Environment, error)
- func (c *Client) ListHelmServicesInEnvironment(envName, projectName string) ([]*Service, error)
- func (c *Client) ListRegistries() ([]*RegistryInfo, error)
- func (c *Client) ListServices(envName, projectName string) ([]*Service, error)
- func (c *Client) ListServicesStatusByEnvironment(envName, projectName string) ([]*ServiceStatus, error)
- func (c *Client) ListTestTaskStats(log *zap.SugaredLogger) ([]*TestTaskStat, error)
- func (c *Client) ListTestings(log *zap.SugaredLogger) ([]*Testing, error)
- func (c *Client) PatchWorkload(projectName, envName, serviceName, devImage string) (*types.WorkloadInfo, error)
- func (c *Client) RecoverWorkload(projectName, envName, serviceName string) error
- type Container
- type ContainerImage
- type Environment
- type ErrorMessage
- type GetAesKeyFromEncryptedKeyResp
- type GetDefaultLoginResp
- type Pod
- type RegistryAdvancedSetting
- type RegistryInfo
- type RenderInfo
- type RenderKV
- type Service
- type ServiceDetail
- type ServiceStatus
- type ServicesResp
- type TestTaskStat
- type Testing
- type Workload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanConfig ¶ added in v1.9.9
type Client ¶
type Client struct {
*httpclient.Client
// contains filtered or unexported fields
}
func NewExternal ¶ added in v1.4.0
func (*Client) AddLocalCluster ¶ added in v1.8.0
func (*Client) DockerClean ¶ added in v1.9.9
func (*Client) GetContainerLog ¶ added in v1.4.0
func (*Client) GetDefaultLogin ¶ added in v1.9.9
func (c *Client) GetDefaultLogin() (*GetDefaultLoginResp, error)
func (*Client) GetDockerCleanConfig ¶ added in v1.9.9
func (c *Client) GetDockerCleanConfig() (*CleanConfig, error)
func (*Client) GetEnvironment ¶ added in v1.4.0
func (c *Client) GetEnvironment(envName, projectName string) (*Environment, error)
func (*Client) GetLocalCluster ¶ added in v1.8.0
func (*Client) GetServiceDetail ¶ added in v1.4.0
func (c *Client) GetServiceDetail(projectName, serviceName, envName string) (*ServiceDetail, error)
func (*Client) GetTextFromEncryptedKey ¶ added in v1.9.9
func (c *Client) GetTextFromEncryptedKey(encryptedKey string) (*GetAesKeyFromEncryptedKeyResp, error)
func (*Client) GetWorkflowConcurrencySetting ¶ added in v1.9.9
func (*Client) ListEnvironments ¶ added in v1.4.0
func (c *Client) ListEnvironments(projectName string) ([]*Environment, error)
func (*Client) ListHelmServicesInEnvironment ¶ added in v1.4.0
func (*Client) ListRegistries ¶ added in v1.9.9
func (c *Client) ListRegistries() ([]*RegistryInfo, error)
func (*Client) ListServices ¶ added in v1.4.0
func (*Client) ListServicesStatusByEnvironment ¶ added in v1.4.0
func (c *Client) ListServicesStatusByEnvironment(envName, projectName string) ([]*ServiceStatus, error)
func (*Client) ListTestTaskStats ¶
func (c *Client) ListTestTaskStats(log *zap.SugaredLogger) ([]*TestTaskStat, error)
func (*Client) ListTestings ¶
func (c *Client) ListTestings(log *zap.SugaredLogger) ([]*Testing, error)
func (*Client) PatchWorkload ¶ added in v1.9.9
func (c *Client) PatchWorkload(projectName, envName, serviceName, devImage string) (*types.WorkloadInfo, error)
func (*Client) RecoverWorkload ¶ added in v1.9.9
type Container ¶ added in v1.4.0
type Container struct {
Name string `json:"name"`
Image string `json:"image"`
RestartCount int32 `json:"restart_count"`
Status string `json:"status"`
Message string `json:"message"`
Reason string `json:"reason"`
StartedAt int64 `json:"started_at,omitempty"`
FinishedAt int64 `json:"finished_at,omitempty"`
}
type ContainerImage ¶ added in v1.4.0
type Environment ¶ added in v1.4.0
type Environment struct {
ID string `json:"id"`
ProductName string `json:"product_name"`
Namespace string `json:"namespace"`
Status string `json:"status"`
Error string `json:"error"`
EnvName string `json:"env_name"`
UpdateBy string `json:"update_by"`
UpdateTime int `json:"update_time"`
Services [][]string `json:"services"`
Render *RenderInfo `json:"render"`
Vars []*RenderKV `json:"vars,omitempty"`
IsPublic bool `json:"IsPublic"`
ClusterID string `json:"cluster_id,omitempty"`
RecycleDay int `json:"recycle_day"`
IsProd bool `json:"is_prod"`
Source string `json:"source"`
}
type ErrorMessage ¶ added in v1.8.0
type GetAesKeyFromEncryptedKeyResp ¶ added in v1.9.9
type GetAesKeyFromEncryptedKeyResp struct {
PlainText string `json:"plain_text"`
}
type GetDefaultLoginResp ¶ added in v1.9.9
type GetDefaultLoginResp struct {
DefaultLogin string `json:"default_login"`
}
type RegistryAdvancedSetting ¶ added in v1.9.9
type RegistryInfo ¶ added in v1.9.9
type RegistryInfo struct {
ID primitive.ObjectID `json:"id,omitempty"`
RegAddr string `json:"reg_addr"`
AdvancedSetting *RegistryAdvancedSetting `json:"advanced_setting"`
}
type RenderInfo ¶ added in v1.4.0
type ServiceDetail ¶ added in v1.4.0
type ServiceStatus ¶ added in v1.4.0
type ServicesResp ¶ added in v1.4.0
type ServicesResp struct {
Services []*Service `json:"services"`
}
type TestTaskStat ¶
Click to show internal directories.
Click to hide internal directories.