pluralfile

package
v0.9.18 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	File     string
	Platform string
	Arch     string
}

func (*Artifact) Key

func (a *Artifact) Key() string

func (*Artifact) Push

func (a *Artifact) Push(repo string, sha string) (string, error)

func (*Artifact) Type

func (a *Artifact) Type() ComponentName

type Command

type Command struct {
	Command string
	Args    []string
}

func (*Command) Key

func (c *Command) Key() string

func (*Command) Push

func (c *Command) Push(repo string, sha string) (string, error)

func (*Command) Type

func (c *Command) Type() ComponentName

type Component

type Component interface {
	Type() ComponentName
	Key() string
	Push(repo string, sha string) (string, error)
}

type ComponentName

type ComponentName string
const (
	ARTIFACT    ComponentName = "artificat"
	TERRAFORM   ComponentName = "tf"
	HELM        ComponentName = "helm"
	RECIPE      ComponentName = "recipe"
	INTEGRATION ComponentName = "integration"
	CRD         ComponentName = "crd"
	IRD         ComponentName = "ird"
	COMMAND     ComponentName = "run"
	TAG         ComponentName = "tag"
	REPO_ATTRS  ComponentName = "attrs"
	STACK       ComponentName = "stack"
)

type Crd

type Crd struct {
	File  string
	Chart string
}

func (*Crd) Key

func (a *Crd) Key() string

func (*Crd) Push

func (c *Crd) Push(repo string, sha string) (string, error)

func (*Crd) Type

func (a *Crd) Type() ComponentName

type Helm

type Helm struct {
	File string
}

func (*Helm) Key

func (a *Helm) Key() string

func (*Helm) Push

func (a *Helm) Push(repo string, sha string) (string, error)

func (*Helm) Type

func (a *Helm) Type() ComponentName

type Integration

type Integration struct {
	File string
}

func (*Integration) Key

func (a *Integration) Key() string

func (*Integration) Push

func (a *Integration) Push(repo string, sha string) (string, error)

func (*Integration) Type

func (a *Integration) Type() ComponentName

type Lockfile

type Lockfile struct {
	Artifact    map[string]string
	Terraform   map[string]string
	Helm        map[string]string
	Recipe      map[string]string
	Integration map[string]string
	Crd         map[string]string
	Ird         map[string]string
	Tag         map[string]string
	Attrs       map[string]string
}

func Lock

func Lock(path string) (*Lockfile, error)

func (*Lockfile) Flush

func (lock *Lockfile) Flush(path string) error

type Pluralfile

type Pluralfile struct {
	Components []Component
	Repo       string
}

func Parse

func Parse(f string) (*Pluralfile, error)

func (*Pluralfile) Execute

func (plrl *Pluralfile) Execute(f string, lock *Lockfile) (err error)

func (*Pluralfile) Flush

func (plrl *Pluralfile) Flush(lock *Lockfile) error

func (*Pluralfile) Lock

func (plrl *Pluralfile) Lock(path string) (*Lockfile, error)

type Recipe

type Recipe struct {
	File string
}

func (*Recipe) Key

func (a *Recipe) Key() string

func (*Recipe) Push

func (a *Recipe) Push(repo string, sha string) (string, error)

func (*Recipe) Type

func (a *Recipe) Type() ComponentName

type RepoAttrs

type RepoAttrs struct {
	File      string
	Publisher string
}

func (*RepoAttrs) Key

func (a *RepoAttrs) Key() string

func (*RepoAttrs) Push

func (a *RepoAttrs) Push(repo string, sha string) (string, error)

func (*RepoAttrs) Type

func (a *RepoAttrs) Type() ComponentName

type ResourceDefinition

type ResourceDefinition struct {
	File string
}

func (*ResourceDefinition) Key

func (a *ResourceDefinition) Key() string

func (*ResourceDefinition) Push

func (a *ResourceDefinition) Push(repo string, sha string) (string, error)

func (*ResourceDefinition) Type

type Stack

type Stack struct {
	File string
}

func (*Stack) Key

func (a *Stack) Key() string

func (*Stack) Push

func (a *Stack) Push(repo string, sha string) (string, error)

func (*Stack) Type

func (a *Stack) Type() ComponentName

type Tags

type Tags struct {
	File string
}

func (*Tags) Key

func (a *Tags) Key() string

func (*Tags) Push

func (t *Tags) Push(repo string, sha string) (string, error)

func (*Tags) Type

func (a *Tags) Type() ComponentName

type Terraform

type Terraform struct {
	File string
}

func (*Terraform) Key

func (a *Terraform) Key() string

func (*Terraform) Push

func (a *Terraform) Push(repo string, sha string) (string, error)

func (*Terraform) Type

func (a *Terraform) Type() ComponentName

type VersionSpec

type VersionSpec struct {
	Chart     *string
	Terraform *string
	Version   string
}

type VersionTags

type VersionTags struct {
	Spec *VersionSpec
	Tags []string
}

Jump to

Keyboard shortcuts

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