config

package
v0.0.0-...-cdc044f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name      string    `yaml:"name"`
	Kustomize Kustomize `yaml:"kustomize"`
}

type BuildKustomize

type BuildKustomize struct {
	Repository string `yaml:"repository"`
	Path       string `yaml:"path"`
}

type Config

type Config struct {
	Repos  []Repository  `yaml:"repository"`
	Filter Filter        `yaml:"filter"`
	Apps   []Application `yaml:"application"`
}

func NewConfigFromFile

func NewConfigFromFile(file string) (*Config, error)

func (*Config) CompileFilter

func (c *Config) CompileFilter() ([]*regexp.Regexp, error)

func (*Config) ExecuteTemplate

func (c *Config) ExecuteTemplate(field *template.Field) (*Config, error)

func (*Config) GetAppFormName

func (c *Config) GetAppFormName(name string) (*Application, error)

func (*Config) GetRepoFromName

func (c *Config) GetRepoFromName(name string) (*Repository, error)

type Filter

type Filter struct {
	ImageTags []string `yaml:"imageTag"`
}

type Kustomize

type Kustomize struct {
	Build BuildKustomize `yaml:"build"`
	Save  SaveKustomize  `yaml:"save"`
}

func (*Kustomize) GetBuildRepo

func (k *Kustomize) GetBuildRepo() string

func (*Kustomize) GetSaveRepo

func (k *Kustomize) GetSaveRepo() string

type Repository

type Repository struct {
	Name string `yaml:"name"`
	URL  string `yaml:"url"`
}

type SaveKustomize

type SaveKustomize struct {
	Repository string `yaml:"repository"`
	Path       string `yaml:"path"`
}

Jump to

Keyboard shortcuts

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