models

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SubscriberTypeFunction captures enum value "function"
	SubscriberTypeFunction string = "function"
	// SubscriberTypeEvent captures enum value "event"
	SubscriberTypeEvent string = "event"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {

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

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

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 Driver

type Driver struct {

	// config
	Config DriverConfig `json:"config"`

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

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

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

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

	// tags
	Tags DriverTags `json:"tags"`

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

func (*Driver) MarshalBinary

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

MarshalBinary interface implementation

func (*Driver) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Driver) Validate

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

Validate validates this driver

type DriverConfig

type DriverConfig []*Config

func (DriverConfig) Validate

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

Validate validates this driver config

type DriverTags

type DriverTags []*Tag

func (DriverTags) Validate

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

Validate validates this driver tags

type Emission

type Emission struct {

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

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

	// payload
	Payload interface{} `json:"payload,omitempty"`

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

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"`

	// function error
	FunctionError interface{} `json:"functionError,omitempty"`

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

	// user error
	UserError interface{} `json:"userError,omitempty"`
}

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 GetDriversOKBody

type GetDriversOKBody []*Driver

func (GetDriversOKBody) Validate

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

Validate validates this get drivers o k body

type GetSubscriptionsOKBody

type GetSubscriptionsOKBody []*Subscription

func (GetSubscriptionsOKBody) Validate

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

Validate validates this get subscriptions o k body

type Status

type Status string
const (
	// 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"
)

func (Status) Validate

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

Validate validates this status

type Subscriber

type Subscriber struct {

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

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

func (*Subscriber) MarshalBinary

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

MarshalBinary interface implementation

func (*Subscriber) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Subscriber) Validate

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

Validate validates this subscriber

type Subscription

type Subscription struct {

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

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

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

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

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

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

	// subscriber
	// Required: true
	Subscriber *Subscriber `json:"subscriber"`

	// tags
	Tags SubscriptionTags `json:"tags"`

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

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 SubscriptionTags

type SubscriptionTags []*Tag

func (SubscriptionTags) Validate

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

Validate validates this subscription tags

type Tag

type Tag struct {

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

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

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

Jump to

Keyboard shortcuts

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