events

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 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) ListProjectEvents

func (a *Client) ListProjectEvents(params *ListProjectEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectEventsOK, error)
ListProjectEvents lists project level kubernetes events

List Kubernetes Events from a project's namespace. Returns a

Kubernetes EventList resource.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	ListProjectEvents(params *ListProjectEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectEventsOK, 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.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new events API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new events API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type ListProjectEventsOK

type ListProjectEventsOK struct {
	Payload any
}

ListProjectEventsOK describes a response with status code 200, with default header values.

EventList resource (k8s.io/api/core/v1.EventList)

func NewListProjectEventsOK

func NewListProjectEventsOK() *ListProjectEventsOK

NewListProjectEventsOK creates a ListProjectEventsOK with default headers values

func (*ListProjectEventsOK) Code

func (o *ListProjectEventsOK) Code() int

Code gets the status code for the list project events o k response

func (*ListProjectEventsOK) Error

func (o *ListProjectEventsOK) Error() string

func (*ListProjectEventsOK) GetPayload

func (o *ListProjectEventsOK) GetPayload() any

func (*ListProjectEventsOK) IsClientError

func (o *ListProjectEventsOK) IsClientError() bool

IsClientError returns true when this list project events o k response has a 4xx status code

func (*ListProjectEventsOK) IsCode

func (o *ListProjectEventsOK) IsCode(code int) bool

IsCode returns true when this list project events o k response a status code equal to that given

func (*ListProjectEventsOK) IsRedirect

func (o *ListProjectEventsOK) IsRedirect() bool

IsRedirect returns true when this list project events o k response has a 3xx status code

func (*ListProjectEventsOK) IsServerError

func (o *ListProjectEventsOK) IsServerError() bool

IsServerError returns true when this list project events o k response has a 5xx status code

func (*ListProjectEventsOK) IsSuccess

func (o *ListProjectEventsOK) IsSuccess() bool

IsSuccess returns true when this list project events o k response has a 2xx status code

func (*ListProjectEventsOK) String

func (o *ListProjectEventsOK) String() string

type ListProjectEventsParams

type ListProjectEventsParams struct {

	/* Project.

	   Project name
	*/
	Project string

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

ListProjectEventsParams contains all the parameters to send to the API endpoint

for the list project events operation.

Typically these are written to a http.Request.

func NewListProjectEventsParams

func NewListProjectEventsParams() *ListProjectEventsParams

NewListProjectEventsParams creates a new ListProjectEventsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListProjectEventsParamsWithContext

func NewListProjectEventsParamsWithContext(ctx context.Context) *ListProjectEventsParams

NewListProjectEventsParamsWithContext creates a new ListProjectEventsParams object with the ability to set a context for a request.

func NewListProjectEventsParamsWithHTTPClient

func NewListProjectEventsParamsWithHTTPClient(client *http.Client) *ListProjectEventsParams

NewListProjectEventsParamsWithHTTPClient creates a new ListProjectEventsParams object with the ability to set a custom HTTPClient for a request.

func NewListProjectEventsParamsWithTimeout

func NewListProjectEventsParamsWithTimeout(timeout time.Duration) *ListProjectEventsParams

NewListProjectEventsParamsWithTimeout creates a new ListProjectEventsParams object with the ability to set a timeout on a request.

func (*ListProjectEventsParams) SetContext

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

SetContext adds the context to the list project events params

func (*ListProjectEventsParams) SetDefaults

func (o *ListProjectEventsParams) SetDefaults()

SetDefaults hydrates default values in the list project events params (not the query body).

All values with no default are reset to their zero value.

func (*ListProjectEventsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list project events params

func (*ListProjectEventsParams) SetProject

func (o *ListProjectEventsParams) SetProject(project string)

SetProject adds the project to the list project events params

func (*ListProjectEventsParams) SetTimeout

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

SetTimeout adds the timeout to the list project events params

func (*ListProjectEventsParams) WithContext

WithContext adds the context to the list project events params

func (*ListProjectEventsParams) WithDefaults

WithDefaults hydrates default values in the list project events params (not the query body).

All values with no default are reset to their zero value.

func (*ListProjectEventsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list project events params

func (*ListProjectEventsParams) WithProject

func (o *ListProjectEventsParams) WithProject(project string) *ListProjectEventsParams

WithProject adds the project to the list project events params

func (*ListProjectEventsParams) WithTimeout

WithTimeout adds the timeout to the list project events params

func (*ListProjectEventsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListProjectEventsReader

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

ListProjectEventsReader is a Reader for the ListProjectEvents structure.

func (*ListProjectEventsReader) ReadResponse

func (o *ListProjectEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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