models

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: May 3, 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"`
	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 Metadata

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

type Named

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

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"`
}

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"`
}

Jump to

Keyboard shortcuts

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