models

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CanaryRelease

type CanaryRelease struct {
	VampService  string            `json:"vampService"`
	Destination  string            `json:"destination,omitempty"`
	Port         *int              `json:"port,omitempty"`
	UpdatePeriod *int              `json:"updatePeriod,omitempty"`
	UpdateStep   *int              `json:"updateStep,omitempty"`
	Subset       string            `json:"subset,omitempty"`
	SubsetLabels map[string]string `json:"subsetLabels,omitempty"`
	Policies     []PolicyReference `json:"policies,omitempty"`
}

type ErrorResponse added in v0.0.23

type ErrorResponse struct {
	Message           string            `json:"message"`
	ValidationOutcome []ValidationError `json:"validationOutcome"`
}

type ExperimentMetric added in v0.0.38

type ExperimentMetric struct {
	Timestamp         int64   `json:"timestamp,omitempty"`
	NumberOfElements  int64   `json:"numberOfElements,omitempty"`
	StandardDeviation float64 `json:"standardDeviation,omitempty"`
	Average           float64 `json:"average,omitempty"`
}

type Metadata

type Metadata struct {
	Metadata map[string]string `json:"metadata"`
}

type Named

type Named struct {
	Name string `json:"name"`
}

type Notification added in v0.0.30

type Notification struct {
	Text string `json:"text,omitempty"`
}

type Permission

type Permission struct {
	Read       bool `json:"read"`
	Write      bool `json:"write"`
	Delete     bool `json:"delete"`
	EditAccess bool `json:"editAccess"`
}

type PolicyReference added in v0.0.25

type PolicyReference struct {
	Name       string            `json:"name,omitempty"`
	Parameters map[string]string `json:"parameters,omitempty"`
}

type Route

type Route struct {
	Protocol  string   `json:"protocol"`
	Condition string   `json:"condition,omitempty"`
	Rewrite   string   `json:"rewrite,omitempty"`
	Weights   []Weight `json:"weights"`
}

type ValidationError added in v0.0.23

type ValidationError struct {
	Name  string `json:"name"`
	Error string `json:"error"`
}

type VampConfig

type VampConfig struct {
	RootPassword          string `yaml:"rootPassword,omitempty" json:"rootPassword,omitempty"`
	DatabaseUrl           string `yaml:"databaseUrl,omitempty" json:"databaseUrl,omitempty"`
	DatabaseName          string `yaml:"databaseName,omitempty" json:"databaseName,omitempty"`
	ImageName             string `yaml:"imageName,omitempty" json:"imageName,omitempty"`
	RepoUsername          string `yaml:"repoUsername,omitempty" json:"repoUsername,omitempty"`
	RepoPassword          string `yaml:"repoPassword,omitempty" json:"repoPassword,omitempty"`
	ImageTag              string `yaml:"imageTag,omitempty" json:"imageTag,omitempty"`
	Mode                  string `yaml:"mode,omitempty" json:"mode,omitempty"`
	AccessTokenExpiration string `yaml:"accessTokenExpiration,omitempty" json:"accessTokenExpiration,omitempty"`
}

type VampService

type VampService struct {
	Gateways         []string `json:"gateways"`
	Hosts            []string `json:"hosts"`
	Routes           []Route  `json:"routes"`
	ExposeInternally bool     `json:"exposeInternally"`
}

type Versioned

type Versioned struct {
	Version string `json:"version"`
}

type Weight

type Weight struct {
	Destination string `json:"destination"`
	Port        int64  `json:"port"`
	Version     string `json:"version"`
	Weight      int64  `json:"weight"`
}

type WithSpecification added in v0.0.28

type WithSpecification struct {
	Specification map[string]interface{} `json:"specification"`
}

Jump to

Keyboard shortcuts

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