Help us shape the future of Go! Take the 2026 Go Developer Survey

events

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for events API

func (*Client) ListEvents

func (a *Client) ListEvents(params *ListEventsParams, authInfo runtime.ClientAuthInfoWriter) (*ListEventsOK, error)

ListEvents lists drift remediation and compliance events for an environment

Lists drift, remediation, and compliance events for an environment.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ListEvents(params *ListEventsParams, authInfo runtime.ClientAuthInfoWriter) (*ListEventsOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new events API client.

type ListEventsBadRequest

type ListEventsBadRequest struct {
	Payload *models.BadRequestError
}

ListEventsBadRequest handles this case with default header values.

BadRequestError

func NewListEventsBadRequest

func NewListEventsBadRequest() *ListEventsBadRequest

NewListEventsBadRequest creates a ListEventsBadRequest with default headers values

func (*ListEventsBadRequest) Error

func (o *ListEventsBadRequest) Error() string

func (*ListEventsBadRequest) GetPayload

func (o *ListEventsBadRequest) GetPayload() *models.BadRequestError

type ListEventsForbidden

type ListEventsForbidden struct {
	Payload *models.AuthorizationError
}

ListEventsForbidden handles this case with default header values.

AuthorizationError

func NewListEventsForbidden

func NewListEventsForbidden() *ListEventsForbidden

NewListEventsForbidden creates a ListEventsForbidden with default headers values

func (*ListEventsForbidden) Error

func (o *ListEventsForbidden) Error() string

func (*ListEventsForbidden) GetPayload

type ListEventsInternalServerError

type ListEventsInternalServerError struct {
	Payload *models.InternalServerError
}

ListEventsInternalServerError handles this case with default header values.

InternalServerError

func NewListEventsInternalServerError

func NewListEventsInternalServerError() *ListEventsInternalServerError

NewListEventsInternalServerError creates a ListEventsInternalServerError with default headers values

func (*ListEventsInternalServerError) Error

func (*ListEventsInternalServerError) GetPayload

type ListEventsNotFound

type ListEventsNotFound struct {
	Payload *models.NotFoundError
}

ListEventsNotFound handles this case with default header values.

NotFoundError

func NewListEventsNotFound

func NewListEventsNotFound() *ListEventsNotFound

NewListEventsNotFound creates a ListEventsNotFound with default headers values

func (*ListEventsNotFound) Error

func (o *ListEventsNotFound) Error() string

func (*ListEventsNotFound) GetPayload

func (o *ListEventsNotFound) GetPayload() *models.NotFoundError

type ListEventsOK

type ListEventsOK struct {
	Payload *models.Events
}

ListEventsOK handles this case with default header values.

List of drift, remediation, and compliance events.

func NewListEventsOK

func NewListEventsOK() *ListEventsOK

NewListEventsOK creates a ListEventsOK with default headers values

func (*ListEventsOK) Error

func (o *ListEventsOK) Error() string

func (*ListEventsOK) GetPayload

func (o *ListEventsOK) GetPayload() *models.Events

type ListEventsParams

type ListEventsParams struct {

	/*Change
	  Type of change made in the event to filter by. When not specified, all change types will be returned.

	*/
	Change []string
	/*EnvironmentID
	  Environment ID.

	*/
	EnvironmentID string
	/*EventType
	  Event type to filter by. When not specified, all event types will be returned.

	*/
	EventType []string
	/*MaxItems
	  Maximum number of items to return.

	*/
	MaxItems *int64
	/*Offset
	  Number of items to skip before returning. This parameter is used when the number of items spans multiple pages.

	*/
	Offset *int64
	/*RangeFrom
	  Earliest created_at time to return events from.

	*/
	RangeFrom *int64
	/*RangeTo
	  Latest created_at time to return events from.

	*/
	RangeTo *int64
	/*Remediated
	  Filter remediation results for an event by success or failure. When not specified, all remediation results will be returned.

	*/
	Remediated []string
	/*ResourceType
	  Resource types in the event to filter by. When not specified, all resource types will be returned.

	*/
	ResourceType []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListEventsParams contains all the parameters to send to the API endpoint for the list events operation typically these are written to a http.Request

func NewListEventsParams

func NewListEventsParams() *ListEventsParams

NewListEventsParams creates a new ListEventsParams object with the default values initialized.

func NewListEventsParamsWithContext

func NewListEventsParamsWithContext(ctx context.Context) *ListEventsParams

NewListEventsParamsWithContext creates a new ListEventsParams object with the default values initialized, and the ability to set a context for a request

func NewListEventsParamsWithHTTPClient

func NewListEventsParamsWithHTTPClient(client *http.Client) *ListEventsParams

NewListEventsParamsWithHTTPClient creates a new ListEventsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListEventsParamsWithTimeout

func NewListEventsParamsWithTimeout(timeout time.Duration) *ListEventsParams

NewListEventsParamsWithTimeout creates a new ListEventsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListEventsParams) SetChange

func (o *ListEventsParams) SetChange(change []string)

SetChange adds the change to the list events params

func (*ListEventsParams) SetContext

func (o *ListEventsParams) SetContext(ctx context.Context)

SetContext adds the context to the list events params

func (*ListEventsParams) SetEnvironmentID

func (o *ListEventsParams) SetEnvironmentID(environmentID string)

SetEnvironmentID adds the environmentId to the list events params

func (*ListEventsParams) SetEventType

func (o *ListEventsParams) SetEventType(eventType []string)

SetEventType adds the eventType to the list events params

func (*ListEventsParams) SetHTTPClient

func (o *ListEventsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list events params

func (*ListEventsParams) SetMaxItems

func (o *ListEventsParams) SetMaxItems(maxItems *int64)

SetMaxItems adds the maxItems to the list events params

func (*ListEventsParams) SetOffset

func (o *ListEventsParams) SetOffset(offset *int64)

SetOffset adds the offset to the list events params

func (*ListEventsParams) SetRangeFrom

func (o *ListEventsParams) SetRangeFrom(rangeFrom *int64)

SetRangeFrom adds the rangeFrom to the list events params

func (*ListEventsParams) SetRangeTo

func (o *ListEventsParams) SetRangeTo(rangeTo *int64)

SetRangeTo adds the rangeTo to the list events params

func (*ListEventsParams) SetRemediated

func (o *ListEventsParams) SetRemediated(remediated []string)

SetRemediated adds the remediated to the list events params

func (*ListEventsParams) SetResourceType

func (o *ListEventsParams) SetResourceType(resourceType []string)

SetResourceType adds the resourceType to the list events params

func (*ListEventsParams) SetTimeout

func (o *ListEventsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list events params

func (*ListEventsParams) WithChange

func (o *ListEventsParams) WithChange(change []string) *ListEventsParams

WithChange adds the change to the list events params

func (*ListEventsParams) WithContext

func (o *ListEventsParams) WithContext(ctx context.Context) *ListEventsParams

WithContext adds the context to the list events params

func (*ListEventsParams) WithEnvironmentID

func (o *ListEventsParams) WithEnvironmentID(environmentID string) *ListEventsParams

WithEnvironmentID adds the environmentID to the list events params

func (*ListEventsParams) WithEventType

func (o *ListEventsParams) WithEventType(eventType []string) *ListEventsParams

WithEventType adds the eventType to the list events params

func (*ListEventsParams) WithHTTPClient

func (o *ListEventsParams) WithHTTPClient(client *http.Client) *ListEventsParams

WithHTTPClient adds the HTTPClient to the list events params

func (*ListEventsParams) WithMaxItems

func (o *ListEventsParams) WithMaxItems(maxItems *int64) *ListEventsParams

WithMaxItems adds the maxItems to the list events params

func (*ListEventsParams) WithOffset

func (o *ListEventsParams) WithOffset(offset *int64) *ListEventsParams

WithOffset adds the offset to the list events params

func (*ListEventsParams) WithRangeFrom

func (o *ListEventsParams) WithRangeFrom(rangeFrom *int64) *ListEventsParams

WithRangeFrom adds the rangeFrom to the list events params

func (*ListEventsParams) WithRangeTo

func (o *ListEventsParams) WithRangeTo(rangeTo *int64) *ListEventsParams

WithRangeTo adds the rangeTo to the list events params

func (*ListEventsParams) WithRemediated

func (o *ListEventsParams) WithRemediated(remediated []string) *ListEventsParams

WithRemediated adds the remediated to the list events params

func (*ListEventsParams) WithResourceType

func (o *ListEventsParams) WithResourceType(resourceType []string) *ListEventsParams

WithResourceType adds the resourceType to the list events params

func (*ListEventsParams) WithTimeout

func (o *ListEventsParams) WithTimeout(timeout time.Duration) *ListEventsParams

WithTimeout adds the timeout to the list events params

func (*ListEventsParams) WriteToRequest

func (o *ListEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListEventsReader

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

ListEventsReader is a Reader for the ListEvents structure.

func (*ListEventsReader) ReadResponse

func (o *ListEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListEventsUnauthorized

type ListEventsUnauthorized struct {
	Payload *models.AuthenticationError
}

ListEventsUnauthorized handles this case with default header values.

AuthenticationError

func NewListEventsUnauthorized

func NewListEventsUnauthorized() *ListEventsUnauthorized

NewListEventsUnauthorized creates a ListEventsUnauthorized with default headers values

func (*ListEventsUnauthorized) Error

func (o *ListEventsUnauthorized) Error() string

func (*ListEventsUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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