v1

package
v0.0.4-solo Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1 Dispatch API.

The API for Dispatch framework instances.

Version: 1.0.0
Contact: <dispatch@vmware.com>

swagger:meta

Index

Constants

This section is empty.

Variables

View Source
var FieldPatternName = FieldPattern{
	Pattern: `^[\w\d][\w\d\-]*$`,
	Message: "should start with letter or number and may only contain letters, numbers, underscores and dashes",
}

FieldPatternName letter, underscore, number and dash

View Source
var FieldPatternNameEventDriver = FieldPattern{
	Pattern: `^[a-z0-9][a-z0-9\-]*$`,
	Message: "should start with lower case letter or number and may only contain lower case letters, numbers and dashes",
}

FieldPatternNameEventDriver lower case letter, number and dash

Functions

This section is empty.

Types

type API

type API struct {

	// the authentication method for api consumers (public, basic, oidc, etc.)
	Authentication string `json:"authentication,omitempty"`

	// enable Cross-Origin Resource Sharing (CORS)
	Cors bool `json:"cors,omitempty"`

	// a easy way to disable an API without deleting it.
	Enabled bool `json:"enabled,omitempty"`

	// the name of the function associated with
	// Required: true
	Function *string `json:"function"`

	// a list of domain names that point to the API
	Hosts []string `json:"hosts"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// a list of HTTP/S methods that point to the API
	Methods []string `json:"methods"`

	// name
	// Required: true
	// Pattern: ^[\w\d][\w\d\-]*$
	Name *string `json:"name"`

	// a list of support protocols (i.e. http, https)
	Protocols []string `json:"protocols"`

	// status
	Status Status `json:"status,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`

	// the tls credentials (imported from serverless secret) for https connection
	TLS string `json:"tls,omitempty"`

	// a list of URIs prefixes that point to the API
	Uris []string `json:"uris"`
}

API API swagger:model API

func (*API) MarshalBinary

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

MarshalBinary interface implementation

func (*API) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*API) Validate

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

Validate validates this API

type Application

type Application struct {

	// created time
	// Read Only: true
	CreatedTime int64 `json:"createdTime,omitempty"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// modified time
	// Read Only: true
	ModifiedTime int64 `json:"modifiedTime,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d][\w\d\-]*$
	Name *string `json:"name"`

	// status
	// Read Only: true
	Status Status `json:"status,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`
}

Application application swagger:model Application

func (*Application) MarshalBinary

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

MarshalBinary interface implementation

func (*Application) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Application) Validate

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

Validate validates this application

type BaseImage

type BaseImage struct {

	// created time
	CreatedTime int64 `json:"createdTime,omitempty"`

	// docker Url
	// Required: true
	DockerURL *string `json:"dockerUrl"`

	// groups
	Groups []string `json:"groups"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// language
	// Required: true
	Language *string `json:"language"`

	// name
	// Required: true
	// Pattern: ^[\w\d][\w\d\-]*$
	Name *string `json:"name"`

	// reason
	Reason []string `json:"reason"`

	// spec
	Spec Spec `json:"spec,omitempty"`

	// status
	Status Status `json:"status,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`
}

BaseImage base image swagger:model BaseImage

func (*BaseImage) MarshalBinary

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

MarshalBinary interface implementation

func (*BaseImage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BaseImage) Validate

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

Validate validates this base image

type CloudEvent

type CloudEvent struct {
	// event type
	// Required: true
	// Max Length: 128
	// Pattern: ^[\w\d\-\.]+$
	EventType string `json:"eventType"`

	// event type version
	EventTypeVersion string `json:"eventTypeVersion,omitempty"`

	// cloud events version
	// Required: true
	CloudEventsVersion string `json:"cloudEventsVersion"`

	// source
	// Required: true
	Source string `json:"source"`

	// event id
	// Required: true
	EventID string `json:"eventID"`

	// event time
	EventTime strfmt.DateTime `json:"eventTime,omitempty"`

	// schema url
	SchemaURL string `json:"schemaURL,omitempty"`

	// content type
	ContentType string `json:"contentType,omitempty"`

	// extensions
	Extensions map[string]interface{} `json:"extensions,omitempty"`

	// data
	Data json.RawMessage `json:"data,omitempty"`
}

CloudEvent cloud event, implemented based on: https://github.com/cloudevents/spec/blob/a12b6b618916c89bfa5595fc76732f07f89219b5/spec.md swagger:model CloudEvent

func (*CloudEvent) MarshalBinary

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

MarshalBinary interface implementation

func (*CloudEvent) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CloudEvent) Validate

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

Validate validates this cloud event

type Config

type Config struct {

	// key
	Key string `json:"key,omitempty"`

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

Config config swagger:model Config

func (*Config) MarshalBinary

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

MarshalBinary interface implementation

func (*Config) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Config) Validate

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

Validate validates this config

type Emission

type Emission struct {

	// event
	// swagger:allOf
	CloudEvent

	// emitted time
	// Read Only: true
	EmittedTime int64 `json:"emitted-time,omitempty"`

	// id
	// Read Only: true
	ID strfmt.UUID `json:"id,omitempty"`

	// tags
	Tags []*Tag `json:"tags,omitempty"`
}

Emission emission swagger:model Emission

func (*Emission) MarshalBinary

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

MarshalBinary interface implementation

func (*Emission) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Emission) Validate

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

Validate validates this emission

type Error

type Error struct {

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

	// message
	// Required: true
	Message *string `json:"message"`
}

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 ErrorType added in v0.1.15

type ErrorType string

ErrorType error type swagger:model ErrorType

const (

	// ErrorTypeInputError captures enum value "InputError"
	ErrorTypeInputError ErrorType = "InputError"

	// ErrorTypeFunctionError captures enum value "FunctionError"
	ErrorTypeFunctionError ErrorType = "FunctionError"

	// ErrorTypeSystemError captures enum value "SystemError"
	ErrorTypeSystemError ErrorType = "SystemError"
)

func (ErrorType) Validate added in v0.1.15

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

Validate validates this error type

type EventDriver

type EventDriver struct {

	// config
	Config []*Config `json:"config"`

	// created time
	// Read Only: true
	CreatedTime int64 `json:"created-time,omitempty"`

	// id
	// Read Only: true
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// modified time
	// Read Only: true
	ModifiedTime int64 `json:"modified-time,omitempty"`

	// name
	// Required: true
	// Pattern: ^[a-z0-9][a-z0-9\-]*$
	Name *string `json:"name"`

	// reason
	Reason []string `json:"reason"`

	// secrets
	Secrets []string `json:"secrets"`

	// expose
	// Read Only: true
	Expose bool `json:"expose"`

	// url
	// Read Only: true
	URL string `json:"url,omitempty"`

	// status
	// Read Only: true
	Status Status `json:"status,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`

	// type
	// Required: true
	// Max Length: 32
	Type *string `json:"type"`
}

EventDriver driver swagger:model EventDriver

func (*EventDriver) MarshalBinary

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

MarshalBinary interface implementation

func (*EventDriver) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventDriver) Validate

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

Validate validates this driver

type EventDriverType

type EventDriverType struct {

	// config
	Config []*Config `json:"config"`

	// created time
	// Read Only: true
	CreatedTime int64 `json:"created-time,omitempty"`

	// id
	// Read Only: true
	ID strfmt.UUID `json:"id,omitempty"`

	// image
	// Required: true
	Image *string `json:"image"`

	// expose
	Expose bool `json:"expose"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// modified time
	// Read Only: true
	ModifiedTime int64 `json:"modified-time,omitempty"`

	// name
	// Required: true
	// Max Length: 32
	// Pattern: ^[\w\d][\w\d\-]*$
	Name *string `json:"name"`

	// tags
	Tags []*Tag `json:"tags"`
}

EventDriverType driver type swagger:model EventDriverType

func (*EventDriverType) MarshalBinary

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

MarshalBinary interface implementation

func (*EventDriverType) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventDriverType) Validate

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

Validate validates this driver type

type FieldPattern added in v0.1.19

type FieldPattern struct {

	// regex pattern
	Pattern string `json:"pattern"`

	// translated msg presented to user
	Message string `json:"message"`
}

FieldPattern field pattern swagger:model FieldPattern

func (FieldPattern) Validate added in v0.1.19

func (p FieldPattern) Validate(fieldName, field string) error

Validate validates field pattern and return error with translated msg

type Function

type Function struct {

	// source
	Source strfmt.Base64 `json:"source,omitempty"`

	// sourceURL
	SourceURL string `json:"sourceURL,omitempty"`

	// only used in seed.yaml
	SourcePath string `json:"sourcePath,omitempty"`

	// created time
	CreatedTime int64 `json:"createdTime,omitempty"`

	// faas Id
	FaasID strfmt.UUID `json:"faasId,omitempty"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// image
	// Required: true
	Image *string `json:"image"`

	// functionImageURL
	FunctionImageURL string `json:"functionImageURL,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// handler
	// Required: true
	Handler string `json:"handler"`

	// modified time
	ModifiedTime int64 `json:"modifiedTime,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d][\w\d\-]*$
	Name *string `json:"name"`

	// reason
	Reason []string `json:"reason"`

	// schema
	Schema *Schema `json:"schema,omitempty"`

	// secrets
	Secrets []string `json:"secrets"`

	// services
	Services []string `json:"services"`

	// status
	Status Status `json:"status,omitempty"`

	// timeout
	Timeout int64 `json:"timeout,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`
}

Function function swagger:model Function

func (*Function) MarshalBinary

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

MarshalBinary interface implementation

func (*Function) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Function) Validate

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

Validate validates this function

type Image

type Image struct {

	// base image name
	// Required: true
	// Pattern: ^[\w\d][\w\d\-]*$
	BaseImageName *string `json:"baseImageName"`

	// created time
	CreatedTime int64 `json:"createdTime,omitempty"`

	// docker Url
	// Read Only: true
	DockerURL string `json:"dockerUrl,omitempty"`

	// groups
	Groups []string `json:"groups"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// language
	Language string `json:"language,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d][\w\d\-]*$
	Name *string `json:"name"`

	// reason
	Reason []string `json:"reason"`

	// runtime dependencies
	RuntimeDependencies *RuntimeDependencies `json:"runtimeDependencies,omitempty"`

	// spec
	Spec Spec `json:"spec,omitempty"`

	// status
	Status Status `json:"status,omitempty"`

	// system dependencies
	SystemDependencies *SystemDependencies `json:"systemDependencies,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`
}

Image image swagger:model Image

func (*Image) MarshalBinary

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

MarshalBinary interface implementation

func (*Image) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Image) Validate

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

Validate validates this image

type InvocationError added in v0.1.15

type InvocationError struct {

	// message
	// Required: true
	Message *string `json:"message"`

	// stacktrace
	Stacktrace []string `json:"stacktrace"`

	// type
	// Required: true
	Type ErrorType `json:"type"`
}

InvocationError invocation error swagger:model InvocationError

func (*InvocationError) MarshalBinary added in v0.1.15

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

MarshalBinary interface implementation

func (*InvocationError) UnmarshalBinary added in v0.1.15

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

UnmarshalBinary interface implementation

func (*InvocationError) Validate added in v0.1.15

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

Validate validates this invocation error

type Logs

type Logs struct {

	// stderr
	// Required: true
	Stderr []string `json:"stderr"`

	// stdout
	// Required: true
	Stdout []string `json:"stdout"`
}

Logs logs swagger:model Logs

func (*Logs) MarshalBinary

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

MarshalBinary interface implementation

func (*Logs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Logs) Validate

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

Validate validates this logs

type Message

type Message struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

Message message swagger:model Message

func (*Message) MarshalBinary

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

MarshalBinary interface implementation

func (*Message) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Message) Validate

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

Validate validates this message

type Organization added in v0.1.16

type Organization struct {

	// created time
	// Read Only: true
	CreatedTime int64 `json:"createdTime,omitempty"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// modified time
	// Read Only: true
	ModifiedTime int64 `json:"modifiedTime,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d\-]+$
	Name *string `json:"name"`

	// status
	// Read Only: true
	Status Status `json:"status,omitempty"`
}

Organization organization swagger:model Organization

func (*Organization) MarshalBinary added in v0.1.16

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

MarshalBinary interface implementation

func (*Organization) UnmarshalBinary added in v0.1.16

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

UnmarshalBinary interface implementation

func (*Organization) Validate added in v0.1.16

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

Validate validates this organization

type Policy

type Policy struct {

	// created time
	// Read Only: true
	CreatedTime int64 `json:"createdTime,omitempty"`

	// global
	Global bool `json:"global,omitempty"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// modified time
	// Read Only: true
	ModifiedTime int64 `json:"modifiedTime,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d][\w\d\-]*$
	Name *string `json:"name"`

	// rules
	// Required: true
	Rules []*Rule `json:"rules"`

	// status
	// Read Only: true
	Status Status `json:"status,omitempty"`
}

Policy policy swagger:model Policy

func (*Policy) MarshalBinary

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

MarshalBinary interface implementation

func (*Policy) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Policy) Validate

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

Validate validates this policy

type Redirect

type Redirect struct {

	// location
	// Required: true
	Location *string `json:"location"`
}

Redirect redirect swagger:model Redirect

func (*Redirect) MarshalBinary

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

MarshalBinary interface implementation

func (*Redirect) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Redirect) Validate

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

Validate validates this redirect

type Rule

type Rule struct {

	// actions
	// Required: true
	Actions []string `json:"actions"`

	// resources
	// Required: true
	Resources []string `json:"resources"`

	// subjects
	// Required: true
	Subjects []string `json:"subjects"`
}

Rule rule swagger:model Rule

func (*Rule) MarshalBinary

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

MarshalBinary interface implementation

func (*Rule) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Rule) Validate

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

Validate validates this rule

type Run

type Run struct {

	// blocking
	Blocking bool `json:"blocking,omitempty"`

	// error
	Error *InvocationError `json:"error,omitempty"`

	// event
	Event *CloudEvent `json:"event,omitempty"`

	// executed time
	// Read Only: true
	ExecutedTime int64 `json:"executedTime,omitempty"`

	// faas Id
	FaasID strfmt.UUID `json:"faasId,omitempty"`

	// finished time
	// Read Only: true
	FinishedTime int64 `json:"finishedTime,omitempty"`

	// function Id
	// Read Only: true
	FunctionID string `json:"functionId,omitempty"`

	// function name
	// Read Only: true
	FunctionName string `json:"functionName,omitempty"`

	// http context
	// Read Only: true
	HTTPContext map[string]interface{} `json:"httpContext,omitempty"`

	// input
	Input interface{} `json:"input,omitempty"`

	// logs
	Logs *Logs `json:"logs,omitempty"`

	// name
	// Read Only: true
	Name strfmt.UUID `json:"name,omitempty"`

	// output
	// Read Only: true
	Output interface{} `json:"output,omitempty"`

	// reason
	Reason []string `json:"reason"`

	// secrets
	Secrets []string `json:"secrets"`

	// services
	Services []string `json:"services"`

	// status
	Status Status `json:"status,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`
}

Run run swagger:model Run

func (*Run) MarshalBinary

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

MarshalBinary interface implementation

func (*Run) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Run) Validate

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

Validate validates this run

type RuntimeDependencies

type RuntimeDependencies struct {

	// manifest
	Manifest string `json:"manifest,omitempty"`
}

RuntimeDependencies runtime dependencies swagger:model RuntimeDependencies

func (*RuntimeDependencies) MarshalBinary

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

MarshalBinary interface implementation

func (*RuntimeDependencies) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RuntimeDependencies) Validate

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

Validate validates this runtime dependencies

type Schema

type Schema struct {

	// in
	In interface{} `json:"in,omitempty"`

	// out
	Out interface{} `json:"out,omitempty"`
}

Schema schema swagger:model Schema

func (*Schema) MarshalBinary

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

MarshalBinary interface implementation

func (*Schema) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Schema) Validate

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

Validate validates this schema

type Secret

type Secret struct {

	// id
	// Read Only: true
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d][\w\d\-]*$
	Name *string `json:"name"`

	// secrets
	Secrets SecretValue `json:"secrets,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`
}

Secret secret swagger:model Secret

func (*Secret) MarshalBinary

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

MarshalBinary interface implementation

func (*Secret) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Secret) Validate

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

Validate validates this secret

type SecretValue

type SecretValue map[string]string

SecretValue secret value swagger:model SecretValue

func (SecretValue) Validate

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

Validate validates this secret value

type ServiceAccount

type ServiceAccount struct {

	// created time
	// Read Only: true
	CreatedTime int64 `json:"createdTime,omitempty"`

	// domain
	// Pattern: ^[\w\d\-\.]+$
	Domain string `json:"domain,omitempty"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// modified time
	// Read Only: true
	ModifiedTime int64 `json:"modifiedTime,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d\-\.]+$
	Name *string `json:"name"`

	// public key
	// Required: true
	PublicKey *string `json:"publicKey"`

	// status
	// Read Only: true
	Status Status `json:"status,omitempty"`
}

ServiceAccount service account swagger:model ServiceAccount

func (*ServiceAccount) MarshalBinary

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

MarshalBinary interface implementation

func (*ServiceAccount) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServiceAccount) Validate

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

Validate validates this service account

type ServiceBinding

type ServiceBinding struct {

	// binding secret
	BindingSecret string `json:"bindingSecret,omitempty"`

	// created time
	CreatedTime int64 `json:"createdTime,omitempty"`

	// parameters
	Parameters interface{} `json:"parameters,omitempty"`

	// reason
	Reason []string `json:"reason"`

	// secret parameters
	SecretParameters []string `json:"secretParameters"`

	// status
	Status Status `json:"status,omitempty"`
}

ServiceBinding service binding swagger:model ServiceBinding

func (*ServiceBinding) MarshalBinary

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

MarshalBinary interface implementation

func (*ServiceBinding) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServiceBinding) Validate

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

Validate validates this service binding

type ServiceClass

type ServiceClass struct {

	// bindable
	Bindable bool `json:"bindable,omitempty"`

	// broker
	// Required: true
	Broker *string `json:"broker"`

	// created time
	CreatedTime int64 `json:"createdTime,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d\-]+$
	Name *string `json:"name"`

	// plans
	Plans []*ServicePlan `json:"plans"`

	// reason
	Reason []string `json:"reason"`

	// status
	Status Status `json:"status,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`
}

ServiceClass service class swagger:model ServiceClass

func (*ServiceClass) MarshalBinary

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

MarshalBinary interface implementation

func (*ServiceClass) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServiceClass) Validate

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

Validate validates this service class

type ServiceInstance

type ServiceInstance struct {

	// binding
	Binding *ServiceBinding `json:"binding,omitempty"`

	// created time
	CreatedTime int64 `json:"createdTime,omitempty"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d][\w\d\-]*$
	Name *string `json:"name"`

	// parameters
	Parameters interface{} `json:"parameters,omitempty"`

	// reason
	Reason []string `json:"reason"`

	// secret parameters
	SecretParameters []string `json:"secretParameters"`

	// service class
	// Required: true
	// Pattern: ^[\w\d\-]+$
	ServiceClass *string `json:"serviceClass"`

	// service plan
	// Required: true
	// Pattern: ^[\w\d\-]+$
	ServicePlan *string `json:"servicePlan"`

	// status
	Status Status `json:"status,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`
}

ServiceInstance service instance swagger:model ServiceInstance

func (*ServiceInstance) MarshalBinary

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

MarshalBinary interface implementation

func (*ServiceInstance) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServiceInstance) Validate

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

Validate validates this service instance

type ServicePlan

type ServicePlan struct {

	// bindable
	Bindable bool `json:"bindable,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// free
	Free bool `json:"free,omitempty"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata interface{} `json:"metadata,omitempty"`

	// name
	// Pattern: ^[\w\d\-]+$
	Name string `json:"name,omitempty"`

	// schema
	Schema *ServicePlanSchema `json:"schema,omitempty"`
}

ServicePlan service plan swagger:model ServicePlan

func (*ServicePlan) MarshalBinary

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

MarshalBinary interface implementation

func (*ServicePlan) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServicePlan) Validate

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

Validate validates this service plan

type ServicePlanSchema

type ServicePlanSchema struct {

	// bind
	Bind interface{} `json:"bind,omitempty"`

	// create
	Create interface{} `json:"create,omitempty"`

	// update
	Update interface{} `json:"update,omitempty"`
}

ServicePlanSchema service plan schema swagger:model ServicePlanSchema

func (*ServicePlanSchema) MarshalBinary

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

MarshalBinary interface implementation

func (*ServicePlanSchema) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServicePlanSchema) Validate

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

Validate validates this service plan schema

type Spec

type Spec string

Spec spec swagger:model Spec

const (

	// SpecCONFIGURE captures enum value "CONFIGURE"
	SpecCONFIGURE Spec = "CONFIGURE"

	// SpecCREATE captures enum value "CREATE"
	SpecCREATE Spec = "CREATE"

	// SpecDELETE captures enum value "DELETE"
	SpecDELETE Spec = "DELETE"
)

func (Spec) Validate

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

Validate validates this spec

type Status

type Status string

Status status swagger:model Status

const (

	// StatusINITIALIZED captures enum value "INITIALIZED"
	StatusINITIALIZED Status = "INITIALIZED"

	// StatusCREATING captures enum value "CREATING"
	StatusCREATING Status = "CREATING"

	// StatusREADY captures enum value "READY"
	StatusREADY Status = "READY"

	// StatusUPDATING captures enum value "UPDATING"
	StatusUPDATING Status = "UPDATING"

	// StatusERROR captures enum value "ERROR"
	StatusERROR Status = "ERROR"

	// StatusDELETING captures enum value "DELETING"
	StatusDELETING Status = "DELETING"

	//StatusDELETED captures enum value "DELETED"
	StatusDELETED Status = "DELETED"
)

func (Status) Validate

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

Validate validates this status

type Subscription

type Subscription struct {

	// created time
	// Read Only: true
	CreatedTime int64 `json:"createdTime,omitempty"`

	// event type
	// Required: true
	// Max Length: 128
	// Pattern: ^[\w\d\-\.]+$
	EventType *string `json:"eventType"`

	// function
	// Required: true
	// Pattern: ^[\w\d\-]+$
	Function *string `json:"function"`

	// id
	// Read Only: true
	ID strfmt.UUID `json:"id,omitempty"`

	// kind
	// Read Only: true
	// Pattern: ^[\w\d\-]+$
	Kind string `json:"kind,omitempty"`

	// modified time
	// Read Only: true
	ModifiedTime int64 `json:"modifiedTime,omitempty"`

	// name
	// Required: true
	// Pattern: ^[\w\d][\w\d\-]*$
	Name *string `json:"name"`

	// secrets
	Secrets []string `json:"secrets"`

	// status
	// Read Only: true
	Status Status `json:"status,omitempty"`

	// tags
	Tags []*Tag `json:"tags"`
}

Subscription subscription swagger:model Subscription

func (*Subscription) MarshalBinary

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

MarshalBinary interface implementation

func (*Subscription) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Subscription) Validate

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

Validate validates this subscription

type SystemDependencies

type SystemDependencies struct {

	// packages
	Packages []*SystemDependency `json:"packages"`
}

SystemDependencies system dependencies swagger:model SystemDependencies

func (*SystemDependencies) MarshalBinary

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

MarshalBinary interface implementation

func (*SystemDependencies) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SystemDependencies) Validate

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

Validate validates this system dependencies

type SystemDependency

type SystemDependency struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// version
	Version string `json:"version,omitempty"`
}

SystemDependency system dependency swagger:model SystemDependency

func (*SystemDependency) MarshalBinary

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

MarshalBinary interface implementation

func (*SystemDependency) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SystemDependency) Validate

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

Validate validates this system dependency

type Tag

type Tag struct {

	// key
	Key string `json:"key,omitempty"`

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

Tag tag swagger:model Tag

func (*Tag) MarshalBinary

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

MarshalBinary interface implementation

func (*Tag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Tag) Validate

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

Validate validates this tag

type Version added in v0.1.17

type Version struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	BuildDate string `json:"buildDate"`
	GoVersion string `json:"goVersion"`
	Compiler  string `json:"compiler"`
	Platform  string `json:"platform"`
}

Version describes version/build metadata swagger:model Version

Jump to

Keyboard shortcuts

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