event

package
v0.0.0-...-318a3d5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const GetEventOKCode int = 200

GetEventOKCode is the HTTP code returned for type GetEventOK

View Source
const GetEventsBadRequestCode int = 400

GetEventsBadRequestCode is the HTTP code returned for type GetEventsBadRequest

View Source
const GetEventsByTypeInternalServerErrorCode int = 500

GetEventsByTypeInternalServerErrorCode is the HTTP code returned for type GetEventsByTypeInternalServerError

View Source
const GetEventsByTypeOKCode int = 200

GetEventsByTypeOKCode is the HTTP code returned for type GetEventsByTypeOK

View Source
const GetEventsInternalServerErrorCode int = 500

GetEventsInternalServerErrorCode is the HTTP code returned for type GetEventsInternalServerError

View Source
const GetEventsOKCode int = 200

GetEventsOKCode is the HTTP code returned for type GetEventsOK

View Source
const GetNewArtifactEventsOKCode int = 200

GetNewArtifactEventsOKCode is the HTTP code returned for type GetNewArtifactEventsOK

View Source
const SaveEventCreatedCode int = 201

SaveEventCreatedCode is the HTTP code returned for type SaveEventCreated

Variables

This section is empty.

Functions

This section is empty.

Types

type GetEvent

type GetEvent struct {
	Context *middleware.Context
	Handler GetEventHandler
}

GetEvent swagger:route GET /events/id/{id} event getEvent

Gets events from the data store

func NewGetEvent

func NewGetEvent(ctx *middleware.Context, handler GetEventHandler) *GetEvent

NewGetEvent creates a new http.Handler for the get event operation

func (*GetEvent) ServeHTTP

func (o *GetEvent) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetEventDefault

type GetEventDefault struct {

	/*
	  In: Body
	*/
	Payload *GetEventDefaultBody `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetEventDefault error

swagger:response getEventDefault

func NewGetEventDefault

func NewGetEventDefault(code int) *GetEventDefault

NewGetEventDefault creates GetEventDefault with default headers values

func (*GetEventDefault) SetPayload

func (o *GetEventDefault) SetPayload(payload *GetEventDefaultBody)

SetPayload sets the payload to the get event default response

func (*GetEventDefault) SetStatusCode

func (o *GetEventDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get event default response

func (*GetEventDefault) WithPayload

func (o *GetEventDefault) WithPayload(payload *GetEventDefaultBody) *GetEventDefault

WithPayload adds the payload to the get event default response

func (*GetEventDefault) WithStatusCode

func (o *GetEventDefault) WithStatusCode(code int) *GetEventDefault

WithStatusCode adds the status to the get event default response

func (*GetEventDefault) WriteResponse

func (o *GetEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventDefaultBody

type GetEventDefaultBody struct {

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

	// fields
	Fields string `json:"fields,omitempty"`

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

GetEventDefaultBody get event default body swagger:model GetEventDefaultBody

func (*GetEventDefaultBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetEventDefaultBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetEventDefaultBody) Validate

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

Validate validates this get event default body

type GetEventHandler

type GetEventHandler interface {
	Handle(GetEventParams) middleware.Responder
}

GetEventHandler interface for that can handle valid get event params

type GetEventHandlerFunc

type GetEventHandlerFunc func(GetEventParams) middleware.Responder

GetEventHandlerFunc turns a function with the right signature into a get event handler

func (GetEventHandlerFunc) Handle

Handle executing the request and returning a response

type GetEventOK

type GetEventOK struct {

	/*
	  In: Body
	*/
	Payload []*GetEventOKBodyItems0 `json:"body,omitempty"`
}

GetEventOK ok

swagger:response getEventOK

func NewGetEventOK

func NewGetEventOK() *GetEventOK

NewGetEventOK creates GetEventOK with default headers values

func (*GetEventOK) SetPayload

func (o *GetEventOK) SetPayload(payload []*GetEventOKBodyItems0)

SetPayload sets the payload to the get event o k response

func (*GetEventOK) WithPayload

func (o *GetEventOK) WithPayload(payload []*GetEventOKBodyItems0) *GetEventOK

WithPayload adds the payload to the get event o k response

func (*GetEventOK) WriteResponse

func (o *GetEventOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventOKBodyItems0

type GetEventOKBodyItems0 struct {

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

	// data
	Data interface{} `json:"data,omitempty"`

	// extensions
	Extensions interface{} `json:"extensions,omitempty"`

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

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

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

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

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

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

GetEventOKBodyItems0 get event o k body items0 swagger:model GetEventOKBodyItems0

func (*GetEventOKBodyItems0) MarshalBinary

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

MarshalBinary interface implementation

func (GetEventOKBodyItems0) MarshalJSON

func (o GetEventOKBodyItems0) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*GetEventOKBodyItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetEventOKBodyItems0) UnmarshalJSON

func (o *GetEventOKBodyItems0) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*GetEventOKBodyItems0) Validate

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

Validate validates this get event o k body items0

type GetEventParams

type GetEventParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID of the event to get
	  Required: true
	  In: path
	*/
	ID string
}

GetEventParams contains all the bound params for the get event operation typically these are obtained from a http.Request

swagger:parameters getEvent

func NewGetEventParams

func NewGetEventParams() GetEventParams

NewGetEventParams creates a new GetEventParams object no default values defined in spec.

func (*GetEventParams) BindRequest

func (o *GetEventParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetEventParams() beforehand.

type GetEventURL

type GetEventURL struct {
	ID string
	// contains filtered or unexported fields
}

GetEventURL generates an URL for the get event operation

func (*GetEventURL) Build

func (o *GetEventURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetEventURL) BuildFull

func (o *GetEventURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetEventURL) Must

func (o *GetEventURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetEventURL) SetBasePath

func (o *GetEventURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetEventURL) String

func (o *GetEventURL) String() string

String returns the string representation of the path with query string

func (*GetEventURL) StringFull

func (o *GetEventURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetEventURL) WithBasePath

func (o *GetEventURL) WithBasePath(bp string) *GetEventURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetEvents

type GetEvents struct {
	Context *middleware.Context
	Handler GetEventsHandler
}
GetEvents swagger:route GET /event event getEvents

Gets events from the data store, either keptnContext or project must be specified

func NewGetEvents

func NewGetEvents(ctx *middleware.Context, handler GetEventsHandler) *GetEvents

NewGetEvents creates a new http.Handler for the get events operation

func (*GetEvents) ServeHTTP

func (o *GetEvents) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetEventsBadRequest

type GetEventsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetEventsBadRequest Bad Request

swagger:response getEventsBadRequest

func NewGetEventsBadRequest

func NewGetEventsBadRequest() *GetEventsBadRequest

NewGetEventsBadRequest creates GetEventsBadRequest with default headers values

func (*GetEventsBadRequest) SetPayload

func (o *GetEventsBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the get events bad request response

func (*GetEventsBadRequest) WithPayload

func (o *GetEventsBadRequest) WithPayload(payload *models.Error) *GetEventsBadRequest

WithPayload adds the payload to the get events bad request response

func (*GetEventsBadRequest) WriteResponse

func (o *GetEventsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventsByType

type GetEventsByType struct {
	Context *middleware.Context
	Handler GetEventsByTypeHandler
}
GetEventsByType swagger:route GET /event/type/{eventType} event getEventsByType

Gets events by their type from the mongodb, required filter are either 'data.project:<project-name>' or 'shkeptncontext:<keptn-context-id>'

func NewGetEventsByType

func NewGetEventsByType(ctx *middleware.Context, handler GetEventsByTypeHandler) *GetEventsByType

NewGetEventsByType creates a new http.Handler for the get events by type operation

func (*GetEventsByType) ServeHTTP

func (o *GetEventsByType) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetEventsByTypeHandler

type GetEventsByTypeHandler interface {
	Handle(GetEventsByTypeParams) middleware.Responder
}

GetEventsByTypeHandler interface for that can handle valid get events by type params

type GetEventsByTypeHandlerFunc

type GetEventsByTypeHandlerFunc func(GetEventsByTypeParams) middleware.Responder

GetEventsByTypeHandlerFunc turns a function with the right signature into a get events by type handler

func (GetEventsByTypeHandlerFunc) Handle

Handle executing the request and returning a response

type GetEventsByTypeInternalServerError

type GetEventsByTypeInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetEventsByTypeInternalServerError error

swagger:response getEventsByTypeInternalServerError

func NewGetEventsByTypeInternalServerError

func NewGetEventsByTypeInternalServerError() *GetEventsByTypeInternalServerError

NewGetEventsByTypeInternalServerError creates GetEventsByTypeInternalServerError with default headers values

func (*GetEventsByTypeInternalServerError) SetPayload

func (o *GetEventsByTypeInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get events by type internal server error response

func (*GetEventsByTypeInternalServerError) WithPayload

WithPayload adds the payload to the get events by type internal server error response

func (*GetEventsByTypeInternalServerError) WriteResponse

WriteResponse to the client

type GetEventsByTypeOK

type GetEventsByTypeOK struct {

	/*
	  In: Body
	*/
	Payload *GetEventsByTypeOKBody `json:"body,omitempty"`
}

GetEventsByTypeOK ok

swagger:response getEventsByTypeOK

func NewGetEventsByTypeOK

func NewGetEventsByTypeOK() *GetEventsByTypeOK

NewGetEventsByTypeOK creates GetEventsByTypeOK with default headers values

func (*GetEventsByTypeOK) SetPayload

func (o *GetEventsByTypeOK) SetPayload(payload *GetEventsByTypeOKBody)

SetPayload sets the payload to the get events by type o k response

func (*GetEventsByTypeOK) WithPayload

func (o *GetEventsByTypeOK) WithPayload(payload *GetEventsByTypeOKBody) *GetEventsByTypeOK

WithPayload adds the payload to the get events by type o k response

func (*GetEventsByTypeOK) WriteResponse

func (o *GetEventsByTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventsByTypeOKBody

type GetEventsByTypeOKBody struct {

	// events
	Events []keptnapi.KeptnContextExtendedCE `json:"events"`
}

GetEventsByTypeOKBody get events by type o k body

swagger:model GetEventsByTypeOKBody

func (*GetEventsByTypeOKBody) ContextValidate

func (o *GetEventsByTypeOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get events by type o k body based on context it is used

func (*GetEventsByTypeOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetEventsByTypeOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetEventsByTypeOKBody) Validate

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

Validate validates this get events by type o k body

type GetEventsByTypeParams

type GetEventsByTypeParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	EventType string
	/*
	  In: query
	*/
	ExcludeInvalidated *bool
	/*
	  Required: true
	  In: query
	*/
	Filter string
	/*
	  In: query
	*/
	FromTime *string
	/*Page size to be returned
	  Maximum: 100
	  Minimum: 1
	  In: query
	  Default: 20
	*/
	Limit *int64
}

GetEventsByTypeParams contains all the bound params for the get events by type operation typically these are obtained from a http.Request

swagger:parameters getEventsByType

func NewGetEventsByTypeParams

func NewGetEventsByTypeParams() GetEventsByTypeParams

NewGetEventsByTypeParams creates a new GetEventsByTypeParams object with the default values initialized.

func (*GetEventsByTypeParams) BindRequest

func (o *GetEventsByTypeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetEventsByTypeParams() beforehand.

type GetEventsByTypeURL

type GetEventsByTypeURL struct {
	EventType string

	ExcludeInvalidated *bool
	Filter             string
	FromTime           *string
	Limit              *int64
	// contains filtered or unexported fields
}

GetEventsByTypeURL generates an URL for the get events by type operation

func (*GetEventsByTypeURL) Build

func (o *GetEventsByTypeURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetEventsByTypeURL) BuildFull

func (o *GetEventsByTypeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetEventsByTypeURL) Must

func (o *GetEventsByTypeURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetEventsByTypeURL) SetBasePath

func (o *GetEventsByTypeURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetEventsByTypeURL) String

func (o *GetEventsByTypeURL) String() string

String returns the string representation of the path with query string

func (*GetEventsByTypeURL) StringFull

func (o *GetEventsByTypeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetEventsByTypeURL) WithBasePath

func (o *GetEventsByTypeURL) WithBasePath(bp string) *GetEventsByTypeURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetEventsHandler

type GetEventsHandler interface {
	Handle(GetEventsParams) middleware.Responder
}

GetEventsHandler interface for that can handle valid get events params

type GetEventsHandlerFunc

type GetEventsHandlerFunc func(GetEventsParams) middleware.Responder

GetEventsHandlerFunc turns a function with the right signature into a get events handler

func (GetEventsHandlerFunc) Handle

Handle executing the request and returning a response

type GetEventsInternalServerError

type GetEventsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetEventsInternalServerError error

swagger:response getEventsInternalServerError

func NewGetEventsInternalServerError

func NewGetEventsInternalServerError() *GetEventsInternalServerError

NewGetEventsInternalServerError creates GetEventsInternalServerError with default headers values

func (*GetEventsInternalServerError) SetPayload

func (o *GetEventsInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get events internal server error response

func (*GetEventsInternalServerError) WithPayload

WithPayload adds the payload to the get events internal server error response

func (*GetEventsInternalServerError) WriteResponse

func (o *GetEventsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventsOK

type GetEventsOK struct {

	/*
	  In: Body
	*/
	Payload *GetEventsOKBody `json:"body,omitempty"`
}

GetEventsOK ok

swagger:response getEventsOK

func NewGetEventsOK

func NewGetEventsOK() *GetEventsOK

NewGetEventsOK creates GetEventsOK with default headers values

func (*GetEventsOK) SetPayload

func (o *GetEventsOK) SetPayload(payload *GetEventsOKBody)

SetPayload sets the payload to the get events o k response

func (*GetEventsOK) WithPayload

func (o *GetEventsOK) WithPayload(payload *GetEventsOKBody) *GetEventsOK

WithPayload adds the payload to the get events o k response

func (*GetEventsOK) WriteResponse

func (o *GetEventsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetEventsOKBody

type GetEventsOKBody struct {

	// events
	Events []keptnapi.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"`
}

GetEventsOKBody get events o k body

swagger:model GetEventsOKBody

func (*GetEventsOKBody) ContextValidate

func (o *GetEventsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get events o k body based on context it is used

func (*GetEventsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetEventsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetEventsOKBody) Validate

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

Validate validates this get events o k body

type GetEventsParams

type GetEventsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Before time to fetch keptn cloud events
	  In: query
	*/
	BeforeTime *string
	/*EventID
	  In: query
	*/
	EventID *string
	/*From time to fetch keptn cloud events
	  In: query
	*/
	FromTime *string
	/*keptnContext of the events to get
	  In: query
	*/
	KeptnContext *string
	/*Key of the page to be returned
	  In: query
	*/
	NextPageKey *string
	/*Page size to be returned
	  Maximum: 100
	  Minimum: 1
	  In: query
	  Default: 20
	*/
	PageSize *int64
	/*Name of the project
	  In: query
	*/
	Project *string
	/*Set to load only root events
	  In: query
	*/
	Root *string
	/*Name of the service
	  In: query
	*/
	Service *string
	/*Name of the event source
	  In: query
	*/
	Source *string
	/*Name of the stage
	  In: query
	*/
	Stage *string
	/*Type of the keptn cloud event
	  In: query
	*/
	Type *string
}

GetEventsParams contains all the bound params for the get events operation typically these are obtained from a http.Request

swagger:parameters getEvents

func NewGetEventsParams

func NewGetEventsParams() GetEventsParams

NewGetEventsParams creates a new GetEventsParams object with the default values initialized.

func (*GetEventsParams) BindRequest

func (o *GetEventsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetEventsParams() beforehand.

type GetEventsURL

type GetEventsURL struct {
	BeforeTime   *string
	EventID      *string
	FromTime     *string
	KeptnContext *string
	NextPageKey  *string
	PageSize     *int64
	Project      *string
	Root         *string
	Service      *string
	Source       *string
	Stage        *string
	Type         *string
	// contains filtered or unexported fields
}

GetEventsURL generates an URL for the get events operation

func (*GetEventsURL) Build

func (o *GetEventsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetEventsURL) BuildFull

func (o *GetEventsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetEventsURL) Must

func (o *GetEventsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetEventsURL) SetBasePath

func (o *GetEventsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetEventsURL) String

func (o *GetEventsURL) String() string

String returns the string representation of the path with query string

func (*GetEventsURL) StringFull

func (o *GetEventsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetEventsURL) WithBasePath

func (o *GetEventsURL) WithBasePath(bp string) *GetEventsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetNewArtifactEvents

type GetNewArtifactEvents struct {
	Context *middleware.Context
	Handler GetNewArtifactEventsHandler
}

GetNewArtifactEvents swagger:route GET /events/type/newartifact event getNewArtifactEvents

Gets new artifact events from the data store

func NewGetNewArtifactEvents

func NewGetNewArtifactEvents(ctx *middleware.Context, handler GetNewArtifactEventsHandler) *GetNewArtifactEvents

NewGetNewArtifactEvents creates a new http.Handler for the get new artifact events operation

func (*GetNewArtifactEvents) ServeHTTP

func (o *GetNewArtifactEvents) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetNewArtifactEventsDefault

type GetNewArtifactEventsDefault struct {

	/*
	  In: Body
	*/
	Payload *GetNewArtifactEventsDefaultBody `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetNewArtifactEventsDefault error

swagger:response getNewArtifactEventsDefault

func NewGetNewArtifactEventsDefault

func NewGetNewArtifactEventsDefault(code int) *GetNewArtifactEventsDefault

NewGetNewArtifactEventsDefault creates GetNewArtifactEventsDefault with default headers values

func (*GetNewArtifactEventsDefault) SetPayload

SetPayload sets the payload to the get new artifact events default response

func (*GetNewArtifactEventsDefault) SetStatusCode

func (o *GetNewArtifactEventsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get new artifact events default response

func (*GetNewArtifactEventsDefault) WithPayload

WithPayload adds the payload to the get new artifact events default response

func (*GetNewArtifactEventsDefault) WithStatusCode

WithStatusCode adds the status to the get new artifact events default response

func (*GetNewArtifactEventsDefault) WriteResponse

func (o *GetNewArtifactEventsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetNewArtifactEventsDefaultBody

type GetNewArtifactEventsDefaultBody struct {

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

	// fields
	Fields string `json:"fields,omitempty"`

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

GetNewArtifactEventsDefaultBody get new artifact events default body swagger:model GetNewArtifactEventsDefaultBody

func (*GetNewArtifactEventsDefaultBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetNewArtifactEventsDefaultBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetNewArtifactEventsDefaultBody) Validate

Validate validates this get new artifact events default body

type GetNewArtifactEventsHandler

type GetNewArtifactEventsHandler interface {
	Handle(GetNewArtifactEventsParams) middleware.Responder
}

GetNewArtifactEventsHandler interface for that can handle valid get new artifact events params

type GetNewArtifactEventsHandlerFunc

type GetNewArtifactEventsHandlerFunc func(GetNewArtifactEventsParams) middleware.Responder

GetNewArtifactEventsHandlerFunc turns a function with the right signature into a get new artifact events handler

func (GetNewArtifactEventsHandlerFunc) Handle

Handle executing the request and returning a response

type GetNewArtifactEventsOK

type GetNewArtifactEventsOK struct {

	/*
	  In: Body
	*/
	Payload []*GetNewArtifactEventsOKBodyItems0 `json:"body,omitempty"`
}

GetNewArtifactEventsOK ok

swagger:response getNewArtifactEventsOK

func NewGetNewArtifactEventsOK

func NewGetNewArtifactEventsOK() *GetNewArtifactEventsOK

NewGetNewArtifactEventsOK creates GetNewArtifactEventsOK with default headers values

func (*GetNewArtifactEventsOK) SetPayload

func (o *GetNewArtifactEventsOK) SetPayload(payload []*GetNewArtifactEventsOKBodyItems0)

SetPayload sets the payload to the get new artifact events o k response

func (*GetNewArtifactEventsOK) WithPayload

WithPayload adds the payload to the get new artifact events o k response

func (*GetNewArtifactEventsOK) WriteResponse

func (o *GetNewArtifactEventsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetNewArtifactEventsOKBodyItems0

type GetNewArtifactEventsOKBodyItems0 struct {

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

	// data
	Data interface{} `json:"data,omitempty"`

	// extensions
	Extensions interface{} `json:"extensions,omitempty"`

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

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

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

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

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

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

GetNewArtifactEventsOKBodyItems0 get new artifact events o k body items0 swagger:model GetNewArtifactEventsOKBodyItems0

func (*GetNewArtifactEventsOKBodyItems0) MarshalBinary

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

MarshalBinary interface implementation

func (GetNewArtifactEventsOKBodyItems0) MarshalJSON

func (o GetNewArtifactEventsOKBodyItems0) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*GetNewArtifactEventsOKBodyItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetNewArtifactEventsOKBodyItems0) UnmarshalJSON

func (o *GetNewArtifactEventsOKBodyItems0) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*GetNewArtifactEventsOKBodyItems0) Validate

Validate validates this get new artifact events o k body items0

type GetNewArtifactEventsParams

type GetNewArtifactEventsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetNewArtifactEventsParams contains all the bound params for the get new artifact events operation typically these are obtained from a http.Request

swagger:parameters getNewArtifactEvents

func NewGetNewArtifactEventsParams

func NewGetNewArtifactEventsParams() GetNewArtifactEventsParams

NewGetNewArtifactEventsParams creates a new GetNewArtifactEventsParams object no default values defined in spec.

func (*GetNewArtifactEventsParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetNewArtifactEventsParams() beforehand.

type GetNewArtifactEventsURL

type GetNewArtifactEventsURL struct {
	// contains filtered or unexported fields
}

GetNewArtifactEventsURL generates an URL for the get new artifact events operation

func (*GetNewArtifactEventsURL) Build

func (o *GetNewArtifactEventsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetNewArtifactEventsURL) BuildFull

func (o *GetNewArtifactEventsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetNewArtifactEventsURL) Must

func (o *GetNewArtifactEventsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetNewArtifactEventsURL) SetBasePath

func (o *GetNewArtifactEventsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetNewArtifactEventsURL) String

func (o *GetNewArtifactEventsURL) String() string

String returns the string representation of the path with query string

func (*GetNewArtifactEventsURL) StringFull

func (o *GetNewArtifactEventsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetNewArtifactEventsURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type SaveEventCreated

type SaveEventCreated struct {
}

SaveEventCreated created

swagger:response saveEventCreated

func NewSaveEventCreated

func NewSaveEventCreated() *SaveEventCreated

NewSaveEventCreated creates SaveEventCreated with default headers values

func (*SaveEventCreated) WriteResponse

func (o *SaveEventCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SaveEventDefault

type SaveEventDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

SaveEventDefault error

swagger:response saveEventDefault

func NewSaveEventDefault

func NewSaveEventDefault(code int) *SaveEventDefault

NewSaveEventDefault creates SaveEventDefault with default headers values

func (*SaveEventDefault) SetPayload

func (o *SaveEventDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the save event default response

func (*SaveEventDefault) SetStatusCode

func (o *SaveEventDefault) SetStatusCode(code int)

SetStatusCode sets the status to the save event default response

func (*SaveEventDefault) WithPayload

func (o *SaveEventDefault) WithPayload(payload *models.Error) *SaveEventDefault

WithPayload adds the payload to the save event default response

func (*SaveEventDefault) WithStatusCode

func (o *SaveEventDefault) WithStatusCode(code int) *SaveEventDefault

WithStatusCode adds the status to the save event default response

func (*SaveEventDefault) WriteResponse

func (o *SaveEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SaveEventURL

type SaveEventURL struct {
	// contains filtered or unexported fields
}

SaveEventURL generates an URL for the save event operation

func (*SaveEventURL) Build

func (o *SaveEventURL) Build() (*url.URL, error)

Build a url path and query string

func (*SaveEventURL) BuildFull

func (o *SaveEventURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*SaveEventURL) Must

func (o *SaveEventURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*SaveEventURL) SetBasePath

func (o *SaveEventURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*SaveEventURL) String

func (o *SaveEventURL) String() string

String returns the string representation of the path with query string

func (*SaveEventURL) StringFull

func (o *SaveEventURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*SaveEventURL) WithBasePath

func (o *SaveEventURL) WithBasePath(bp string) *SaveEventURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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