models

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contenttype added in v0.4.0

type Contenttype string

Contenttype contenttype swagger:model contenttype

func (Contenttype) Validate added in v0.4.0

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

Validate validates this contenttype

type Data added in v0.4.0

type Data interface{}

Data data swagger:model data

type Error

type Error struct {

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

	// fields
	Fields string `json:"fields,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 Event added in v0.4.0

type Event struct {

	// contenttype
	Contenttype Contenttype `json:"contenttype,omitempty"`

	// data
	Data Data `json:"data,omitempty"`

	// extensions
	Extensions Extensions `json:"extensions,omitempty"`

	// id
	// Required: true
	ID ID `json:"id"`

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

	// specversion
	// Required: true
	Specversion Specversion `json:"specversion"`

	// time
	// Format: date-time
	Time Time `json:"time,omitempty"`

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

Event event swagger:model event

func (*Event) MarshalBinary added in v0.4.0

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

MarshalBinary interface implementation

func (*Event) UnmarshalBinary added in v0.4.0

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

UnmarshalBinary interface implementation

func (*Event) Validate added in v0.4.0

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

Validate validates this event

type Events

type Events struct {

	// events
	Events []*KeptnContextExtendedCE `json:"events"`

	// Pointer to the next page
	NextPageKey string `json:"nextPageKey,omitempty"`

	// Size of the returned page
	PageSize int64 `json:"pageSize,omitempty"`

	// Total number of events
	TotalCount int64 `json:"totalCount,omitempty"`
}

Events get events o k body swagger:model GetEventsOKBody

func (*Events) MarshalBinary

func (o *Events) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Events) UnmarshalBinary

func (o *Events) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Events) Validate

func (o *Events) Validate(formats strfmt.Registry) error

Validate validates this get events o k body

type Extensions added in v0.4.0

type Extensions interface{}

Extensions extensions swagger:model extensions

type ID added in v0.4.0

type ID string

ID id swagger:model id

func (ID) Validate added in v0.4.0

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

Validate validates this id

type KeptnContextExtendedCE

type KeptnContextExtendedCE struct {
	Event

	// shkeptncontext
	Shkeptncontext string `json:"shkeptncontext,omitempty"`
}

KeptnContextExtendedCE keptn context extended c e swagger:model KeptnContextExtendedCE

func (*KeptnContextExtendedCE) MarshalBinary

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

MarshalBinary interface implementation

func (KeptnContextExtendedCE) MarshalJSON

func (m KeptnContextExtendedCE) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*KeptnContextExtendedCE) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*KeptnContextExtendedCE) UnmarshalJSON

func (m *KeptnContextExtendedCE) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*KeptnContextExtendedCE) Validate

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

Validate validates this keptn context extended c e

type LogEntry added in v0.4.0

type LogEntry struct {

	// event Id
	EventID string `json:"eventId,omitempty"`

	// keptn context
	KeptnContext string `json:"keptnContext,omitempty"`

	// keptn service
	KeptnService string `json:"keptnService,omitempty"`

	// log level
	LogLevel string `json:"logLevel,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// timestamp
	// Format: date-time
	Timestamp strfmt.DateTime `json:"timestamp,omitempty"`
}

LogEntry log entry swagger:model LogEntry

func (*LogEntry) MarshalBinary added in v0.4.0

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

MarshalBinary interface implementation

func (*LogEntry) UnmarshalBinary added in v0.4.0

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

UnmarshalBinary interface implementation

func (*LogEntry) Validate added in v0.4.0

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

Validate validates this log entry

type Source added in v0.4.0

type Source string

Source source swagger:model source

func (Source) Validate added in v0.4.0

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

Validate validates this source

type Specversion added in v0.4.0

type Specversion string

Specversion specversion swagger:model specversion

func (Specversion) Validate added in v0.4.0

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

Validate validates this specversion

type Time added in v0.4.0

type Time strfmt.DateTime

Time time swagger:model time

func (*Time) MarshalBinary added in v0.4.0

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

MarshalBinary interface implementation

func (Time) MarshalJSON added in v0.4.0

func (m Time) MarshalJSON() ([]byte, error)

MarshalJSON retrieves a Time value as JSON output

func (*Time) UnmarshalBinary added in v0.4.0

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

UnmarshalBinary interface implementation

func (*Time) UnmarshalJSON added in v0.4.0

func (m *Time) UnmarshalJSON(b []byte) error

UnmarshalJSON sets a Time value from JSON input

func (Time) Validate added in v0.4.0

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

Validate validates this time

type Type added in v0.4.0

type Type string

Type type swagger:model type

func (Type) Validate added in v0.4.0

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

Validate validates this type

Jump to

Keyboard shortcuts

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