models

package
v0.0.0-...-a6451ee Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 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 EventEventAttributes

type EventEventAttributes struct {

	// message
	// Example: deployment service lambda version v0.0.0
	// Required: true
	Message *string `json:"message"`

	// priority
	// Example: P1
	// Required: true
	Priority *string `json:"priority"`

	// related id
	// Example: 53aa35c8-e659-44b2-882f-f6056e443c99
	RelatedID string `json:"related_id,omitempty"`

	// service
	// Example: service-event
	// Required: true
	Service *string `json:"service"`

	// source
	// Example: github_action
	// Required: true
	Source *string `json:"source"`

	// status
	// Example: success
	// Required: true
	Status *string `json:"status"`

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

EventEventAttributes event event attributes

swagger:model event.EventAttributes

func (*EventEventAttributes) ContextValidate

func (m *EventEventAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this event event attributes based on context it is used

func (*EventEventAttributes) MarshalBinary

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

MarshalBinary interface implementation

func (*EventEventAttributes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventEventAttributes) Validate

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

Validate validates this event event attributes

type EventEventLinks struct {

	// pull request link
	// Example: https://github.com/jplanckeel/events-tracker/pull/240
	PullRequestLink string `json:"pull_request_link,omitempty"`
}

EventEventLinks event event links

swagger:model event.EventLinks

func (*EventEventLinks) ContextValidate

func (m *EventEventLinks) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this event event links based on context it is used

func (*EventEventLinks) MarshalBinary

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

MarshalBinary interface implementation

func (*EventEventLinks) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventEventLinks) Validate

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

Validate validates this event event links

type EventEventMetadata

type EventEventMetadata struct {

	// created at
	CreatedAt string `json:"created_at,omitempty"`

	// duration
	Duration float64 `json:"duration,omitempty"`

	// id
	ID string `json:"id,omitempty"`
}

EventEventMetadata event event metadata

swagger:model event.EventMetadata

func (*EventEventMetadata) ContextValidate

func (m *EventEventMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this event event metadata based on context it is used

func (*EventEventMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*EventEventMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventEventMetadata) Validate

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

Validate validates this event event metadata

type HandlersCreateDTO

type HandlersCreateDTO struct {

	// attributes
	Attributes *EventEventAttributes `json:"attributes,omitempty"`

	// links
	Links *EventEventLinks `json:"links,omitempty"`

	// title
	// Example: Deployment service lambda
	Title string `json:"title,omitempty"`
}

HandlersCreateDTO handlers create d t o

swagger:model handlers.CreateDTO

func (*HandlersCreateDTO) ContextValidate

func (m *HandlersCreateDTO) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this handlers create d t o based on the context it is used

func (*HandlersCreateDTO) MarshalBinary

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

MarshalBinary interface implementation

func (*HandlersCreateDTO) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HandlersCreateDTO) Validate

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

Validate validates this handlers create d t o

type ServicesEventOutput

type ServicesEventOutput struct {

	// attributes
	Attributes *EventEventAttributes `json:"attributes,omitempty"`

	// links
	Links *EventEventLinks `json:"links,omitempty"`

	// metadata
	Metadata *EventEventMetadata `json:"metadata,omitempty"`

	// title
	// Example: Deployment service lambda
	Title string `json:"title,omitempty"`
}

ServicesEventOutput services event output

swagger:model services.EventOutput

func (*ServicesEventOutput) ContextValidate

func (m *ServicesEventOutput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this services event output based on the context it is used

func (*ServicesEventOutput) MarshalBinary

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

MarshalBinary interface implementation

func (*ServicesEventOutput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServicesEventOutput) Validate

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

Validate validates this services event output

Jump to

Keyboard shortcuts

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