Documentation
¶
Index ¶
- Constants
- type AccessInfo
- type AccessType
- type AdditionalResource
- type ArifactRepo
- type Auth
- type Cluster
- type CodeRepo
- type DeployInfo
- type DeployTask
- type Deployment
- type DeploymentRuntimeSyncer
- type EnvManager
- type EnvSyncResult
- type Git
- type Role
- type Runtime
- type RuntimeType
- type Secret
- type SecretClient
- type SecretInfo
- type SecretType
Constants ¶
View Source
const ( RUNTIME_TYPE_DEPLOYMENT = 1 RUNTIME_TYPE_PIPELINE = 2 )
View Source
const ( CODE_REPO_NAME_PREFIX = "repo" PRODUCT_NAME_PREFIX = "product" )
View Source
const ( SECRET_TYPE_GIT = 1 SECRET_TYPE_ARTIFACT = 2 SECRET_TYPE_CLUSTER = 3 SECRET_TYPE_TENANT = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessInfo ¶
type AccessInfo struct {
Name string
Type AccessType
// TODO ssh type should replace to go package structure in the future
SSH []*string
Kubernetes *rest.Config
}
type AdditionalResource ¶
type ArifactRepo ¶
type DeployInfo ¶
type DeployInfo struct {
Source string
}
type DeployTask ¶
type DeployTask struct {
AccessInfo AccessInfo
Product nautescrd.Product
NautesCfg nautescfg.Config
Runtime Runtime
RuntimeType RuntimeType
}
func (*DeployTask) GetLabel ¶
func (t *DeployTask) GetLabel() map[string]string
type Deployment ¶
type Deployment interface {
Deploy(ctx context.Context, task DeployTask) (*DeployInfo, error)
UnDeploy(ctx context.Context, task DeployTask) error
}
type DeploymentRuntimeSyncer ¶
type DeploymentRuntimeSyncer interface {
Sync(ctx context.Context, runtime nautescrd.DeploymentRuntime) (*DeployInfo, error)
Delete(ctx context.Context, runtime nautescrd.DeploymentRuntime) error
}
type EnvManager ¶
type EnvManager interface {
GetAccessInfo(ctx context.Context, cluster nautescrd.Cluster) (*AccessInfo, error)
Sync(ctx context.Context, task DeployTask) (*EnvSyncResult, error)
Remove(ctx context.Context, task DeployTask) error
}
type EnvSyncResult ¶
type EnvSyncResult struct {
AdditionalResources []AdditionalResource
Error error
}
type RuntimeType ¶
type RuntimeType int
type Secret ¶
type Secret interface {
GetSecretDatabaseName(ctx context.Context, repo SecretInfo) (string, error)
GetSecretKey(ctx context.Context, repo SecretInfo) (string, error)
}
type SecretInfo ¶
type SecretInfo struct {
Type SecretType
CodeRepo *CodeRepo
AritifaceRepo *ArifactRepo
}
type SecretType ¶
type SecretType int32
Click to show internal directories.
Click to hide internal directories.