api

package
v1.2.12301 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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