template

package
v0.0.0-...-3d39b65 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

type Template struct {
	// contains filtered or unexported fields
}

func FromConf

func FromConf(template *configs.ChildTemplate) (*Template, error)

FromConf converts the configs.ChildTemplate to a Template. It returns error if it fails to parse configs. It returns nil value if the configs.ChildTemplate is empty

func (*Template) GetGuaranteedResource

func (t *Template) GetGuaranteedResource() *resources.Resource

GetGuaranteedResource returns a copy of guaranteed resource. it can be null

func (*Template) GetMaxApplications

func (t *Template) GetMaxApplications() uint64

GetMaxApplications returns max applications.

func (*Template) GetMaxResource

func (t *Template) GetMaxResource() *resources.Resource

GetMaxResource returns a copy of max resource. it can be null

func (*Template) GetProperties

func (t *Template) GetProperties() map[string]string

GetProperties returns a copy of properties. An empty map replaces the null value

func (*Template) GetTemplateInfo

func (t *Template) GetTemplateInfo() *dao.TemplateInfo

GetTemplateInfo converts this to a TemplateInfo

Jump to

Keyboard shortcuts

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