project

package
v0.0.0-...-d46a6ae Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PROJECT        = "OAM"
	Version1Alpha1 = "v1alpha1"
)

Variables

This section is empty.

Functions

func CreateProject

func CreateProject(project *OAMProject, p string) error

func FlushProject

func FlushProject(project *OAMProject, p string) error

func UpdateProject

func UpdateProject(p string, pp *PartialProject, ty types.ResourceType) error

Types

type DomainRepo

type DomainRepo struct {
	Domain string `yaml"domain" json:"domain"`
	Repo   string `yaml:"repo" json:"repo"`
}

func (DomainRepo) IsSame

func (dr DomainRepo) IsSame(ddr DomainRepo) bool

type OAMProject

type OAMProject struct {
	Version string `yaml:"version" json:"version"`

	DomainRepo `yaml:",inline" json:",inline"`
	Workloads  []types.GroupVersionKind `yaml:"workloads,omitempty" json:"workloads,omitempty"`
	Traits     []types.GroupVersionKind `yaml:"traits,omitempty" json:"traits,omitempty"`
	Exchanges  []types.GroupVersionKind `yaml:"exchange,omitempty" json:"exchange,omitempty"`
}

func LoadProject

func LoadProject(p string) (*OAMProject, error)

type PartialProject

type PartialProject struct {
	DomainRepo             `yaml:",inline" json:",inline"`
	types.GroupVersionKind `yaml:",inline" json:",inline"`
}

Jump to

Keyboard shortcuts

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