v1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SolutionFileName    = "solution"
	SolutionFileKind    = "Config"
	SolutionGroup       = "arete"
	SolutionFileVersion = "v1alpha1"
	SolutionAPIVersion  = SolutionGroup + "/" + SolutionFileVersion
)

Variables

View Source
var TypeMeta = yaml.ResourceMeta{
	TypeMeta: yaml.TypeMeta{
		APIVersion: SolutionAPIVersion,
		Kind:       SolutionFileKind,
	},
}

Functions

This section is empty.

Types

type App

type App struct {
	KubeContext *KubeContext `yaml:"kubeContext,omitempty"`
}

type Depends

type Depends struct {
	AssetType string `yaml:"asset-type,omitempty"`
	Scope     string `yaml:"scope,omitempty"`
	Name      string `yaml:"name,omitempty"`
}

type Deploy

type Deploy struct {
	Stage *Stage `yaml:"stage,omitempty"`
}

func (*Deploy) IsEmpty

func (d *Deploy) IsEmpty() bool

type Iam

type Iam struct {
	Role     string    `yaml:"role,omitempty"`
	Member   string    `yaml:"member,omitempty"`
	Resource *Resource `yaml:"resource,omitempty"`
}

type Infra

type Infra struct {
	KubeContext *KubeContext `yaml:"kubeContext,omitempty"`
	Requires    Requires     `yaml:"requires,omitempty"`
}

func (*Infra) IsEmpty

func (i *Infra) IsEmpty() bool

type KubeContext

type KubeContext struct {
	ClusterName string `yaml:"clusterName,omitempty"`
	Region      string `yaml:"region,omitempty"`
	Project     string `yaml:"project,omitempty"`
	Zone        string `yaml:"zone,omitempty"`
	InternalIP  string `yaml:"internalIP,omitempty"`
}

func (*KubeContext) IsEmpty

func (k *KubeContext) IsEmpty() bool

type Requires

type Requires struct {
	UseConfigConnectorSA string     `yaml:"useConfigConnectorSA,omitempty"`
	Iam                  []Iam      `yaml:"iam,omitempty"`
	Services             []Services `yaml:"services,omitempty"`
	Depends              []Depends  `yaml:"depends,omitempty"`
}

func (*Requires) IsEmpty

func (r *Requires) IsEmpty() bool

type Resource

type Resource struct {
	Level string `yaml:"level,omitempty"`
	Id    string `yaml:"id,omitempty"`
}

type Services

type Services struct {
	Service string `yaml:"service,omitempty"`
	Project string `yaml:"project,omitempty"`
}

type SolutionFile

type SolutionFile struct {
	yaml.ResourceMeta `yaml:",inline"`

	Spec   *Spec   `yaml:"spec,omitempty"`
	Deploy *Deploy `yaml:"deploy,omitempty"`
}

type Spec

type Spec struct {
	Url         string `yaml:"url,omitempty"`
	Description string `yaml:"description,omitempty"`
}

func (*Spec) IsEmpty

func (s *Spec) IsEmpty() bool

type Stage

type Stage struct {
	Infra *Infra `yaml:"infra,omitempty"`
	App   *App   `yaml:"app,omitempty"`
}

func (*Stage) IsEmpty

func (s *Stage) IsEmpty() bool

Jump to

Keyboard shortcuts

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