gitrepo

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationGitRepo

type ApplicationGitRepo interface {
	CreateOrUpdateApplication(ctx context.Context, application string, request CreateOrUpdateRequest) error
	GetApplication(ctx context.Context, application, environment string) (*GetResponse, error)
	// HardDeleteApplication hard delete an application by the specified application name
	HardDeleteApplication(ctx context.Context, application string) error
}

func NewApplicationGitlabRepo

func NewApplicationGitlabRepo(ctx context.Context, gitlabLib gitlablib.Interface,
	config ApplicationGitRepoConfig) (ApplicationGitRepo, error)

type ApplicationGitRepoConfig

type ApplicationGitRepoConfig struct {
	RootGroup         *gitlab.Group
	DefaultBranch     string
	DefaultVisibility string
}

type CreateOrUpdateRequest

type CreateOrUpdateRequest struct {
	Version string

	Environment  string
	BuildConf    map[string]interface{}
	TemplateConf map[string]interface{}
}

type GetResponse

type GetResponse struct {
	Manifest     map[string]interface{}
	BuildConf    map[string]interface{}
	TemplateConf map[string]interface{}
}

Jump to

Keyboard shortcuts

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