Documentation
¶
Overview ¶
Package v1 Dispatch API.
The API for Dispatch framework instances.
Version: 1.0.0 Contact: <dispatch@vmware.com>
swagger:meta
Index ¶
- Variables
- type API
- type Application
- type BaseImage
- type CloudEvent
- type Config
- type Emission
- type Error
- type ErrorType
- type EventDriver
- type EventDriverType
- type FieldPattern
- type Function
- type Image
- type InvocationError
- type Logs
- type Message
- type Organization
- type Policy
- type Redirect
- type Rule
- type Run
- type RuntimeDependencies
- type Schema
- type Secret
- type SecretValue
- type ServiceAccount
- type ServiceBinding
- type ServiceClass
- type ServiceInstance
- type ServicePlan
- type ServicePlanSchema
- type Spec
- type Status
- type Subscription
- type SystemDependencies
- type SystemDependency
- type Tag
- type Version
Constants ¶
This section is empty.
Variables ¶
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
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 ¶
MarshalBinary interface implementation
func (*API) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*BaseImage) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Config) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Emission) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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" )
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
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
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 ¶
MarshalBinary interface implementation
func (*Function) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Image) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Logs) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Message ¶
type Message struct {
// message
// Required: true
Message *string `json:"message"`
}
Message message swagger:model Message
func (*Message) MarshalBinary ¶
MarshalBinary interface implementation
func (*Message) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Policy) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Redirect ¶
type Redirect struct {
// location
// Required: true
Location *string `json:"location"`
}
Redirect redirect swagger:model Redirect
func (*Redirect) MarshalBinary ¶
MarshalBinary interface implementation
func (*Redirect) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Rule) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Run) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Schema) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Secret) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SecretValue ¶
SecretValue secret value swagger:model SecretValue
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
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
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
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
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
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
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" )
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
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
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
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 ¶
MarshalBinary interface implementation
func (*Tag) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
Source Files
¶
- api.go
- application.go
- base_image.go
- cloud_event.go
- config.go
- doc.go
- emission.go
- error.go
- error_type.go
- event_driver.go
- event_driver_type.go
- field_patterns.go
- function.go
- image.go
- invocation_error.go
- logs.go
- message.go
- organization.go
- policy.go
- redirect.go
- rule.go
- run.go
- runtime_dependencies.go
- schema.go
- secret.go
- secret_value.go
- service_account.go
- service_binding.go
- service_class.go
- service_instance.go
- service_plan.go
- service_plan_schema.go
- spec.go
- status.go
- subscription.go
- system_dependencies.go
- system_dependency.go
- tag.go
- version.go