Documentation ¶
Index ¶
- func NewGitCompose(clusterClient cluster.Client, gitClient git.RemoteGitClient, db *database.DB, ...) *gitCompose
- type BuildImagesResult
- type Environment
- type EnvironmentService
- type LoadErgopackResult
- type PrepareResult
- type ProjectValidationError
- type ProjectValidationErrorInvalidCompose
- type TransformResult
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGitCompose ¶
func NewGitCompose( clusterClient cluster.Client, gitClient git.RemoteGitClient, db *database.DB, envVarsProvider envvars.EnvVarsProvider, privRegistryProvider privregistry.PrivRegistryProvider, owner string, branchOwner string, repo string, branch string, sha string, prNumber *int, author string, isPublic bool, dockerhubPullSecretName string, ) *gitCompose
Types ¶
type BuildImagesResult ¶
func (*BuildImagesResult) Failed ¶
func (bir *BuildImagesResult) Failed() bool
type Environment ¶
type Environment struct { Services map[string]EnvironmentService `json:"services"` RawContent string `json:"-"` }
func EnvironmentFromDB ¶
func EnvironmentFromDB(env *database.Environment) *Environment
func NewEnvironment ¶
func NewEnvironment(services map[string]EnvironmentService, rawCompose string) *Environment
func (*Environment) FirstService ¶
func (c *Environment) FirstService() EnvironmentService
func (*Environment) ToMap ¶
func (c *Environment) ToMap() map[string]interface{}
type EnvironmentService ¶
type LoadErgopackResult ¶
type LoadErgopackResult struct { Skip bool ValidationError *ProjectValidationError }
type PrepareResult ¶
type PrepareResult struct { Environment *database.Environment Skip bool ValidationError *ProjectValidationError }
type ProjectValidationError ¶
type ProjectValidationErrorInvalidCompose ¶
type ProjectValidationErrorInvalidCompose struct { T string `json:"type"` Message string `json:"message"` }
func (*ProjectValidationErrorInvalidCompose) GetErrorMessage ¶
func (v *ProjectValidationErrorInvalidCompose) GetErrorMessage() string
func (*ProjectValidationErrorInvalidCompose) Serialize ¶
func (v *ProjectValidationErrorInvalidCompose) Serialize() json.RawMessage
type TransformResult ¶
type TransformResult struct { ClusterEnv *cluster.ClusterEnv Environment *Environment FailedJobs []*batchv1.Job IsCompose bool }
func (*TransformResult) Failed ¶
func (tr *TransformResult) Failed() bool
type Transformer ¶
type Transformer interface {
Transform(ctx context.Context, namespace string) (*cluster.ClusterEnv, *Environment, error)
}
Click to show internal directories.
Click to hide internal directories.