Documentation ¶
Index ¶
- func LoadDefaultContainerServiceProperties() (datamodel.TypeMeta, *datamodel.Properties)
- type Apiloader
- func (a *Apiloader) DeserializeContainerService(contents []byte) (*datamodel.ContainerService, string, error)
- func (a *Apiloader) LoadAgentPoolProfile(contents []byte) (*datamodel.AgentPoolProfile, error)
- func (a *Apiloader) LoadAgentpoolProfileFromFile(jsonFile string) (*datamodel.AgentPoolProfile, error)
- func (a *Apiloader) LoadContainerService(contents []byte) (*datamodel.ContainerService, error)
- func (a *Apiloader) LoadContainerServiceFromFile(jsonFile string) (*datamodel.ContainerService, string, error)
- func (a *Apiloader) SerializeContainerService(containerService *datamodel.ContainerService, version string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadDefaultContainerServiceProperties ¶
func LoadDefaultContainerServiceProperties() (datamodel.TypeMeta, *datamodel.Properties)
LoadDefaultContainerServiceProperties loads the default API model
Types ¶
type Apiloader ¶
type Apiloader struct{}
Apiloader represents the object that loads api model
func (*Apiloader) DeserializeContainerService ¶
func (a *Apiloader) DeserializeContainerService(contents []byte) (*datamodel.ContainerService, string, error)
DeserializeContainerService loads an AKS Engine Cluster API Model, validates it, and returns the unversioned representation
func (*Apiloader) LoadAgentPoolProfile ¶ added in v0.20200813.1
func (a *Apiloader) LoadAgentPoolProfile(contents []byte) (*datamodel.AgentPoolProfile, error)
LoadAgentPoolProfile marshalls raw data into a strongly typed AgentPoolProfile return object
func (*Apiloader) LoadAgentpoolProfileFromFile ¶ added in v0.20200813.1
func (a *Apiloader) LoadAgentpoolProfileFromFile(jsonFile string) (*datamodel.AgentPoolProfile, error)
LoadAgentpoolProfileFromFile loads an an AgentPoolProfile object from a JSON file
func (*Apiloader) LoadContainerService ¶
func (a *Apiloader) LoadContainerService( contents []byte) (*datamodel.ContainerService, error)
func (*Apiloader) LoadContainerServiceFromFile ¶
func (a *Apiloader) LoadContainerServiceFromFile(jsonFile string) (*datamodel.ContainerService, string, error)
LoadContainerServiceFromFile loads an AKS Cluster API Model from a JSON file
func (*Apiloader) SerializeContainerService ¶
func (a *Apiloader) SerializeContainerService(containerService *datamodel.ContainerService, version string) ([]byte, error)
SerializeContainerService takes an unversioned container service and returns the bytes
Click to show internal directories.
Click to hide internal directories.