model

package
v0.3.54-rc73 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StepTypeTerraform       StepType = "terraform"
	StepTypeArgoCD                   = "argocd-apps"
	StepTypeTerraformCustom          = "terraform-custom"
)
View Source
const (
	ReplaceTypeSSM    ReplaceType = "ssm"
	ReplaceTypeConfig             = "config"
	ReplaceTypeAgent              = "agent"
)
View Source
const (
	ApproveMinor  Approve = "minor"
	ApproveMajor          = "major"
	ApproveAlways         = "always"
	ApproveNever          = "never"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentReplaceType

type AgentReplaceType string
const (
	AgentReplaceTypeVersion   AgentReplaceType = "version"
	AgentReplaceTypeAccountId                  = "accountId"
)

type Approve

type Approve string

type AwsDefaultTags

type AwsDefaultTags struct {
	Tags map[string]string `yaml:"tags,omitempty"`
}

func (AwsDefaultTags) IsEmpty

func (d AwsDefaultTags) IsEmpty() bool

type AwsIgnoreTags

type AwsIgnoreTags struct {
	KeyPrefixes []string `yaml:"key_prefixes,omitempty"`
	Keys        []string `yaml:"keys,omitempty"`
}

func (AwsIgnoreTags) IsEmpty

func (i AwsIgnoreTags) IsEmpty() bool

type AwsProvider

type AwsProvider struct {
	IgnoreTags  AwsIgnoreTags  `yaml:"ignore_tags,omitempty"`
	DefaultTags AwsDefaultTags `yaml:"default_tags,omitempty"`
}

func (AwsProvider) IsEmpty

func (a AwsProvider) IsEmpty() bool

type BaseConfig

type BaseConfig struct {
	Version string `yaml:"version,omitempty" fake:"{version}"`
	Profile string `yaml:"profile" fake:"{word}"`
}

type Config

type Config struct {
	BaseConfig   BaseConfig `yaml:"base_config"`
	Prefix       string     `yaml:"prefix,omitempty" fake:"{word}"`
	Source       string     `yaml:"source" fake:"{url}"`
	Version      string     `yaml:"version,omitempty" fake:"{version}"`
	AgentVersion string     `yaml:"agent_version,omitempty" fake:"{version}"`
	Steps        []Step     `yaml:"steps,omitempty" fakesize:"1"`
}

type KubernetesProvider

type KubernetesProvider struct {
	IgnoreAnnotations []string `yaml:"ignore_annotations,omitempty"`
	IgnoreLabels      []string `yaml:"ignore_labels,omitempty"`
}

func (KubernetesProvider) IsEmpty

func (k KubernetesProvider) IsEmpty() bool

type Module

type Module struct {
	Name    string                 `yaml:"name"`
	Source  string                 `yaml:"source,omitempty"`
	Version string                 `yaml:"version,omitempty"`
	Remove  bool                   `yaml:"remove,omitempty"`
	Inputs  map[string]interface{} `yaml:"inputs,omitempty"`
}

type Provider

type Provider struct {
	Inputs     map[string]interface{} `yaml:"inputs,omitempty"`
	Aws        AwsProvider            `yaml:"aws"`
	Kubernetes KubernetesProvider     `yaml:"kubernetes"`
}

func (Provider) IsEmpty

func (p Provider) IsEmpty() bool

type ReplaceType

type ReplaceType string

type Set

type Set[T comparable] map[T]bool

func NewSet

func NewSet[T comparable]() Set[T]

func (Set[T]) Add

func (s Set[T]) Add(item T)

func (Set[T]) Contains

func (s Set[T]) Contains(item T) bool

func (Set[T]) Remove

func (s Set[T]) Remove(item T)

func (Set[T]) Size

func (s Set[T]) Size() int

func (Set[T]) ToSlice

func (s Set[T]) ToSlice() []T

type State

type State struct {
	BaseConfig StateConfig  `yaml:"base_config"`
	Steps      []*StateStep `yaml:"steps"`
}

type StateConfig

type StateConfig struct {
	Version        *version.Version `yaml:"version,omitempty"`
	AppliedVersion *version.Version `yaml:"applied_version,omitempty"`
}

type StateModule

type StateModule struct {
	Name           string           `yaml:"name"`
	Version        *version.Version `yaml:"version,omitempty"`
	AppliedVersion *version.Version `yaml:"applied_version,omitempty"`
	AutoApprove    bool             `yaml:"-"` // always omit
}

type StateStep

type StateStep struct {
	Name      string         `yaml:"name"`
	Workspace string         `yaml:"workspace"`
	AppliedAt time.Time      `yaml:"applied_at,omitempty"`
	Modules   []*StateModule `yaml:"modules"`
}

type Step

type Step struct {
	Name                string   `yaml:"name" fake:"{word}"`
	Type                StepType `yaml:"type,omitempty" fake:"{stepType}"`
	Workspace           string   `yaml:"workspace"`
	Before              string   `yaml:"before,omitempty"`
	Approve             Approve  `yaml:"approve,omitempty"`
	Remove              bool     `yaml:"remove,omitempty"`
	Version             string   `yaml:"version,omitempty"`
	VpcId               string   `yaml:"vpc_id,omitempty"`
	VpcSubnetIds        string   `yaml:"vpc_subnet_ids,omitempty"`
	VpcSecurityGroupIds string   `yaml:"vpc_security_group_ids,omitempty"`
	RepoUrl             string   `yaml:"repo_url,omitempty"`
	Provider            Provider `yaml:"provider,omitempty"`
	Modules             []Module `yaml:"modules,omitempty"`
}

type StepType

type StepType string

Jump to

Keyboard shortcuts

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