models

package
v0.1.13 Latest Latest
Warning

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

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

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

func (*CloudEvent) Validate added in v0.1.13

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

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

func (*DriverType) Validate added in v0.1.13

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

Validate validates this driver type

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

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

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

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

func (*Subscription) Validate

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

Validate validates this subscription

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

Jump to

Keyboard shortcuts

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