api

package
v0.20200813.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apiloader

type Apiloader struct {
	Translator *i18n.Translator
}

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) LoadContainerServiceForAgentPoolOnlyCluster added in v0.20200813.1

func (a *Apiloader) LoadContainerServiceForAgentPoolOnlyCluster(
	contents []byte,
	version string,
	validate, isUpdate bool,
	defaultKubernetesVersion string,
	existingContainerService *api.ContainerService) (*api.ContainerService, bool, error)

LoadContainerServiceForAgentPoolOnlyCluster loads an AKS Cluster API Model, validates it, and returns the unversioned representation

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