Documentation ¶
Index ¶
- Constants
- func LoadDefaultContainerServiceProperties() (datamodel.TypeMeta, *datamodel.Properties)
- type Apiloader
- func (a *Apiloader) DeserializeContainerService(contents []byte) (*datamodel.ContainerService, string, 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 ¶
View Source
const (
VlabsAPIVersion = "vlabs"
)
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) 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.