models

package
v0.0.59 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 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 DestinationPortSpecification added in v0.0.49

type DestinationPortSpecification struct {
	Name       *string `json:"name"`
	Port       int     `json:"port"`
	TargetPort int     `json:"targetPort"`
	Protocol   string  `json:"protocol"`
}

type DestinationsSubsetsMap added in v0.0.44

type DestinationsSubsetsMap struct {
	DestinationsMap map[string]LabelsToPortMap `json:"destinationsMap"`
	Labels          []string                   `json:"labels"`
}

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"`
	NumberOfElements  int64   `json:"numberOfElements"`
	StandardDeviation float64 `json:"standardDeviation"`
	Average           float64 `json:"average"`
}

type LabelsToPortMap added in v0.0.44

type LabelsToPortMap struct {
	DestinationName string                   `json:"destinationName"`
	Map             map[string]SubsetToPorts `json:"map"`
}

type Metadata

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

type MetricValue added in v0.0.47

type MetricValue struct {
	Timestamp         int64   `yaml:"timestamp" json:"timestamp"`
	NumberOfElements  int64   `yaml:"numberOfElements" json:"numberOfElements"`
	StandardDeviation float64 `yaml:"standardDeviation" json:"standardDeviation"`
	Average           float64 `yaml:"average" json:"average"`
	Sum               float64 `yaml:"sum" json:"sum"`
	Median            float64 `yaml:"median" json:"median"`
	Min               float64 `yaml:"min" json:"min"`
	Max               float64 `yaml:"max" json:"max"`
	Rate              float64 `yaml:"rate" json:"rate"`
	P999              float64 `yaml:"p999" json:"p999"`
	P99               float64 `yaml:"p99" json:"p99"`
	P95               float64 `yaml:"p95" json:"p95"`
	P75               float64 `yaml:"p75" json:"p75"`
}

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 SubsetToPorts added in v0.0.44

type SubsetToPorts struct {
	Subset string                         `json:"subset"`
	Ports  []DestinationPortSpecification `json:"ports"`
}

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"`
	IstioInstallerImage               string `yaml:"istioInstallerImage,omitempty" json:"istioInstallerImage,omitempty"`
	IstioAdapterImage                 string `yaml:"istioAdapterImage,omitempty" json:"istioAdapterImage,omitempty"`
	MinReplicas                       *int32 `yaml:"minReplicas,omitempty" json:"minReplicas,omitempty"`
	MaxReplicas                       int32  `yaml:"maxReplicas,omitempty" json:"maxReplicas,omitempty"`
	TargetCPUUtilizationPercentage    *int32 `yaml:"targetCPUUtilizationPercentage,omitempty" json:"targetCPUUtilizationPercentage,omitempty"`
	TargetMemoryUtilizationPercentage *int32 `yaml:"targetMemoryUtilizationPercentage,omitempty" json:"targetMemoryUtilizationPercentage,omitempty"`
	TargetCPUAverageValue             string `yaml:"targetCPUAverageValue,omitempty" json:"targetCPUAverageValue,omitempty"`
	TargetMemoryAverageValue          string `yaml:"targetMemoryAverageValue,omitempty" json:"targetMemoryAverageValue,omitempty"`
	RequestCPU                        string `yaml:"requestCPU,omitempty" json:"requestCPU,omitempty"`
	RequestMemory                     string `yaml:"requestMemory,omitempty" json:"requestMemory,omitempty"`
	LimitCPU                          string `yaml:"limitCPU,omitempty" json:"limitCPU,omitempty"`
	LimitMemory                       string `yaml:"limitMemory,omitempty" json:"limitMemory,omitempty"`
	EnableLogstash                    string `yaml:"enableLogstash,omitempty" json:"enableLogstash,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