Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudEvent ¶ added in v0.1.13
type CloudEvent struct {
// cloud events version
// Required: true
CloudEventsVersion *string `json:"cloud-events-version"`
// content type
ContentType string `json:"content-type,omitempty"`
// data
Data string `json:"data,omitempty"`
// event id
// Required: true
EventID *string `json:"event-id"`
// event time
EventTime strfmt.DateTime `json:"event-time,omitempty"`
// event type
// Required: true
// Max Length: 128
// Pattern: ^[\w\d\-\.]+$
EventType *string `json:"event-type"`
// event type version
EventTypeVersion string `json:"event-type-version,omitempty"`
// extensions
Extensions map[string]interface{} `json:"extensions,omitempty"`
// namespace
// Required: true
Namespace *string `json:"namespace"`
// schema url
SchemaURL string `json:"schema-url,omitempty"`
// source id
// Required: true
SourceID *string `json:"source-id"`
// source type
// Required: true
SourceType *string `json:"source-type"`
}
CloudEvent cloud event swagger:model CloudEvent
func (*CloudEvent) MarshalBinary ¶ added in v0.1.13
func (m *CloudEvent) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CloudEvent) UnmarshalBinary ¶ added in v0.1.13
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 Driver ¶
type Driver 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
Name *string `json:"name"`
// secrets
Secrets []string `json:"secrets"`
// status
// Read Only: true
Status Status `json:"status,omitempty"`
// tags
Tags []*Tag `json:"tags"`
// type
// Required: true
// Max Length: 32
Type *string `json:"type"`
}
Driver driver swagger:model Driver
func (*Driver) MarshalBinary ¶
MarshalBinary interface implementation
func (*Driver) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DriverType ¶ added in v0.1.13
type DriverType struct {
// built in
// Read Only: true
BuiltIn *bool `json:"built-in,omitempty"`
// 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"`
// 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
Name *string `json:"name"`
// tags
Tags []*Tag `json:"tags"`
}
DriverType driver type swagger:model DriverType
func (*DriverType) MarshalBinary ¶ added in v0.1.13
func (m *DriverType) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DriverType) UnmarshalBinary ¶ added in v0.1.13
func (m *DriverType) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Emission ¶
type Emission struct {
// emitted time
// Read Only: true
EmittedTime int64 `json:"emitted-time,omitempty"`
// event
// Required: true
Event *CloudEvent `json:"event"`
// id
// Read Only: true
ID strfmt.UUID `json:"id,omitempty"`
// tags
Tags []*Tag `json:"tags"`
}
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"`
// function error
FunctionError interface{} `json:"function-error,omitempty"`
// message
// Required: true
Message *string `json:"message"`
// user error
UserError interface{} `json:"user-error,omitempty"`
}
Error error swagger:model Error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
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" )
type Subscription ¶
type Subscription struct {
// created time
// Read Only: true
CreatedTime int64 `json:"created-time,omitempty"`
// event type
// Required: true
// Max Length: 128
// Pattern: ^[\w\d\-\.]+$
EventType *string `json:"event-type"`
// 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:"modified-time,omitempty"`
// name
// Required: true
// Pattern: ^[\w\d\-]+$
Name *string `json:"name"`
// secrets
Secrets []string `json:"secrets"`
// source type
// Required: true
// Max Length: 32
// Pattern: ^[\w\d\-]+$
SourceType *string `json:"source-type"`
// 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 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