config

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProjectConfigNotFound = errors.New("project config not found")
)

Functions

func IsProjectConfigNotFound

func IsProjectConfigNotFound(err error) bool

Types

type Filter

type Filter struct {
	Name    *string
	Url     *string
	Default *bool
}

type ProjectConfig

type ProjectConfig struct {
	Name        string                          `json:"name" validate:"required"`
	Image       string                          `json:"image" validate:"required"`
	User        string                          `json:"user" validate:"required"`
	BuildConfig *buildconfig.ProjectBuildConfig `json:"buildConfig,omitempty" validate:"optional"`
	Repository  *gitprovider.GitRepository      `json:"repository" validate:"required"`
	EnvVars     map[string]string               `json:"envVars" validate:"required"`
	IsDefault   bool                            `json:"default" validate:"required"`

} // @name ProjectConfig

type Store

type Store interface {
	List(filter *Filter) ([]*ProjectConfig, error)
	Find(filter *Filter) (*ProjectConfig, error)
	Save(projectConfig *ProjectConfig) error
	Delete(projectConfig *ProjectConfig) error
}

Jump to

Keyboard shortcuts

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