azure

package
v0.0.0-...-ddd6cb9 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Location   string `json:"location"`
	Name       string `json:"name"`
	Properties struct {
		KubeConfig string `json:"kubeConfig"`
	} `json:"properties"`
}

Config describes an Azure kubeconfig

type ListResponse

type ListResponse struct {
	StatusCode int    `json:"status_code"`
	Value      Values `json:"message"`
}

ListResponse describes an Azure cluster list

type Profile

type Profile struct {
	Name        string `json:"name"`
	Autoscaling bool   `json:"autoscaling"`
	MinCount    int    `json:"minCount"`
	MaxCount    int    `json:"maxCount"`
	Count       int    `json:"count"`
	VmSize      string `json:"vmSize"`
}

Profile describes an Azure agent pool

type Properties

type Properties struct {
	ProvisioningState string    `json:"provisioningState"`
	AgentPoolProfiles []Profile `json:"agentPoolProfiles"`
	Fqdn              string    `json:"fqdn"`
}

Properties describes an Azure cluster properties

type ResponseWithValue

type ResponseWithValue struct {
	StatusCode int   `json:"status_code"`
	Value      Value `json:"message,omitempty"`
}

ResponseWithValue describes an Azure cluster

func (*ResponseWithValue) Update

func (r *ResponseWithValue) Update(code int, Value Value)

Update updates `ResponseWithValue` with the given response code and value

type Value

type Value struct {
	Id         string     `json:"id"`
	Location   string     `json:"location"`
	Name       string     `json:"name"`
	Properties Properties `json:"properties"`
}

Value describes an Azure cluster

type Values

type Values struct {
	Value []Value `json:"value"`
}

Values describes a list of Azure clusters

Jump to

Keyboard shortcuts

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