model

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScaleHost added in v0.9.1

type ScaleHost struct {
	HostSelector   map[string]string `json:"hostSelector,omitempty" mapstructure:"hostSelector"`
	HostTemplateID string            `json:"hostTemplateId,omitempty" mapstructure:"hostTemplateId"`
	Amount         int64             `json:"amount,omitempty" mapstructure:"amount"`
	Action         string            `json:"action,omitempty" mapstructure:"action"`
	Min            int64             `json:"min,omitempty" mapstructure:"min"`
	Max            int64             `json:"max,omitempty" mapstructure:"max"`
	DeleteOption   string            `json:"deleteOption,omitempty" mapstructure:"deleteOption"`
	Type           string            `json:"type,omitempty" mapstructure:"type"`
}

ScaleHost driver

type ScaleService

type ScaleService struct {
	ServiceID   string `json:"serviceId,omitempty" mapstructure:"serviceId"`
	ScaleChange int64  `json:"amount,omitempty" mapstructure:"amount"`
	ScaleAction string `json:"action,omitempty" mapstructure:"action"`
	Min         int64  `json:"min,omitempty" mapstructure:"min"`
	Max         int64  `json:"max,omitempty" mapstructure:"max"`
	Type        string `json:"type,omitempty" mapstructure:"type"`
}

ScaleService driver

type ServerAPIError

type ServerAPIError struct {
	v1client.Resource
	Code    int    `json:"statusCode"`
	Status  string `json:"status"`
	Message string `json:"message"`
}

type ServiceUpgrade added in v0.9.0

type ServiceUpgrade struct {
	ServiceSelector map[string]string `json:"serviceSelector,omitempty" mapstructure:"serviceSelector"`
	Tag             string            `json:"tag,omitempty" mapstructure:"tag"`
	PayloadFormat   string            `json:"payloadFormat,omitempty" mapstructure:"payloadFormat"`
	BatchSize       int64             `json:"batchSize,omitempty" mapstructure:"batchSize"`
	IntervalMillis  int64             `json:"intervalMillis,omitempty" mapstructure:"intervalMillis"`
	StartFirst      bool              `json:"startFirst,omitempty" mapstructure:"startFirst"`
	Type            string            `json:"type,omitempty" mapstructure:"type"`
}

ServiceUpgrade driver

type Webhook

type Webhook struct {
	v1client.Resource
	URL                  string         `json:"url"`
	Driver               string         `json:"driver"`
	Name                 string         `json:"name"`
	State                string         `json:"state"`
	ScaleServiceConfig   ScaleService   `json:"scaleServiceConfig"`
	ServiceUpgradeConfig ServiceUpgrade `json:"serviceUpgradeConfig"`
	ScaleHostConfig      ScaleHost      `json:"scaleHostConfig"`
}

type WebhookCollection

type WebhookCollection struct {
	v1client.Collection
	Data []Webhook `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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