topology

package
v0.0.0-...-45a1072 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PlacementGVK = tkoutil.NewGVK("topology.nephio.org", "v1alpha1", "Placement")
View Source
var SiteGVK = tkoutil.NewGVK("topology.nephio.org", "v1alpha1", "Site")
View Source
var SitesGVK = tkoutil.NewGVK("topology.nephio.org", "v1alpha1", "Sites")
View Source
var TOSCAGVK = util.NewGVK("topology.nephio.org", "v1alpha1", "TOSCA")
View Source
var TemplateGVK = tkoutil.NewGVK("topology.nephio.org", "v1alpha1", "Template")

Functions

func AppendStatusDeploymentID

func AppendStatusDeploymentID(resource tkoutil.Resource, deploymentId string)

func GetSite

func GetSite(package_ tkoutil.Package, siteName string) (tkoutil.Resource, bool)

func GetSiteID

func GetSiteID(preparationContext *preparation.Context, name string) (string, bool)

TODO: cache result

func GetSiteIDs

func GetSiteIDs(preparationContext *preparation.Context, name string) ([]string, bool)

TODO: cache result

func GetSpecProvisionIfNotFound

func GetSpecProvisionIfNotFound(spec *ard.Node, resource tkoutil.Resource) bool

func GetStatusSiteID

func GetStatusSiteID(resource tkoutil.Resource) (string, bool)

func GetTemplateID

func GetTemplateID(preparationContext *preparation.Context, name string) (string, bool)

TODO: cache result

func PreparePlacement

func PreparePlacement(context contextpkg.Context, preparationContext *preparation.Context) (bool, tkoutil.Package, error)

(preparation.PrepareFunc signature)

func PrepareSite

func PrepareSite(context contextpkg.Context, preparationContext *preparation.Context) (bool, tkoutil.Package, error)

(preparation.PrepareFunc signature)

func PrepareTOSCA

func PrepareTOSCA(context contextpkg.Context, preparationContext *preparation.Context) (bool, util.Package, error)

(preparation.PrepareFunc signature)

func SetStatusSiteID

func SetStatusSiteID(resource tkoutil.Resource, siteId string)

Types

type Deployment

type Deployment struct {
	TemplateID   string
	MergePackage tkoutil.Package
	SiteID       string
	Site         tkoutil.Resource
}

type TOSCAProperty

type TOSCAProperty struct {
	Value  ard.Value
	GVK    util.GVK
	Name   string
	Suffix string
	Target string
}

type TOSCAResource

type TOSCAResource struct {
	ID           string
	Name         string
	TemplateName string
	SiteName     string
	Properties   map[string]*TOSCAProperty
	MergePackage util.Package
}

func NewTOSCAResource

func NewTOSCAResource(vertex *clout.Vertex) *TOSCAResource

func (*TOSCAResource) FillPropertyValues

func (self *TOSCAResource) FillPropertyValues(clout *clout.Clout)

func (*TOSCAResource) NewToscaProperty

func (self *TOSCAResource) NewToscaProperty(name string, value ard.Value)

func (*TOSCAResource) ToPackage

func (self *TOSCAResource) ToPackage() util.Package

Jump to

Keyboard shortcuts

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