models

package
v0.0.0-...-757d6e7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// V2CloudProviderAwsElbListenerProtocolTCP captures enum value "TCP"
	V2CloudProviderAwsElbListenerProtocolTCP string = "TCP"

	// V2CloudProviderAwsElbListenerProtocolTLS captures enum value "TLS"
	V2CloudProviderAwsElbListenerProtocolTLS string = "TLS"
)
View Source
const (

	// V2CloudProviderAwsElbStateStatusInitializing captures enum value "initializing"
	V2CloudProviderAwsElbStateStatusInitializing string = "initializing"

	// V2CloudProviderAwsElbStateStatusPending captures enum value "pending"
	V2CloudProviderAwsElbStateStatusPending string = "pending"

	// V2CloudProviderAwsElbStateStatusActive captures enum value "active"
	V2CloudProviderAwsElbStateStatusActive string = "active"

	// V2CloudProviderAwsElbStateStatusFailed captures enum value "failed"
	V2CloudProviderAwsElbStateStatusFailed string = "failed"
)
View Source
const (

	// V2EndpointTypeAUTOIP captures enum value "AUTO_IP"
	V2EndpointTypeAUTOIP string = "AUTO_IP"

	// V2EndpointTypeAGENTIP captures enum value "AGENT_IP"
	V2EndpointTypeAGENTIP string = "AGENT_IP"

	// V2EndpointTypeCONTAINERIP captures enum value "CONTAINER_IP"
	V2EndpointTypeCONTAINERIP string = "CONTAINER_IP"

	// V2EndpointTypeADDRESS captures enum value "ADDRESS"
	V2EndpointTypeADDRESS string = "ADDRESS"
)
View Source
const (

	// V2CloudProviderAwsElbTypeNLB captures enum value "NLB"
	V2CloudProviderAwsElbTypeNLB string = "NLB"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIVersion

type APIVersion string

APIVersion API version

swagger:model APIVersion

const (

	// APIVersionV1 captures enum value "V1"
	APIVersionV1 APIVersion = "V1"

	// APIVersionV2 captures enum value "V2"
	APIVersionV2 APIVersion = "V2"
)

func (APIVersion) Validate

func (m APIVersion) Validate(formats strfmt.Registry) error

Validate validates this API version

type ConfigContainer

type ConfigContainer struct {

	// Array of pool template containers.
	PoolTemplates []*PoolTemplate `json:"poolTemplates"`

	// Array of pool containers.
	Pools []*PoolContainer `json:"pools"`
}

ConfigContainer Object used internally as an interface to handle multple model versions.

swagger:model ConfigContainer

func (*ConfigContainer) MarshalBinary

func (m *ConfigContainer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ConfigContainer) UnmarshalBinary

func (m *ConfigContainer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ConfigContainer) Validate

func (m *ConfigContainer) Validate(formats strfmt.Registry) error

Validate validates this config container

type Error

type Error struct {

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

Error error

swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type PoolContainer

type PoolContainer struct {

	// The api / schema version of this pool object
	APIVersion APIVersion `json:"apiVersion,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// namespace
	Namespace *string `json:"namespace,omitempty"`

	// v1
	V1 *V1Pool `json:"v1,omitempty"`

	// v2
	V2 *V2Pool `json:"v2,omitempty"`
}

PoolContainer Object used internally as an interface to handle multple model versions.

swagger:model PoolContainer

func (*PoolContainer) MarshalBinary

func (m *PoolContainer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PoolContainer) UnmarshalBinary

func (m *PoolContainer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PoolContainer) UnmarshalJSON

func (m *PoolContainer) UnmarshalJSON(b []byte) error

func (*PoolContainer) Validate

func (m *PoolContainer) Validate(formats strfmt.Registry) error

Validate validates this pool container

type PoolTemplate

type PoolTemplate struct {

	// Name of the pool template
	// Required: true
	// Pattern: ^[a-zA-Z0-9][a-zA-Z0-9-]+$
	Name *string `json:"name"`
}

PoolTemplate Specifies the configuration of a pool template

swagger:model PoolTemplate

func (*PoolTemplate) MarshalBinary

func (m *PoolTemplate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PoolTemplate) UnmarshalBinary

func (m *PoolTemplate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PoolTemplate) Validate

func (m *PoolTemplate) Validate(formats strfmt.Registry) error

Validate validates this pool template

type PoolTemplateStatus

type PoolTemplateStatus map[string]PoolTemplateStatusAnon

PoolTemplateStatus Describes the status of the given pool template, e.g. rendering information

swagger:model PoolTemplateStatus

func (PoolTemplateStatus) Validate

func (m PoolTemplateStatus) Validate(formats strfmt.Registry) error

Validate validates this pool template status

type PoolTemplateStatusAnon

type PoolTemplateStatusAnon struct {

	// message
	Message string `json:"message,omitempty"`

	// Describes the status of the rendering of the given pool template into a given pool
	Status RenderStatus `json:"status,omitempty"`

	// Describes the per task status of the rendering of the given pool template
	Statuses map[string]TaskStatus `json:"statuses,omitempty"`
}

PoolTemplateStatusAnon pool template status anon

swagger:model PoolTemplateStatusAnon

func (*PoolTemplateStatusAnon) MarshalBinary

func (m *PoolTemplateStatusAnon) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PoolTemplateStatusAnon) UnmarshalBinary

func (m *PoolTemplateStatusAnon) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PoolTemplateStatusAnon) Validate

func (m *PoolTemplateStatusAnon) Validate(formats strfmt.Registry) error

Validate validates this pool template status anon

type PoolType

type PoolType string

PoolType pool type

swagger:model PoolType

const (

	// PoolTypeStatic captures enum value "static"
	PoolTypeStatic PoolType = "static"

	// PoolTypeTemplateStatic captures enum value "template-static"
	PoolTypeTemplateStatic PoolType = "template-static"

	// PoolTypeTemplateDynamic captures enum value "template-dynamic"
	PoolTypeTemplateDynamic PoolType = "template-dynamic"
)

func (PoolType) Validate

func (m PoolType) Validate(formats strfmt.Registry) error

Validate validates this pool type

type RenderStatus

type RenderStatus string

RenderStatus render status

swagger:model RenderStatus

const (

	// RenderStatusOK captures enum value "OK"
	RenderStatusOK RenderStatus = "OK"

	// RenderStatusRENDERERR captures enum value "RENDER_ERR"
	RenderStatusRENDERERR RenderStatus = "RENDER_ERR"

	// RenderStatusSUBMITERR captures enum value "SUBMIT_ERR"
	RenderStatusSUBMITERR RenderStatus = "SUBMIT_ERR"

	// RenderStatusNOTASKS captures enum value "NO_TASKS"
	RenderStatusNOTASKS RenderStatus = "NO_TASKS"

	// RenderStatusNEW captures enum value "NEW"
	RenderStatusNEW RenderStatus = "NEW"
)

func (RenderStatus) Validate

func (m RenderStatus) Validate(formats strfmt.Registry) error

Validate validates this render status

type TaskStatus

type TaskStatus map[string]TaskStatusAnon

TaskStatus task status

swagger:model TaskStatus

func (TaskStatus) Validate

func (m TaskStatus) Validate(formats strfmt.Registry) error

Validate validates this task status

type TaskStatusAnon

type TaskStatusAnon struct {

	// message
	Message string `json:"message,omitempty"`

	// Describes the status of the rendering of the given pool template into a given pool
	Status RenderStatus `json:"status,omitempty"`

	// uris
	Uris []string `json:"uris"`
}

TaskStatusAnon task status anon

swagger:model TaskStatusAnon

func (*TaskStatusAnon) MarshalBinary

func (m *TaskStatusAnon) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TaskStatusAnon) UnmarshalBinary

func (m *TaskStatusAnon) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TaskStatusAnon) Validate

func (m *TaskStatusAnon) Validate(formats strfmt.Registry) error

Validate validates this task status anon

type V1Backend

type V1Backend struct {

	// Load balancing strategy. e.g. roundrobin, leastconn, etc.
	Balance string `json:"balance,omitempty"`

	// custom check
	CustomCheck *V1BackendCustomCheck `json:"customCheck,omitempty"`

	// Additional template lines inserted before servers
	MiscStrs []string `json:"miscStrs"`

	// This is name that frontends refer to.
	Name string `json:"name,omitempty"`

	// The backend protocol is how HAProxy communicates with the servers it's load balancing.
	Protocol V1Protocol `json:"protocol,omitempty"`

	// Manipulate HTTP headers. There is no effect unless the protocol is either HTTP or HTTPS.
	RewriteHTTP *V1RewriteHTTP `json:"rewriteHttp,omitempty"`

	// Array of backend network sources / selectors.
	Servers []*V1Server `json:"servers"`
}

V1Backend v1 backend

swagger:model V1Backend

func (*V1Backend) MarshalBinary

func (m *V1Backend) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Backend) UnmarshalBinary

func (m *V1Backend) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Backend) UnmarshalJSON

func (m *V1Backend) UnmarshalJSON(b []byte) error

func (*V1Backend) Validate

func (m *V1Backend) Validate(formats strfmt.Registry) error

Validate validates this v1 backend

type V1BackendCustomCheck

type V1BackendCustomCheck struct {

	// httpchk
	Httpchk bool `json:"httpchk,omitempty"`

	// httpchk misc str
	HttpchkMiscStr string `json:"httpchkMiscStr,omitempty"`

	// misc str
	MiscStr string `json:"miscStr,omitempty"`

	// ssl hello chk
	SslHelloChk bool `json:"sslHelloChk,omitempty"`
}

V1BackendCustomCheck This is used to specify alternate forms of healthchecks

swagger:model V1BackendCustomCheck

func (*V1BackendCustomCheck) MarshalBinary

func (m *V1BackendCustomCheck) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1BackendCustomCheck) UnmarshalBinary

func (m *V1BackendCustomCheck) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1BackendCustomCheck) Validate

func (m *V1BackendCustomCheck) Validate(formats strfmt.Registry) error

Validate validates this v1 backend custom check

type V1Config

type V1Config struct {

	// The array of pools.
	Pools []*V1Pool `json:"pools"`
}

V1Config * If a default is not set, then it will be left empty, even for objects. * Set defaults in the object that is furthest from the root object. * Always set a default for arrays. * The purpose of "x-nullable" is to allow the output JSON field to be set

to the golang "zero value". Without "x-nullable", the field will be
removed altogether from the resulting JSON.
  • Actual validation is done in the code, not expressed in swagger. * Since an empty boolean is interpreted as "false", don't set a default.
  • CamelCase * Swagger will only do enum validation if it is a top level definition!

swagger:model V1Config

func (*V1Config) MarshalBinary

func (m *V1Config) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Config) UnmarshalBinary

func (m *V1Config) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Config) UnmarshalJSON

func (m *V1Config) UnmarshalJSON(b []byte) error

func (*V1Config) Validate

func (m *V1Config) Validate(formats strfmt.Registry) error

Validate validates this v1 config

type V1Frontend

type V1Frontend struct {

	// Only use characters that are allowed in the frontend name. Known invalid frontend name characters include "*", "[", and "]".
	BindAddress string `json:"bindAddress,omitempty"`

	// Additional text to put in the bind field
	BindModifier string `json:"bindModifier,omitempty"`

	// The port (e.g. 80 for HTTP or 443 for HTTPS) that this frontend will bind to.
	BindPort *int32 `json:"bindPort,omitempty"`

	// certificates
	Certificates []string `json:"certificates"`

	// link backend
	LinkBackend *V1FrontendLinkBackend `json:"linkBackend,omitempty"`

	// Additional template lines inserted before use_backend
	MiscStrs []string `json:"miscStrs"`

	// Defaults to frontend_{{bindAddress}}_{{bindPort}}.
	Name string `json:"name,omitempty"`

	// The frontend protocol is how clients/users communicate with HAProxy.
	Protocol V1Protocol `json:"protocol,omitempty"`

	// redirect to Https
	RedirectToHTTPS *V1FrontendRedirectToHTTPS `json:"redirectToHttps,omitempty"`
}

V1Frontend The Frontend maps to the HAProxy frontend. This includes information such as what addresses and ports to listen on, what SSL/TLS certificates to use, and which backends to route to.

swagger:model V1Frontend

func (*V1Frontend) MarshalBinary

func (m *V1Frontend) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Frontend) UnmarshalBinary

func (m *V1Frontend) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Frontend) UnmarshalJSON

func (m *V1Frontend) UnmarshalJSON(b []byte) error

func (*V1Frontend) Validate

func (m *V1Frontend) Validate(formats strfmt.Registry) error

Validate validates this v1 frontend

type V1FrontendLinkBackend

type V1FrontendLinkBackend struct {

	// This is default backend that is routed to if none of the other filters are matched.
	DefaultBackend string `json:"defaultBackend,omitempty"`

	// This is an optional field that specifies a mapping to various backends. These rules are applied in order.
	Map []*V1FrontendLinkBackendMapItems0 `json:"map"`
}

V1FrontendLinkBackend This describes what backends to send traffic to. This can be expressed with a variety of filters such as matching on the hostname or the HTTP URL path.

swagger:model V1FrontendLinkBackend

func (*V1FrontendLinkBackend) MarshalBinary

func (m *V1FrontendLinkBackend) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FrontendLinkBackend) UnmarshalBinary

func (m *V1FrontendLinkBackend) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FrontendLinkBackend) UnmarshalJSON

func (m *V1FrontendLinkBackend) UnmarshalJSON(b []byte) error

func (*V1FrontendLinkBackend) Validate

func (m *V1FrontendLinkBackend) Validate(formats strfmt.Registry) error

Validate validates this v1 frontend link backend

type V1FrontendLinkBackendMapItems0

type V1FrontendLinkBackendMapItems0 struct {

	// backend
	Backend string `json:"backend,omitempty"`

	// All lowercase.
	HostEq string `json:"hostEq,omitempty"`

	// All lowercase. It is possible for a port (e.g. "foo.com:80") to be in this regex!
	HostReg string `json:"hostReg,omitempty"`

	// path beg
	PathBeg string `json:"pathBeg,omitempty"`

	// path end
	PathEnd string `json:"pathEnd,omitempty"`

	// path reg
	PathReg string `json:"pathReg,omitempty"`
}

V1FrontendLinkBackendMapItems0 "backend" and at least one of the condition fields must be filled out. If multiple conditions are filled out they will be combined with a boolean "AND".

swagger:model V1FrontendLinkBackendMapItems0

func (*V1FrontendLinkBackendMapItems0) MarshalBinary

func (m *V1FrontendLinkBackendMapItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FrontendLinkBackendMapItems0) UnmarshalBinary

func (m *V1FrontendLinkBackendMapItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FrontendLinkBackendMapItems0) Validate

func (m *V1FrontendLinkBackendMapItems0) Validate(formats strfmt.Registry) error

Validate validates this v1 frontend link backend map items0

type V1FrontendRedirectToHTTPS

type V1FrontendRedirectToHTTPS struct {

	// One may additionally set a whitelist of fields that must be matched to allow HTTP.
	Except []*V1FrontendRedirectToHTTPSExceptItems0 `json:"except"`
}

V1FrontendRedirectToHTTPS Setting this to the empty object is enough to redirect all traffic from HTTP (this frontend) to HTTPS (port 443).

swagger:model V1FrontendRedirectToHTTPS

func (*V1FrontendRedirectToHTTPS) MarshalBinary

func (m *V1FrontendRedirectToHTTPS) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FrontendRedirectToHTTPS) UnmarshalBinary

func (m *V1FrontendRedirectToHTTPS) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FrontendRedirectToHTTPS) UnmarshalJSON

func (m *V1FrontendRedirectToHTTPS) UnmarshalJSON(b []byte) error

func (*V1FrontendRedirectToHTTPS) Validate

func (m *V1FrontendRedirectToHTTPS) Validate(formats strfmt.Registry) error

Validate validates this v1 frontend redirect to HTTPS

type V1FrontendRedirectToHTTPSExceptItems0

type V1FrontendRedirectToHTTPSExceptItems0 struct {

	// Match on host
	Host string `json:"host,omitempty"`

	// Match on path
	PathBeg string `json:"pathBeg,omitempty"`
}

V1FrontendRedirectToHTTPSExceptItems0 Boolean AND will be applied with every selected value

swagger:model V1FrontendRedirectToHTTPSExceptItems0

func (*V1FrontendRedirectToHTTPSExceptItems0) MarshalBinary

func (m *V1FrontendRedirectToHTTPSExceptItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FrontendRedirectToHTTPSExceptItems0) UnmarshalBinary

func (m *V1FrontendRedirectToHTTPSExceptItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FrontendRedirectToHTTPSExceptItems0) Validate

Validate validates this v1 frontend redirect to HTTPS except items0

type V1Haproxy

type V1Haproxy struct {

	// Array of backends.
	Backends []*V1Backend `json:"backends"`

	// Array of frontends.
	Frontends []*V1Frontend `json:"frontends"`

	// stats
	Stats *V1Stats `json:"stats,omitempty"`
}

V1Haproxy v1 haproxy

swagger:model V1Haproxy

func (*V1Haproxy) MarshalBinary

func (m *V1Haproxy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Haproxy) UnmarshalBinary

func (m *V1Haproxy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Haproxy) UnmarshalJSON

func (m *V1Haproxy) UnmarshalJSON(b []byte) error

func (*V1Haproxy) Validate

func (m *V1Haproxy) Validate(formats strfmt.Registry) error

Validate validates this v1 haproxy

type V1Match

type V1Match string

V1Match v1 match

swagger:model V1Match

const (

	// V1MatchEXACT captures enum value "EXACT"
	V1MatchEXACT V1Match = "EXACT"

	// V1MatchREGEX captures enum value "REGEX"
	V1MatchREGEX V1Match = "REGEX"
)

func (V1Match) Validate

func (m V1Match) Validate(formats strfmt.Registry) error

Validate validates this v1 match

type V1Pool

type V1Pool struct {

	// Autogenerate a self-signed SSL/TLS certificate. It is not generated by default.
	// It will be written to "$AUTOCERT".
	AutoCertEnabled bool `json:"autoCertificate,omitempty"`

	// The api / schema version of this pool object
	APIVersion APIVersion `json:"apiVersion,omitempty"`

	// Marathon style constraints for load balancer instance placement.
	Constraints *string `json:"constraints,omitempty"`

	// Number of load balancer instances in the pool.
	Count *int32 `json:"count,omitempty"`

	// cpus
	Cpus float64 `json:"cpus,omitempty"`

	// cpus admin overhead
	CpusAdminOverhead float64 `json:"cpusAdminOverhead,omitempty"`

	// Disk size (in MB)
	Disk int32 `json:"disk,omitempty"`

	// Environment variables to pass to tasks.
	// Prefix with "ELB_FILE_" and it will be written to a file. For example, the contents of "ELB_FILE_MYENV" will be written to "$ENVFILE/ELB_FILE_MYENV".
	EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"`

	// haproxy
	Haproxy *V1Haproxy `json:"haproxy,omitempty"`

	// Memory requirements (in MB)
	Mem int32 `json:"mem,omitempty"`

	// Memory requirements (in MB)
	MemAdminOverhead int32 `json:"memAdminOverhead,omitempty"`

	// The pool name.
	// The name contains one or more lowercase letter(`a-z`), digit(`0-9`), or dash(`-`) and  must not begin or end with a dash(`-`). Ex. `my-pool-name`.
	Name string `json:"name,omitempty"`

	// The DC/OS space (sometimes also referred to as a "group").
	// The namespace consists of a series of names separated by slashes. See `name` for the description of valid names.
	Namespace *string `json:"namespace,omitempty"`

	// package name
	PackageName string `json:"packageName,omitempty"`

	// package version
	PackageVersion string `json:"packageVersion,omitempty"`

	// Pool tasks healthcheck grace period (in seconds)
	// Minimum: 1
	PoolHealthcheckGracePeriod int32 `json:"poolHealthcheckGracePeriod,omitempty"`

	// Pool tasks healthcheck interval (in seconds)
	// Minimum: 1
	PoolHealthcheckInterval int32 `json:"poolHealthcheckInterval,omitempty"`

	// Pool tasks healthcheck maximum number of consecutive failures before declaring as unhealthy
	// Minimum: 1
	PoolHealthcheckMaxFail int32 `json:"poolHealthcheckMaxFail,omitempty"`

	// Maximum amount of time that Mesos will wait for the healthcheck container to finish executing
	// Minimum: 2
	PoolHealthcheckTimeout int32 `json:"poolHealthcheckTimeout,omitempty"`

	// Override ports to allocate for each load balancer instance. Defaults to {{haproxy.frontend.objs[].bindPort}} and
	//   {{haproxy.stats.bindPort}}.
	// Use this field to pre-allocate all needed ports with or
	//   without the frontends present. For example: [80, 443, 9090].
	// If the length of the ports array is not zero, only the
	//   ports specified will be allocated by the pool scheduler.
	Ports []int32 `json:"ports"`

	// Mesos role for load balancers. Defaults to "slave_public" so that load balancers will be run on public agents. Use "*" to run load balancers on private agents. Read more about Mesos roles at http://mesos.apache.org/documentation/latest/roles/
	Role string `json:"role,omitempty"`

	// DC/OS secrets.
	Secrets []*V1PoolSecretsItems0 `json:"secrets"`

	// The type of the pool, e.g. whether it is a dynamic one or static one
	// Read Only: true
	Type PoolType `json:"type,omitempty"`

	// Virtual networks to join.
	VirtualNetworks []*V1PoolVirtualNetworksItems0 `json:"virtualNetworks"`
}

V1Pool The pool contains information on resources that the pool needs. Changes make to this section will relaunch the tasks.

swagger:model V1Pool

func (*V1Pool) MarshalBinary

func (m *V1Pool) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Pool) UnmarshalBinary

func (m *V1Pool) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Pool) UnmarshalJSON

func (m *V1Pool) UnmarshalJSON(b []byte) error

func (*V1Pool) Validate

func (m *V1Pool) Validate(formats strfmt.Registry) error

Validate validates this v1 pool

type V1PoolSecretsItems0

type V1PoolSecretsItems0 struct {

	// File name.
	// The file "myfile" will be found at "$SECRETS/myfile"
	File string `json:"file,omitempty"`

	// Secret name
	Secret string `json:"secret,omitempty"`
}

V1PoolSecretsItems0 v1 pool secrets items0

swagger:model V1PoolSecretsItems0

func (*V1PoolSecretsItems0) MarshalBinary

func (m *V1PoolSecretsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PoolSecretsItems0) UnmarshalBinary

func (m *V1PoolSecretsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PoolSecretsItems0) Validate

func (m *V1PoolSecretsItems0) Validate(formats strfmt.Registry) error

Validate validates this v1 pool secrets items0

type V1PoolVirtualNetworksItems0

type V1PoolVirtualNetworksItems0 struct {

	// Labels to pass to the virtual network plugin.
	Labels map[string]string `json:"labels,omitempty"`

	// The name of the virtual network to join.
	Name string `json:"name,omitempty"`
}

V1PoolVirtualNetworksItems0 v1 pool virtual networks items0

swagger:model V1PoolVirtualNetworksItems0

func (*V1PoolVirtualNetworksItems0) MarshalBinary

func (m *V1PoolVirtualNetworksItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PoolVirtualNetworksItems0) UnmarshalBinary

func (m *V1PoolVirtualNetworksItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PoolVirtualNetworksItems0) Validate

func (m *V1PoolVirtualNetworksItems0) Validate(formats strfmt.Registry) error

Validate validates this v1 pool virtual networks items0

type V1Protocol

type V1Protocol string

V1Protocol v1 protocol

swagger:model V1Protocol

const (

	// V1ProtocolHTTP captures enum value "HTTP"
	V1ProtocolHTTP V1Protocol = "HTTP"

	// V1ProtocolHTTPS captures enum value "HTTPS"
	V1ProtocolHTTPS V1Protocol = "HTTPS"

	// V1ProtocolTCP captures enum value "TCP"
	V1ProtocolTCP V1Protocol = "TCP"

	// V1ProtocolTLS captures enum value "TLS"
	V1ProtocolTLS V1Protocol = "TLS"
)

func (V1Protocol) Validate

func (m V1Protocol) Validate(formats strfmt.Registry) error

Validate validates this v1 protocol

type V1RewriteHTTP

type V1RewriteHTTP struct {

	// Set the host header value
	Host string `json:"host,omitempty"`

	// path
	Path *V1RewriteHTTPPath `json:"path,omitempty"`

	// request
	Request *V1RewriteHTTPRequest `json:"request,omitempty"`

	// response
	Response *V1RewriteHTTPResponse `json:"response,omitempty"`

	// sticky
	Sticky *V1RewriteHTTPSticky `json:"sticky,omitempty"`
}

V1RewriteHTTP v1 rewrite Http

swagger:model V1RewriteHttp

func (*V1RewriteHTTP) MarshalBinary

func (m *V1RewriteHTTP) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RewriteHTTP) UnmarshalBinary

func (m *V1RewriteHTTP) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RewriteHTTP) UnmarshalJSON

func (m *V1RewriteHTTP) UnmarshalJSON(b []byte) error

func (*V1RewriteHTTP) Validate

func (m *V1RewriteHTTP) Validate(formats strfmt.Registry) error

Validate validates this v1 rewrite Http

type V1RewriteHTTPPath

type V1RewriteHTTPPath struct {

	// from path
	FromPath *string `json:"fromPath,omitempty"`

	// to path
	ToPath *string `json:"toPath,omitempty"`
}

V1RewriteHTTPPath Rewrite the HTTP URL path. Adding a slash to fromPath usually is not necessary.

swagger:model V1RewriteHTTPPath

func (*V1RewriteHTTPPath) MarshalBinary

func (m *V1RewriteHTTPPath) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RewriteHTTPPath) UnmarshalBinary

func (m *V1RewriteHTTPPath) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RewriteHTTPPath) UnmarshalJSON

func (m *V1RewriteHTTPPath) UnmarshalJSON(b []byte) error

func (*V1RewriteHTTPPath) Validate

func (m *V1RewriteHTTPPath) Validate(formats strfmt.Registry) error

Validate validates this v1 rewrite HTTP path

type V1RewriteHTTPRequest

type V1RewriteHTTPRequest struct {

	// forwardfor
	Forwardfor *bool `json:"forwardfor,omitempty"`

	// rewrite path
	RewritePath *bool `json:"rewritePath,omitempty"`

	// set host header
	SetHostHeader *bool `json:"setHostHeader,omitempty"`

	// x forwarded port
	XForwardedPort *bool `json:"xForwardedPort,omitempty"`

	// x forwarded proto Https if Tls
	XForwardedProtoHTTPSIfTLS *bool `json:"xForwardedProtoHttpsIfTls,omitempty"`
}

V1RewriteHTTPRequest Rewrite the request. To use the default values (recommended), set this field to the empty object.

swagger:model V1RewriteHttpRequest

func (*V1RewriteHTTPRequest) MarshalBinary

func (m *V1RewriteHTTPRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RewriteHTTPRequest) UnmarshalBinary

func (m *V1RewriteHTTPRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RewriteHTTPRequest) UnmarshalJSON

func (m *V1RewriteHTTPRequest) UnmarshalJSON(b []byte) error

func (*V1RewriteHTTPRequest) Validate

func (m *V1RewriteHTTPRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 rewrite Http request

type V1RewriteHTTPResponse

type V1RewriteHTTPResponse struct {

	// rewrite location
	RewriteLocation *bool `json:"rewriteLocation,omitempty"`
}

V1RewriteHTTPResponse Rewrite the response. To use the default values (recommended), set this field to the empty object.

swagger:model V1RewriteHttpResponse

func (*V1RewriteHTTPResponse) MarshalBinary

func (m *V1RewriteHTTPResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RewriteHTTPResponse) UnmarshalBinary

func (m *V1RewriteHTTPResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RewriteHTTPResponse) UnmarshalJSON

func (m *V1RewriteHTTPResponse) UnmarshalJSON(b []byte) error

func (*V1RewriteHTTPResponse) Validate

func (m *V1RewriteHTTPResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 rewrite Http response

type V1RewriteHTTPSticky

type V1RewriteHTTPSticky struct {

	// custom str
	CustomStr string `json:"customStr,omitempty"`

	// enabled
	Enabled *bool `json:"enabled,omitempty"`
}

V1RewriteHTTPSticky Sticky sessions via a cookie. To use the default values (recommended), set this field to the empty object.

swagger:model V1RewriteHTTPSticky

func (*V1RewriteHTTPSticky) MarshalBinary

func (m *V1RewriteHTTPSticky) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RewriteHTTPSticky) UnmarshalBinary

func (m *V1RewriteHTTPSticky) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RewriteHTTPSticky) UnmarshalJSON

func (m *V1RewriteHTTPSticky) UnmarshalJSON(b []byte) error

func (*V1RewriteHTTPSticky) Validate

func (m *V1RewriteHTTPSticky) Validate(formats strfmt.Registry) error

Validate validates this v1 rewrite HTTP sticky

type V1Server

type V1Server struct {

	// check
	Check *V1ServerCheck `json:"check,omitempty"`

	// framework
	Framework *V1ServerFramework `json:"framework,omitempty"`

	// Append arbitrary string to the "server" directive.
	MiscStr string `json:"miscStr,omitempty"`

	// port
	Port *V1ServerPort `json:"port,omitempty"`

	// task
	Task *V1ServerTask `json:"task,omitempty"`

	// type
	Type V1ServerType `json:"type,omitempty"`
}

V1Server v1 server

swagger:model V1Server

func (*V1Server) MarshalBinary

func (m *V1Server) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Server) UnmarshalBinary

func (m *V1Server) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Server) UnmarshalJSON

func (m *V1Server) UnmarshalJSON(b []byte) error

func (*V1Server) Validate

func (m *V1Server) Validate(formats strfmt.Registry) error

Validate validates this v1 server

type V1ServerCheck

type V1ServerCheck struct {

	// custom str
	CustomStr string `json:"customStr,omitempty"`

	// enabled
	Enabled *bool `json:"enabled,omitempty"`
}

V1ServerCheck Enable health checks. These are by default TCP health checks. For more options see "customCheck". These are required for DNS resolution (and hence VIPs) to function properly.

swagger:model V1ServerCheck

func (*V1ServerCheck) MarshalBinary

func (m *V1ServerCheck) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ServerCheck) UnmarshalBinary

func (m *V1ServerCheck) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ServerCheck) UnmarshalJSON

func (m *V1ServerCheck) UnmarshalJSON(b []byte) error

func (*V1ServerCheck) Validate

func (m *V1ServerCheck) Validate(formats strfmt.Registry) error

Validate validates this v1 server check

type V1ServerFramework

type V1ServerFramework struct {

	// match
	Match V1Match `json:"match,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

V1ServerFramework The Mesos framework. If unsure, the value should probably be "marathon".

swagger:model V1ServerFramework

func (*V1ServerFramework) MarshalBinary

func (m *V1ServerFramework) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ServerFramework) UnmarshalBinary

func (m *V1ServerFramework) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ServerFramework) UnmarshalJSON

func (m *V1ServerFramework) UnmarshalJSON(b []byte) error

func (*V1ServerFramework) Validate

func (m *V1ServerFramework) Validate(formats strfmt.Registry) error

Validate validates this v1 server framework

type V1ServerPort

type V1ServerPort struct {

	// For AUTO_IP, AGENT_IP and CONTAINER_IP this can be used to expose all defined ports.
	// This should only be used if a name is not defined for the port and there is a single port defined for the service.
	All bool `json:"all,omitempty"`

	// The name of the port. This is used for AUTO_IP, AGENT_IP and CONTAINER_IP.
	Name string `json:"name,omitempty"`

	// Set the VIP definition directly (e.g. "/myvip:1234").
	Vip string `json:"vip,omitempty"`
}

V1ServerPort v1 server port

swagger:model V1ServerPort

func (*V1ServerPort) MarshalBinary

func (m *V1ServerPort) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ServerPort) UnmarshalBinary

func (m *V1ServerPort) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ServerPort) Validate

func (m *V1ServerPort) Validate(formats strfmt.Registry) error

Validate validates this v1 server port

type V1ServerTask

type V1ServerTask struct {

	// match
	Match V1Match `json:"match,omitempty"`

	// The Task name. This field is not needed for VIPs. For Marathon pods this is the container name NOT the pod name.
	Value string `json:"value,omitempty"`
}

V1ServerTask v1 server task

swagger:model V1ServerTask

func (*V1ServerTask) MarshalBinary

func (m *V1ServerTask) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ServerTask) UnmarshalBinary

func (m *V1ServerTask) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ServerTask) UnmarshalJSON

func (m *V1ServerTask) UnmarshalJSON(b []byte) error

func (*V1ServerTask) Validate

func (m *V1ServerTask) Validate(formats strfmt.Registry) error

Validate validates this v1 server task

type V1ServerType

type V1ServerType string

V1ServerType AUTO_IP detects between AGENT_IP and CONTAINER_IP and uses the appropriate value. AGENT_IP is for HOST and BRIDGE networking. VIP for l4lb service addresses. CONTAINER_IP is for virtual networks. This is not DNS.

swagger:model V1ServerType

const (

	// V1ServerTypeAUTOIP captures enum value "AUTO_IP"
	V1ServerTypeAUTOIP V1ServerType = "AUTO_IP"

	// V1ServerTypeAGENTIP captures enum value "AGENT_IP"
	V1ServerTypeAGENTIP V1ServerType = "AGENT_IP"

	// V1ServerTypeCONTAINERIP captures enum value "CONTAINER_IP"
	V1ServerTypeCONTAINERIP V1ServerType = "CONTAINER_IP"

	// V1ServerTypeVIP captures enum value "VIP"
	V1ServerTypeVIP V1ServerType = "VIP"
)

func (V1ServerType) Validate

func (m V1ServerType) Validate(formats strfmt.Registry) error

Validate validates this v1 server type

type V1Stats

type V1Stats struct {

	// bind address
	BindAddress string `json:"bindAddress,omitempty"`

	// bind port
	BindPort int32 `json:"bindPort,omitempty"`
}

V1Stats v1 stats

swagger:model V1Stats

func (*V1Stats) MarshalBinary

func (m *V1Stats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Stats) UnmarshalBinary

func (m *V1Stats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Stats) UnmarshalJSON

func (m *V1Stats) UnmarshalJSON(b []byte) error

func (*V1Stats) Validate

func (m *V1Stats) Validate(formats strfmt.Registry) error

Validate validates this v1 stats

type V2Backend

type V2Backend struct {

	// Load balancing strategy. e.g. roundrobin, leastconn, etc.
	Balance string `json:"balance,omitempty"`

	// custom check
	CustomCheck *V2BackendCustomCheck `json:"customCheck,omitempty"`

	// Additional template lines inserted before servers
	MiscStrs []string `json:"miscStrs"`

	// This is name that frontends refer to.
	Name string `json:"name,omitempty"`

	// The backend protocol is how HAProxy communicates with the servers it's load balancing.
	Protocol V2Protocol `json:"protocol,omitempty"`

	// Manipulate HTTP headers. There is no effect unless the protocol is either HTTP or HTTPS.
	RewriteHTTP *V2RewriteHTTP `json:"rewriteHttp,omitempty"`

	// Array of backend service selectors.
	Services []*V2Service `json:"services"`
}

V2Backend v2 backend

swagger:model V2Backend

func (*V2Backend) MarshalBinary

func (m *V2Backend) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2Backend) UnmarshalBinary

func (m *V2Backend) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2Backend) UnmarshalJSON

func (m *V2Backend) UnmarshalJSON(b []byte) error

func (*V2Backend) Validate

func (m *V2Backend) Validate(formats strfmt.Registry) error

Validate validates this v2 backend

type V2BackendCustomCheck

type V2BackendCustomCheck struct {

	// httpchk
	Httpchk bool `json:"httpchk,omitempty"`

	// httpchk misc str
	HttpchkMiscStr string `json:"httpchkMiscStr,omitempty"`

	// misc str
	MiscStr string `json:"miscStr,omitempty"`

	// ssl hello chk
	SslHelloChk bool `json:"sslHelloChk,omitempty"`
}

V2BackendCustomCheck This is used to specify alternate forms of healthchecks

swagger:model V2BackendCustomCheck

func (*V2BackendCustomCheck) MarshalBinary

func (m *V2BackendCustomCheck) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2BackendCustomCheck) UnmarshalBinary

func (m *V2BackendCustomCheck) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2BackendCustomCheck) Validate

func (m *V2BackendCustomCheck) Validate(formats strfmt.Registry) error

Validate validates this v2 backend custom check

type V2CloudProvider

type V2CloudProvider struct {

	// aws
	Aws *V2CloudProviderAws `json:"aws,omitempty"`
}

V2CloudProvider v2 cloud provider

swagger:model V2CloudProvider

func (*V2CloudProvider) MarshalBinary

func (m *V2CloudProvider) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2CloudProvider) UnmarshalBinary

func (m *V2CloudProvider) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2CloudProvider) Validate

func (m *V2CloudProvider) Validate(formats strfmt.Registry) error

Validate validates this v2 cloud provider

type V2CloudProviderAws

type V2CloudProviderAws struct {

	// elbs
	// Required: true
	// Min Items: 1
	Elbs []*V2CloudProviderAwsElb `json:"elbs"`
}

V2CloudProviderAws AWS ELB-related settings.

swagger:model V2CloudProviderAws

func (*V2CloudProviderAws) MarshalBinary

func (m *V2CloudProviderAws) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2CloudProviderAws) UnmarshalBinary

func (m *V2CloudProviderAws) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2CloudProviderAws) Validate

func (m *V2CloudProviderAws) Validate(formats strfmt.Registry) error

Validate validates this v2 cloud provider aws

type V2CloudProviderAwsElb

type V2CloudProviderAwsElb struct {

	// Location of the access logs of a load balancer, with format `S3Bucket/prefix`, if you don’t specify a prefix, the access logs are stored in the root of the bucket. Access logs are created only if the load balancer has a TLS listener and they contain information only about TLS requests.
	AccessLogS3Location *string `json:"accessLogS3Location,omitempty"`

	// ARN of the ELB to use. If it is specified, it is assumed that there is a pre-created ELB that Edge-LB is not supposed to create or delete.
	// Min Length: 1
	Arn string `json:"arn,omitempty"`

	// If true, the load balancer will not be deleted when the corresponding pool is deleted.
	DeletionProtection bool `json:"deletionProtection,omitempty"`

	// Elastic IP addresses (IPv4 addresses and allocation IDs) that should be associated with subnets, the ELB is attached to. For instance, ["1.1.1.1", "eip-12345678"]
	ElasticIPs []string `json:"elasticIPs"`

	// If true (default), a load balancer is created as internal; otherwise - as internet-facing.
	Internal *bool `json:"internal,omitempty"`

	// listeners
	// Required: true
	// Min Items: 1
	Listeners []*V2CloudProviderAwsElbListener `json:"listeners"`

	// Name of the ELB which should be unique within an Edge-LB pool. The actual ELB name would be derived from this name and would be of form dcos-lb-hash(cluster-id)-hash(edgelb-app-id)-hash(pool-name)-hash(elb-name).
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`

	// IDs of subnets to attach the ELB to. If it is empty, subnets are autodiscovered based on Edge-LB load balancers registered with apiserver.
	Subnets []string `json:"subnets"`

	// tags
	// Max Items: 30
	// Min Items: 1
	Tags []*V2CloudProviderAwsTag `json:"tags"`

	// An AWS ELB type.
	// Required: true
	// Enum: [NLB]
	Type *string `json:"type"`
}

V2CloudProviderAwsElb An AWS ELB configuration.

swagger:model V2CloudProviderAwsElb

func (*V2CloudProviderAwsElb) MarshalBinary

func (m *V2CloudProviderAwsElb) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2CloudProviderAwsElb) UnmarshalBinary

func (m *V2CloudProviderAwsElb) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2CloudProviderAwsElb) Validate

func (m *V2CloudProviderAwsElb) Validate(formats strfmt.Registry) error

Validate validates this v2 cloud provider aws elb

type V2CloudProviderAwsElbAz

type V2CloudProviderAwsElbAz struct {

	// Elastic IP address which the ELB is attached to in a specified availability zone.
	ElasticIP string `json:"elasticIP,omitempty"`

	// The name of the availability zone.
	Name string `json:"name,omitempty"`
}

V2CloudProviderAwsElbAz v2 cloud provider aws elb az

swagger:model V2CloudProviderAwsElbAz

func (*V2CloudProviderAwsElbAz) MarshalBinary

func (m *V2CloudProviderAwsElbAz) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2CloudProviderAwsElbAz) UnmarshalBinary

func (m *V2CloudProviderAwsElbAz) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2CloudProviderAwsElbAz) Validate

func (m *V2CloudProviderAwsElbAz) Validate(formats strfmt.Registry) error

Validate validates this v2 cloud provider aws elb az

type V2CloudProviderAwsElbListener

type V2CloudProviderAwsElbListener struct {

	// An Edge-LB frontend to proxy requests to.
	// Required: true
	// Min Length: 1
	LinkFrontend *string `json:"linkFrontend"`

	// An AWS ELB port.
	// Required: true
	// Maximum: 65535
	// Minimum: 1
	Port *int32 `json:"port"`

	// A networking protocol.
	// Enum: [TCP TLS]
	Protocol string `json:"protocol,omitempty"`

	// tls
	TLS *V2CloudProviderAwsElbListenerTLS `json:"tls,omitempty"`
}

V2CloudProviderAwsElbListener An AWS ELB listener configuration.

swagger:model V2CloudProviderAwsElbListener

func (*V2CloudProviderAwsElbListener) MarshalBinary

func (m *V2CloudProviderAwsElbListener) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2CloudProviderAwsElbListener) UnmarshalBinary

func (m *V2CloudProviderAwsElbListener) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2CloudProviderAwsElbListener) Validate

func (m *V2CloudProviderAwsElbListener) Validate(formats strfmt.Registry) error

Validate validates this v2 cloud provider aws elb listener

type V2CloudProviderAwsElbListenerTLS

type V2CloudProviderAwsElbListenerTLS struct {

	// SSL server certificates referenced using ARNs.
	// Required: true
	// Max Items: 25
	// Min Items: 1
	Certificates []string `json:"certificates"`

	// SSL Security policy.
	// Required: true
	// Min Length: 1
	Policy *string `json:"policy"`
}

V2CloudProviderAwsElbListenerTLS A TLS configuration of AWS ELB listener.

swagger:model V2CloudProviderAwsElbListenerTls

func (*V2CloudProviderAwsElbListenerTLS) MarshalBinary

func (m *V2CloudProviderAwsElbListenerTLS) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2CloudProviderAwsElbListenerTLS) UnmarshalBinary

func (m *V2CloudProviderAwsElbListenerTLS) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2CloudProviderAwsElbListenerTLS) Validate

Validate validates this v2 cloud provider aws elb listener Tls

type V2CloudProviderAwsElbState

type V2CloudProviderAwsElbState struct {

	// The reason explaining the current load balancer status.
	Reason *string `json:"reason,omitempty"`

	// The status of a load balancer.
	// Enum: [initializing pending active failed]
	Status string `json:"status,omitempty"`
}

V2CloudProviderAwsElbState v2 cloud provider aws elb state

swagger:model V2CloudProviderAwsElbState

func (*V2CloudProviderAwsElbState) MarshalBinary

func (m *V2CloudProviderAwsElbState) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2CloudProviderAwsElbState) UnmarshalBinary

func (m *V2CloudProviderAwsElbState) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2CloudProviderAwsElbState) UnmarshalJSON

func (m *V2CloudProviderAwsElbState) UnmarshalJSON(b []byte) error

func (*V2CloudProviderAwsElbState) Validate

func (m *V2CloudProviderAwsElbState) Validate(formats strfmt.Registry) error

Validate validates this v2 cloud provider aws elb state

type V2CloudProviderAwsElbStatus

type V2CloudProviderAwsElbStatus struct {

	// The availability zones in which load balancer nodes locate.
	AvailabilityZones []*V2CloudProviderAwsElbAz `json:"availabilityZones"`

	// ELB DNS names.
	// Min Length: 1
	DNS string `json:"dns,omitempty"`

	// listeners
	Listeners []*V2CloudProviderAwsElbListener `json:"listeners"`

	// Name of the ELB.
	// Min Length: 1
	Name string `json:"name,omitempty"`

	// The state of the load balancer.
	State *V2CloudProviderAwsElbState `json:"state,omitempty"`
}

V2CloudProviderAwsElbStatus AWS ELB status.

swagger:model V2CloudProviderAwsElbStatus

func (*V2CloudProviderAwsElbStatus) MarshalBinary

func (m *V2CloudProviderAwsElbStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2CloudProviderAwsElbStatus) UnmarshalBinary

func (m *V2CloudProviderAwsElbStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2CloudProviderAwsElbStatus) Validate

func (m *V2CloudProviderAwsElbStatus) Validate(formats strfmt.Registry) error

Validate validates this v2 cloud provider aws elb status

type V2CloudProviderAwsStatus

type V2CloudProviderAwsStatus struct {

	// elbs
	Elbs []*V2CloudProviderAwsElbStatus `json:"elbs"`
}

V2CloudProviderAwsStatus An array of AWS ELB statuses.

swagger:model V2CloudProviderAwsStatus

func (*V2CloudProviderAwsStatus) MarshalBinary

func (m *V2CloudProviderAwsStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2CloudProviderAwsStatus) UnmarshalBinary

func (m *V2CloudProviderAwsStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2CloudProviderAwsStatus) Validate

func (m *V2CloudProviderAwsStatus) Validate(formats strfmt.Registry) error

Validate validates this v2 cloud provider aws status

type V2CloudProviderAwsTag

type V2CloudProviderAwsTag struct {

	// key
	// Max Length: 127
	// Min Length: 1
	Key string `json:"key,omitempty"`

	// value
	// Max Length: 255
	// Min Length: 1
	Value string `json:"value,omitempty"`
}

V2CloudProviderAwsTag A named tag with an associated value.

swagger:model V2CloudProviderAwsTag

func (*V2CloudProviderAwsTag) MarshalBinary

func (m *V2CloudProviderAwsTag) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2CloudProviderAwsTag) UnmarshalBinary

func (m *V2CloudProviderAwsTag) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2CloudProviderAwsTag) Validate

func (m *V2CloudProviderAwsTag) Validate(formats strfmt.Registry) error

Validate validates this v2 cloud provider aws tag

type V2Config

type V2Config struct {

	// The array of pools.
	Pools []*V2Pool `json:"pools"`
}

V2Config * If a default is not set, then it will be left empty, even for objects. * Set defaults in the object that is furthest from the root object. * Always set a default for arrays. * The purpose of "x-nullable" is to allow the output JSON field to be set

to the golang "zero value". Without "x-nullable", the field will be
removed altogether from the resulting JSON.
  • Actual validation is done in the code, not expressed in swagger. * Since an empty boolean is interpreted as "false", don't set a default.
  • CamelCase * Swagger will only do enum validation if it is a top level definition!

swagger:model V2Config

func (*V2Config) MarshalBinary

func (m *V2Config) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2Config) UnmarshalBinary

func (m *V2Config) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2Config) UnmarshalJSON

func (m *V2Config) UnmarshalJSON(b []byte) error

func (*V2Config) Validate

func (m *V2Config) Validate(formats strfmt.Registry) error

Validate validates this v2 config

type V2Endpoint

type V2Endpoint struct {

	// Server address override, can be used to specify a cluster internal address such as a VIP.
	Address string `json:"address,omitempty"`

	// all ports
	AllPorts bool `json:"allPorts,omitempty"`

	// check
	Check *V2EndpointCheck `json:"check,omitempty"`

	// Append arbitrary string to add to the end of the "server" directive.
	MiscStr string `json:"miscStr,omitempty"`

	// port
	Port int32 `json:"port,omitempty"`

	// port name
	PortName string `json:"portName,omitempty"`

	// type
	// Enum: [AUTO_IP AGENT_IP CONTAINER_IP ADDRESS]
	Type string `json:"type,omitempty"`
}

V2Endpoint v2 endpoint

swagger:model V2Endpoint

func (*V2Endpoint) MarshalBinary

func (m *V2Endpoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2Endpoint) UnmarshalBinary

func (m *V2Endpoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2Endpoint) UnmarshalJSON

func (m *V2Endpoint) UnmarshalJSON(b []byte) error

func (*V2Endpoint) Validate

func (m *V2Endpoint) Validate(formats strfmt.Registry) error

Validate validates this v2 endpoint

type V2EndpointCheck

type V2EndpointCheck struct {

	// custom str
	CustomStr string `json:"customStr,omitempty"`

	// enabled
	Enabled *bool `json:"enabled,omitempty"`
}

V2EndpointCheck Enable health checks. These are by default TCP health checks. For more options see "customCheck". These are required for DNS resolution to function properly.

swagger:model V2EndpointCheck

func (*V2EndpointCheck) MarshalBinary

func (m *V2EndpointCheck) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2EndpointCheck) UnmarshalBinary

func (m *V2EndpointCheck) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2EndpointCheck) UnmarshalJSON

func (m *V2EndpointCheck) UnmarshalJSON(b []byte) error

func (*V2EndpointCheck) Validate

func (m *V2EndpointCheck) Validate(formats strfmt.Registry) error

Validate validates this v2 endpoint check

type V2Frontend

type V2Frontend struct {

	// Only use characters that are allowed in the frontend name. Known invalid frontend name characters include "*", "[", and "]".
	BindAddress string `json:"bindAddress,omitempty"`

	// Additional text to put in the bind field
	BindModifier string `json:"bindModifier,omitempty"`

	// The port (e.g. 80 for HTTP or 443 for HTTPS) that this frontend will bind to.
	// Maximum: 65535
	// Minimum: 0
	BindPort *int32 `json:"bindPort,omitempty"`

	// certificates
	Certificates []string `json:"certificates"`

	// link backend
	LinkBackend *V2FrontendLinkBackend `json:"linkBackend,omitempty"`

	// Additional template lines inserted before use_backend
	MiscStrs []string `json:"miscStrs"`

	// Defaults to frontend_{{bindAddress}}_{{bindPort}}.
	// Pattern: ^[a-zA-Z0-9:_.-]*$
	Name string `json:"name,omitempty"`

	// The frontend protocol is how clients/users communicate with HAProxy.
	Protocol V2Protocol `json:"protocol,omitempty"`

	// redirect to Https
	RedirectToHTTPS *V2FrontendRedirectToHTTPS `json:"redirectToHttps,omitempty"`
}

V2Frontend The Frontend maps to the HAProxy frontend. This includes information such as what addresses and ports to listen on, what SSL/TLS certificates to use, and which backends to route to.

swagger:model V2Frontend

func (*V2Frontend) MarshalBinary

func (m *V2Frontend) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2Frontend) UnmarshalBinary

func (m *V2Frontend) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2Frontend) UnmarshalJSON

func (m *V2Frontend) UnmarshalJSON(b []byte) error

func (*V2Frontend) Validate

func (m *V2Frontend) Validate(formats strfmt.Registry) error

Validate validates this v2 frontend

type V2FrontendLinkBackend

type V2FrontendLinkBackend struct {

	// This is default backend that is routed to if none of the other filters are matched.
	DefaultBackend string `json:"defaultBackend,omitempty"`

	// This is an optional field that specifies a mapping to various backends. These rules are applied in order.
	Map []*V2FrontendLinkBackendMapItems0 `json:"map"`
}

V2FrontendLinkBackend This describes what backends to send traffic to. This can be expressed with a variety of filters such as matching on the hostname or the HTTP URL path.

swagger:model V2FrontendLinkBackend

func (*V2FrontendLinkBackend) MarshalBinary

func (m *V2FrontendLinkBackend) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2FrontendLinkBackend) UnmarshalBinary

func (m *V2FrontendLinkBackend) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2FrontendLinkBackend) UnmarshalJSON

func (m *V2FrontendLinkBackend) UnmarshalJSON(b []byte) error

func (*V2FrontendLinkBackend) Validate

func (m *V2FrontendLinkBackend) Validate(formats strfmt.Registry) error

Validate validates this v2 frontend link backend

type V2FrontendLinkBackendMapItems0

type V2FrontendLinkBackendMapItems0 struct {

	// backend
	Backend string `json:"backend,omitempty"`

	// All lowercase.
	HostEq string `json:"hostEq,omitempty"`

	// All lowercase. It is possible for a port (e.g. "foo.com:80") to be in this regex!
	HostReg string `json:"hostReg,omitempty"`

	// path beg
	PathBeg string `json:"pathBeg,omitempty"`

	// path end
	PathEnd string `json:"pathEnd,omitempty"`

	// path reg
	PathReg string `json:"pathReg,omitempty"`
}

V2FrontendLinkBackendMapItems0 "backend" and at least one of the condition fields must be filled out. If multiple conditions are filled out they will be combined with a boolean "AND".

swagger:model V2FrontendLinkBackendMapItems0

func (*V2FrontendLinkBackendMapItems0) MarshalBinary

func (m *V2FrontendLinkBackendMapItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2FrontendLinkBackendMapItems0) UnmarshalBinary

func (m *V2FrontendLinkBackendMapItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2FrontendLinkBackendMapItems0) Validate

func (m *V2FrontendLinkBackendMapItems0) Validate(formats strfmt.Registry) error

Validate validates this v2 frontend link backend map items0

type V2FrontendRedirectToHTTPS

type V2FrontendRedirectToHTTPS struct {

	// One may additionally set a whitelist of fields that must be matched to allow HTTP.
	Except []*V2FrontendRedirectToHTTPSExceptItems0 `json:"except"`
}

V2FrontendRedirectToHTTPS Setting this to the empty object is enough to redirect all traffic from HTTP (this frontend) to HTTPS (port 443).

swagger:model V2FrontendRedirectToHTTPS

func (*V2FrontendRedirectToHTTPS) MarshalBinary

func (m *V2FrontendRedirectToHTTPS) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2FrontendRedirectToHTTPS) UnmarshalBinary

func (m *V2FrontendRedirectToHTTPS) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2FrontendRedirectToHTTPS) UnmarshalJSON

func (m *V2FrontendRedirectToHTTPS) UnmarshalJSON(b []byte) error

func (*V2FrontendRedirectToHTTPS) Validate

func (m *V2FrontendRedirectToHTTPS) Validate(formats strfmt.Registry) error

Validate validates this v2 frontend redirect to HTTPS

type V2FrontendRedirectToHTTPSExceptItems0

type V2FrontendRedirectToHTTPSExceptItems0 struct {

	// Match on host
	Host string `json:"host,omitempty"`

	// Match on path
	PathBeg string `json:"pathBeg,omitempty"`
}

V2FrontendRedirectToHTTPSExceptItems0 Boolean AND will be applied with every selected value

swagger:model V2FrontendRedirectToHTTPSExceptItems0

func (*V2FrontendRedirectToHTTPSExceptItems0) MarshalBinary

func (m *V2FrontendRedirectToHTTPSExceptItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2FrontendRedirectToHTTPSExceptItems0) UnmarshalBinary

func (m *V2FrontendRedirectToHTTPSExceptItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2FrontendRedirectToHTTPSExceptItems0) Validate

Validate validates this v2 frontend redirect to HTTPS except items0

type V2Haproxy

type V2Haproxy struct {

	// Array of backends.
	Backends []*V2Backend `json:"backends"`

	// Array of frontends.
	Frontends []*V2Frontend `json:"frontends"`

	// stats
	Stats *V2Stats `json:"stats,omitempty"`
}

V2Haproxy v2 haproxy

swagger:model V2Haproxy

func (*V2Haproxy) MarshalBinary

func (m *V2Haproxy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2Haproxy) UnmarshalBinary

func (m *V2Haproxy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2Haproxy) UnmarshalJSON

func (m *V2Haproxy) UnmarshalJSON(b []byte) error

func (*V2Haproxy) Validate

func (m *V2Haproxy) Validate(formats strfmt.Registry) error

Validate validates this v2 haproxy

type V2Pool

type V2Pool struct {

	// Autogenerate a self-signed SSL/TLS certificate. It is not generated by default.
	// It will be written to "$AUTOCERT".
	AutoCertEnabled bool `json:"autoCertificate,omitempty"`

	// The api / schema version of this pool object
	APIVersion APIVersion `json:"apiVersion,omitempty"`

	// A cloud provider load-balancer configuration.
	CloudProvider *V2CloudProvider `json:"cloudProvider,omitempty"`

	// Marathon style constraints for load balancer instance placement.
	Constraints *string `json:"constraints,omitempty"`

	// Number of load balancer instances in the pool.
	Count *int32 `json:"count,omitempty"`

	// cpus
	Cpus float64 `json:"cpus,omitempty"`

	// cpus admin overhead
	CpusAdminOverhead float64 `json:"cpusAdminOverhead,omitempty"`

	// Disk size (in MB)
	Disk int32 `json:"disk,omitempty"`

	// Environment variables to pass to tasks.
	// Prefix with "ELB_FILE_" and it will be written to a file. For example, the contents of "ELB_FILE_MYENV" will be written to "$ENVFILE/ELB_FILE_MYENV".
	EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"`

	// haproxy
	Haproxy *V2Haproxy `json:"haproxy,omitempty"`

	// Memory requirements (in MB)
	Mem int32 `json:"mem,omitempty"`

	// Memory requirements (in MB)
	MemAdminOverhead int32 `json:"memAdminOverhead,omitempty"`

	// The pool name.
	// The name contains one or more lowercase letter(`a-z`), digit(`0-9`), or dash(`-`) and  must not begin or end with a dash(`-`). Ex. `my-pool-name`.
	Name string `json:"name,omitempty"`

	// The DC/OS space (sometimes also referred to as a "group").
	// The namespace consists of a series of names separated by slashes. See `name` for the description of valid names. By default, Edge-lB pool shares the same namespace as APIServer
	Namespace *string `json:"namespace,omitempty"`

	// package name
	PackageName string `json:"packageName,omitempty"`

	// package version
	PackageVersion string `json:"packageVersion,omitempty"`

	// Pool tasks healthcheck grace period (in seconds)
	// Minimum: 1
	PoolHealthcheckGracePeriod int32 `json:"poolHealthcheckGracePeriod,omitempty"`

	// Pool tasks healthcheck interval (in seconds)
	// Minimum: 1
	PoolHealthcheckInterval int32 `json:"poolHealthcheckInterval,omitempty"`

	// Pool tasks healthcheck maximum number of consecutive failures before declaring as unhealthy
	// Minimum: 1
	PoolHealthcheckMaxFail int32 `json:"poolHealthcheckMaxFail,omitempty"`

	// Maximum amount of time that Mesos will wait for the healthcheck container to finish executing
	// Minimum: 2
	PoolHealthcheckTimeout int32 `json:"poolHealthcheckTimeout,omitempty"`

	// Override ports to allocate for each load balancer instance. Defaults to {{haproxy.frontends[].bindPort}} and
	//   {{haproxy.stats.bindPort}}.
	// Use this field to pre-allocate all needed ports with or
	//   without the frontends present. For example: [80, 443, 9090].
	// If the length of the ports array is not zero, only the
	//   ports specified will be allocated by the pool scheduler.
	Ports []int32 `json:"ports"`

	// Mesos principal for pool framework authentication. If omitted or left blank, the service account used to install Edge-LB will be used if present.
	Principal *string `json:"principal,omitempty"`

	// Mesos role for load balancers. Defaults to "slave_public" so that load balancers will be run on public agents. Use "*" to run load balancers on private agents. Read more about Mesos roles at http://mesos.apache.org/documentation/latest/roles/
	Role string `json:"role,omitempty"`

	// Service account secret name for pool framework authentication. If omitted or left blank, the service account used to install Edge-LB will be used if present.
	SecretName *string `json:"secretName,omitempty"`

	// DC/OS secrets.
	Secrets []*V2PoolSecretsItems0 `json:"secrets"`

	// The type of the pool, e.g. whether it is a dynamic one or static one
	// Read Only: true
	Type PoolType `json:"type,omitempty"`

	// Virtual networks to join.
	VirtualNetworks []*V2PoolVirtualNetworksItems0 `json:"virtualNetworks"`
}

V2Pool The pool contains information on resources that the pool needs. Changes make to this section will relaunch the tasks.

swagger:model V2Pool

func (*V2Pool) MarshalBinary

func (m *V2Pool) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2Pool) UnmarshalBinary

func (m *V2Pool) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2Pool) UnmarshalJSON

func (m *V2Pool) UnmarshalJSON(b []byte) error

func (*V2Pool) Validate

func (m *V2Pool) Validate(formats strfmt.Registry) error

Validate validates this v2 pool

type V2PoolMetadata

type V2PoolMetadata struct {

	// aws
	Aws *V2CloudProviderAwsStatus `json:"aws,omitempty"`

	// Array of pool metadata frontends.
	Frontends []*V2PoolMetadataFrontend `json:"frontends"`

	// Name of the pool.
	// Min Length: 1
	Name string `json:"name,omitempty"`

	// Array of stats endpoint metadata.
	Stats []*V2PoolMetadataFrontendEndpoint `json:"stats"`
}

V2PoolMetadata v2 pool metadata

swagger:model V2PoolMetadata

func (*V2PoolMetadata) MarshalBinary

func (m *V2PoolMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2PoolMetadata) UnmarshalBinary

func (m *V2PoolMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2PoolMetadata) Validate

func (m *V2PoolMetadata) Validate(formats strfmt.Registry) error

Validate validates this v2 pool metadata

type V2PoolMetadataFrontend

type V2PoolMetadataFrontend struct {

	// Array of public, private IP addresses and port. Each entry in the array reflects the endpoint information of a particular pool instance. For example, if there are three pool instances then there would be three entries in the endpoint array.
	Endpoints []*V2PoolMetadataFrontendEndpoint `json:"endpoints"`

	// Name of the frontend in the edge-lb pool.
	Name string `json:"name,omitempty"`
}

V2PoolMetadataFrontend v2 pool metadata frontend

swagger:model V2PoolMetadataFrontend

func (*V2PoolMetadataFrontend) MarshalBinary

func (m *V2PoolMetadataFrontend) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2PoolMetadataFrontend) UnmarshalBinary

func (m *V2PoolMetadataFrontend) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2PoolMetadataFrontend) Validate

func (m *V2PoolMetadataFrontend) Validate(formats strfmt.Registry) error

Validate validates this v2 pool metadata frontend

type V2PoolMetadataFrontendEndpoint

type V2PoolMetadataFrontendEndpoint struct {

	// port
	// Maximum: 65535
	// Minimum: 0
	Port *int32 `json:"port,omitempty"`

	// Array of private IP addresses.
	Private []string `json:"private"`

	// Array of public IP addresses.
	Public []string `json:"public"`
}

V2PoolMetadataFrontendEndpoint v2 pool metadata frontend endpoint

swagger:model V2PoolMetadataFrontendEndpoint

func (*V2PoolMetadataFrontendEndpoint) MarshalBinary

func (m *V2PoolMetadataFrontendEndpoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2PoolMetadataFrontendEndpoint) UnmarshalBinary

func (m *V2PoolMetadataFrontendEndpoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2PoolMetadataFrontendEndpoint) Validate

func (m *V2PoolMetadataFrontendEndpoint) Validate(formats strfmt.Registry) error

Validate validates this v2 pool metadata frontend endpoint

type V2PoolSecretsItems0

type V2PoolSecretsItems0 struct {

	// File name.
	// The file "myfile" will be found at "$SECRETS/myfile"
	File string `json:"file,omitempty"`

	// Secret name
	Secret string `json:"secret,omitempty"`
}

V2PoolSecretsItems0 v2 pool secrets items0

swagger:model V2PoolSecretsItems0

func (*V2PoolSecretsItems0) MarshalBinary

func (m *V2PoolSecretsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2PoolSecretsItems0) UnmarshalBinary

func (m *V2PoolSecretsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2PoolSecretsItems0) Validate

func (m *V2PoolSecretsItems0) Validate(formats strfmt.Registry) error

Validate validates this v2 pool secrets items0

type V2PoolVirtualNetworksItems0

type V2PoolVirtualNetworksItems0 struct {

	// Labels to pass to the virtual network plugin.
	Labels map[string]string `json:"labels,omitempty"`

	// The name of the virtual network to join.
	Name string `json:"name,omitempty"`
}

V2PoolVirtualNetworksItems0 v2 pool virtual networks items0

swagger:model V2PoolVirtualNetworksItems0

func (*V2PoolVirtualNetworksItems0) MarshalBinary

func (m *V2PoolVirtualNetworksItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2PoolVirtualNetworksItems0) UnmarshalBinary

func (m *V2PoolVirtualNetworksItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2PoolVirtualNetworksItems0) Validate

func (m *V2PoolVirtualNetworksItems0) Validate(formats strfmt.Registry) error

Validate validates this v2 pool virtual networks items0

type V2Protocol

type V2Protocol string

V2Protocol v2 protocol

swagger:model V2Protocol

const (

	// V2ProtocolHTTP captures enum value "HTTP"
	V2ProtocolHTTP V2Protocol = "HTTP"

	// V2ProtocolHTTPS captures enum value "HTTPS"
	V2ProtocolHTTPS V2Protocol = "HTTPS"

	// V2ProtocolTCP captures enum value "TCP"
	V2ProtocolTCP V2Protocol = "TCP"

	// V2ProtocolTLS captures enum value "TLS"
	V2ProtocolTLS V2Protocol = "TLS"
)

func (V2Protocol) Validate

func (m V2Protocol) Validate(formats strfmt.Registry) error

Validate validates this v2 protocol

type V2RewriteHTTP

type V2RewriteHTTP struct {

	// Set the host header value
	Host string `json:"host,omitempty"`

	// path
	Path *V2RewriteHTTPPath `json:"path,omitempty"`

	// request
	Request *V2RewriteHTTPRequest `json:"request,omitempty"`

	// response
	Response *V2RewriteHTTPResponse `json:"response,omitempty"`

	// sticky
	Sticky *V2RewriteHTTPSticky `json:"sticky,omitempty"`
}

V2RewriteHTTP v2 rewrite Http

swagger:model V2RewriteHttp

func (*V2RewriteHTTP) MarshalBinary

func (m *V2RewriteHTTP) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2RewriteHTTP) UnmarshalBinary

func (m *V2RewriteHTTP) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2RewriteHTTP) UnmarshalJSON

func (m *V2RewriteHTTP) UnmarshalJSON(b []byte) error

func (*V2RewriteHTTP) Validate

func (m *V2RewriteHTTP) Validate(formats strfmt.Registry) error

Validate validates this v2 rewrite Http

type V2RewriteHTTPPath

type V2RewriteHTTPPath struct {

	// from path
	FromPath *string `json:"fromPath,omitempty"`

	// to path
	ToPath *string `json:"toPath,omitempty"`
}

V2RewriteHTTPPath Rewrite the HTTP URL path. Adding a slash to fromPath usually is not necessary.

swagger:model V2RewriteHTTPPath

func (*V2RewriteHTTPPath) MarshalBinary

func (m *V2RewriteHTTPPath) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2RewriteHTTPPath) UnmarshalBinary

func (m *V2RewriteHTTPPath) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2RewriteHTTPPath) UnmarshalJSON

func (m *V2RewriteHTTPPath) UnmarshalJSON(b []byte) error

func (*V2RewriteHTTPPath) Validate

func (m *V2RewriteHTTPPath) Validate(formats strfmt.Registry) error

Validate validates this v2 rewrite HTTP path

type V2RewriteHTTPRequest

type V2RewriteHTTPRequest struct {

	// forwardfor
	Forwardfor *bool `json:"forwardfor,omitempty"`

	// rewrite path
	RewritePath *bool `json:"rewritePath,omitempty"`

	// set host header
	SetHostHeader *bool `json:"setHostHeader,omitempty"`

	// x forwarded port
	XForwardedPort *bool `json:"xForwardedPort,omitempty"`

	// x forwarded proto Https if Tls
	XForwardedProtoHTTPSIfTLS *bool `json:"xForwardedProtoHttpsIfTls,omitempty"`
}

V2RewriteHTTPRequest Rewrite the request. To use the default values (recommended), set this field to the empty object.

swagger:model V2RewriteHttpRequest

func (*V2RewriteHTTPRequest) MarshalBinary

func (m *V2RewriteHTTPRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2RewriteHTTPRequest) UnmarshalBinary

func (m *V2RewriteHTTPRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2RewriteHTTPRequest) UnmarshalJSON

func (m *V2RewriteHTTPRequest) UnmarshalJSON(b []byte) error

func (*V2RewriteHTTPRequest) Validate

func (m *V2RewriteHTTPRequest) Validate(formats strfmt.Registry) error

Validate validates this v2 rewrite Http request

type V2RewriteHTTPResponse

type V2RewriteHTTPResponse struct {

	// rewrite location
	RewriteLocation *bool `json:"rewriteLocation,omitempty"`
}

V2RewriteHTTPResponse Rewrite the response. To use the default values (recommended), set this field to the empty object.

swagger:model V2RewriteHttpResponse

func (*V2RewriteHTTPResponse) MarshalBinary

func (m *V2RewriteHTTPResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2RewriteHTTPResponse) UnmarshalBinary

func (m *V2RewriteHTTPResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2RewriteHTTPResponse) UnmarshalJSON

func (m *V2RewriteHTTPResponse) UnmarshalJSON(b []byte) error

func (*V2RewriteHTTPResponse) Validate

func (m *V2RewriteHTTPResponse) Validate(formats strfmt.Registry) error

Validate validates this v2 rewrite Http response

type V2RewriteHTTPSticky

type V2RewriteHTTPSticky struct {

	// custom str
	CustomStr string `json:"customStr,omitempty"`

	// enabled
	Enabled *bool `json:"enabled,omitempty"`
}

V2RewriteHTTPSticky Sticky sessions via a cookie. To use the default values (recommended), set this field to the empty object.

swagger:model V2RewriteHTTPSticky

func (*V2RewriteHTTPSticky) MarshalBinary

func (m *V2RewriteHTTPSticky) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2RewriteHTTPSticky) UnmarshalBinary

func (m *V2RewriteHTTPSticky) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2RewriteHTTPSticky) UnmarshalJSON

func (m *V2RewriteHTTPSticky) UnmarshalJSON(b []byte) error

func (*V2RewriteHTTPSticky) Validate

func (m *V2RewriteHTTPSticky) Validate(formats strfmt.Registry) error

Validate validates this v2 rewrite HTTP sticky

type V2Service

type V2Service struct {

	// Endpoint address and port selector.
	Endpoint *V2Endpoint `json:"endpoint,omitempty"`

	// marathon
	Marathon *V2ServiceMarathon `json:"marathon,omitempty"`

	// mesos
	Mesos *V2ServiceMesos `json:"mesos,omitempty"`
}

V2Service v2 service

swagger:model V2Service

func (*V2Service) MarshalBinary

func (m *V2Service) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2Service) UnmarshalBinary

func (m *V2Service) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2Service) UnmarshalJSON

func (m *V2Service) UnmarshalJSON(b []byte) error

func (*V2Service) Validate

func (m *V2Service) Validate(formats strfmt.Registry) error

Validate validates this v2 service

type V2ServiceMarathon

type V2ServiceMarathon struct {

	// Marathon pod container name, optional unless using Marathon pods.
	ContainerName string `json:"containerName,omitempty"`

	// container name pattern
	ContainerNamePattern string `json:"containerNamePattern,omitempty"`

	// Marathon pod or application ID.
	ServiceID string `json:"serviceID,omitempty"`

	// service ID pattern
	ServiceIDPattern string `json:"serviceIDPattern,omitempty"`
}

V2ServiceMarathon v2 service marathon

swagger:model V2ServiceMarathon

func (*V2ServiceMarathon) MarshalBinary

func (m *V2ServiceMarathon) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2ServiceMarathon) UnmarshalBinary

func (m *V2ServiceMarathon) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2ServiceMarathon) Validate

func (m *V2ServiceMarathon) Validate(formats strfmt.Registry) error

Validate validates this v2 service marathon

type V2ServiceMesos

type V2ServiceMesos struct {

	// Mesos framework ID.
	FrameworkID string `json:"frameworkID,omitempty"`

	// framework ID pattern
	FrameworkIDPattern string `json:"frameworkIDPattern,omitempty"`

	// Mesos framework name.
	FrameworkName string `json:"frameworkName,omitempty"`

	// framework name pattern
	FrameworkNamePattern string `json:"frameworkNamePattern,omitempty"`

	// Mesos task ID.
	TaskID string `json:"taskID,omitempty"`

	// task ID pattern
	TaskIDPattern string `json:"taskIDPattern,omitempty"`

	// Mesos task name.
	TaskName string `json:"taskName,omitempty"`

	// task name pattern
	TaskNamePattern string `json:"taskNamePattern,omitempty"`
}

V2ServiceMesos v2 service mesos

swagger:model V2ServiceMesos

func (*V2ServiceMesos) MarshalBinary

func (m *V2ServiceMesos) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2ServiceMesos) UnmarshalBinary

func (m *V2ServiceMesos) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2ServiceMesos) Validate

func (m *V2ServiceMesos) Validate(formats strfmt.Registry) error

Validate validates this v2 service mesos

type V2Stats

type V2Stats struct {

	// bind address
	BindAddress string `json:"bindAddress,omitempty"`

	// bind port
	// Maximum: 65535
	// Minimum: 0
	BindPort *int32 `json:"bindPort,omitempty"`
}

V2Stats v2 stats

swagger:model V2Stats

func (*V2Stats) MarshalBinary

func (m *V2Stats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V2Stats) UnmarshalBinary

func (m *V2Stats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V2Stats) UnmarshalJSON

func (m *V2Stats) UnmarshalJSON(b []byte) error

func (*V2Stats) Validate

func (m *V2Stats) Validate(formats strfmt.Registry) error

Validate validates this v2 stats

Jump to

Keyboard shortcuts

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