cycle_management

package
v0.0.0-...-33e56a9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   CreateCycle creates a plan

	   Creates a new cycle*/
	CreateCycle(ctx context.Context, params *CreateCycleParams) (*CreateCycleCreated, error)
	/*
	   GetCycle gets specific cycle

	   get cycle with given id*/
	GetCycle(ctx context.Context, params *GetCycleParams) (*GetCycleOK, error)
	/*
	   ListCycles lists all cycles

	   lists all cycles*/
	ListCycles(ctx context.Context, params *ListCyclesParams) (*ListCyclesOK, error)
	/*
	   UpdateCycle updates specific cycle

	   Update cycle with given id*/
	UpdateCycle(ctx context.Context, params *UpdateCycleParams) (*UpdateCycleOK, error)
}

API is the interface of the cycle management client

type Client

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

Client for cycle management API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new cycle management API client.

func (*Client) CreateCycle

func (a *Client) CreateCycle(ctx context.Context, params *CreateCycleParams) (*CreateCycleCreated, error)

CreateCycle creates a plan

Creates a new cycle

func (*Client) GetCycle

func (a *Client) GetCycle(ctx context.Context, params *GetCycleParams) (*GetCycleOK, error)

GetCycle gets specific cycle

get cycle with given id

func (*Client) ListCycles

func (a *Client) ListCycles(ctx context.Context, params *ListCyclesParams) (*ListCyclesOK, error)

ListCycles lists all cycles

lists all cycles

func (*Client) UpdateCycle

func (a *Client) UpdateCycle(ctx context.Context, params *UpdateCycleParams) (*UpdateCycleOK, error)

UpdateCycle updates specific cycle

Update cycle with given id

type CreateCycleBadRequest

type CreateCycleBadRequest struct {
}

CreateCycleBadRequest handles this case with default header values.

invalid input, object invalid

func NewCreateCycleBadRequest

func NewCreateCycleBadRequest() *CreateCycleBadRequest

NewCreateCycleBadRequest creates a CreateCycleBadRequest with default headers values

func (*CreateCycleBadRequest) Error

func (o *CreateCycleBadRequest) Error() string

type CreateCycleConflict

type CreateCycleConflict struct {
	Payload *models.ErrorResponse
}

CreateCycleConflict handles this case with default header values.

an existing item already exists

func NewCreateCycleConflict

func NewCreateCycleConflict() *CreateCycleConflict

NewCreateCycleConflict creates a CreateCycleConflict with default headers values

func (*CreateCycleConflict) Error

func (o *CreateCycleConflict) Error() string

func (*CreateCycleConflict) GetPayload

func (o *CreateCycleConflict) GetPayload() *models.ErrorResponse

type CreateCycleCreated

type CreateCycleCreated struct {
	Payload *models.ItemCreatedResponse
}

CreateCycleCreated handles this case with default header values.

item created

func NewCreateCycleCreated

func NewCreateCycleCreated() *CreateCycleCreated

NewCreateCycleCreated creates a CreateCycleCreated with default headers values

func (*CreateCycleCreated) Error

func (o *CreateCycleCreated) Error() string

func (*CreateCycleCreated) GetPayload

type CreateCycleInternalServerError

type CreateCycleInternalServerError struct {
	Payload *models.ErrorResponse
}

CreateCycleInternalServerError handles this case with default header values.

unexpected error

func NewCreateCycleInternalServerError

func NewCreateCycleInternalServerError() *CreateCycleInternalServerError

NewCreateCycleInternalServerError creates a CreateCycleInternalServerError with default headers values

func (*CreateCycleInternalServerError) Error

func (*CreateCycleInternalServerError) GetPayload

type CreateCycleParams

type CreateCycleParams struct {

	/*Cycle
	  Cycle to be added

	*/
	Cycle *models.Cycle

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

CreateCycleParams contains all the parameters to send to the API endpoint for the create cycle operation typically these are written to a http.Request

func NewCreateCycleParams

func NewCreateCycleParams() *CreateCycleParams

NewCreateCycleParams creates a new CreateCycleParams object with the default values initialized.

func NewCreateCycleParamsWithContext

func NewCreateCycleParamsWithContext(ctx context.Context) *CreateCycleParams

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

func NewCreateCycleParamsWithHTTPClient

func NewCreateCycleParamsWithHTTPClient(client *http.Client) *CreateCycleParams

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

func NewCreateCycleParamsWithTimeout

func NewCreateCycleParamsWithTimeout(timeout time.Duration) *CreateCycleParams

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

func (*CreateCycleParams) SetContext

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

SetContext adds the context to the create cycle params

func (*CreateCycleParams) SetCycle

func (o *CreateCycleParams) SetCycle(cycle *models.Cycle)

SetCycle adds the cycle to the create cycle params

func (*CreateCycleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create cycle params

func (*CreateCycleParams) SetTimeout

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

SetTimeout adds the timeout to the create cycle params

func (*CreateCycleParams) WithContext

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

WithContext adds the context to the create cycle params

func (*CreateCycleParams) WithCycle

func (o *CreateCycleParams) WithCycle(cycle *models.Cycle) *CreateCycleParams

WithCycle adds the cycle to the create cycle params

func (*CreateCycleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create cycle params

func (*CreateCycleParams) WithTimeout

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

WithTimeout adds the timeout to the create cycle params

func (*CreateCycleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateCycleReader

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

CreateCycleReader is a Reader for the CreateCycle structure.

func (*CreateCycleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCycleInternalServerError

type GetCycleInternalServerError struct {
	Payload *models.ErrorResponse
}

GetCycleInternalServerError handles this case with default header values.

unexpected error

func NewGetCycleInternalServerError

func NewGetCycleInternalServerError() *GetCycleInternalServerError

NewGetCycleInternalServerError creates a GetCycleInternalServerError with default headers values

func (*GetCycleInternalServerError) Error

func (*GetCycleInternalServerError) GetPayload

type GetCycleNotFound

type GetCycleNotFound struct {
	Payload *models.ErrorResponse
}

GetCycleNotFound handles this case with default header values.

cycle with id not found

func NewGetCycleNotFound

func NewGetCycleNotFound() *GetCycleNotFound

NewGetCycleNotFound creates a GetCycleNotFound with default headers values

func (*GetCycleNotFound) Error

func (o *GetCycleNotFound) Error() string

func (*GetCycleNotFound) GetPayload

func (o *GetCycleNotFound) GetPayload() *models.ErrorResponse

type GetCycleOK

type GetCycleOK struct {
	Payload *models.Cycle
}

GetCycleOK handles this case with default header values.

cycle returned

func NewGetCycleOK

func NewGetCycleOK() *GetCycleOK

NewGetCycleOK creates a GetCycleOK with default headers values

func (*GetCycleOK) Error

func (o *GetCycleOK) Error() string

func (*GetCycleOK) GetPayload

func (o *GetCycleOK) GetPayload() *models.Cycle

type GetCycleParams

type GetCycleParams struct {

	/*ID
	  Id of cycle to be obtained

	*/
	ID string

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

GetCycleParams contains all the parameters to send to the API endpoint for the get cycle operation typically these are written to a http.Request

func NewGetCycleParams

func NewGetCycleParams() *GetCycleParams

NewGetCycleParams creates a new GetCycleParams object with the default values initialized.

func NewGetCycleParamsWithContext

func NewGetCycleParamsWithContext(ctx context.Context) *GetCycleParams

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

func NewGetCycleParamsWithHTTPClient

func NewGetCycleParamsWithHTTPClient(client *http.Client) *GetCycleParams

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

func NewGetCycleParamsWithTimeout

func NewGetCycleParamsWithTimeout(timeout time.Duration) *GetCycleParams

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

func (*GetCycleParams) SetContext

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

SetContext adds the context to the get cycle params

func (*GetCycleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get cycle params

func (*GetCycleParams) SetID

func (o *GetCycleParams) SetID(id string)

SetID adds the id to the get cycle params

func (*GetCycleParams) SetTimeout

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

SetTimeout adds the timeout to the get cycle params

func (*GetCycleParams) WithContext

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

WithContext adds the context to the get cycle params

func (*GetCycleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get cycle params

func (*GetCycleParams) WithID

func (o *GetCycleParams) WithID(id string) *GetCycleParams

WithID adds the id to the get cycle params

func (*GetCycleParams) WithTimeout

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

WithTimeout adds the timeout to the get cycle params

func (*GetCycleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCycleReader

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

GetCycleReader is a Reader for the GetCycle structure.

func (*GetCycleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListCyclesInternalServerError

type ListCyclesInternalServerError struct {
	Payload *models.ErrorResponse
}

ListCyclesInternalServerError handles this case with default header values.

unexpected error

func NewListCyclesInternalServerError

func NewListCyclesInternalServerError() *ListCyclesInternalServerError

NewListCyclesInternalServerError creates a ListCyclesInternalServerError with default headers values

func (*ListCyclesInternalServerError) Error

func (*ListCyclesInternalServerError) GetPayload

type ListCyclesOK

type ListCyclesOK struct {
	Payload []*models.Cycle
}

ListCyclesOK handles this case with default header values.

list of cycles returned

func NewListCyclesOK

func NewListCyclesOK() *ListCyclesOK

NewListCyclesOK creates a ListCyclesOK with default headers values

func (*ListCyclesOK) Error

func (o *ListCyclesOK) Error() string

func (*ListCyclesOK) GetPayload

func (o *ListCyclesOK) GetPayload() []*models.Cycle

type ListCyclesParams

type ListCyclesParams struct {

	/*State
	  state to filter

	*/
	State *string
	/*Type
	  resource type to filter

	*/
	Type *string

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

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

func NewListCyclesParams

func NewListCyclesParams() *ListCyclesParams

NewListCyclesParams creates a new ListCyclesParams object with the default values initialized.

func NewListCyclesParamsWithContext

func NewListCyclesParamsWithContext(ctx context.Context) *ListCyclesParams

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

func NewListCyclesParamsWithHTTPClient

func NewListCyclesParamsWithHTTPClient(client *http.Client) *ListCyclesParams

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

func NewListCyclesParamsWithTimeout

func NewListCyclesParamsWithTimeout(timeout time.Duration) *ListCyclesParams

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

func (*ListCyclesParams) SetContext

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

SetContext adds the context to the list cycles params

func (*ListCyclesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list cycles params

func (*ListCyclesParams) SetState

func (o *ListCyclesParams) SetState(state *string)

SetState adds the state to the list cycles params

func (*ListCyclesParams) SetTimeout

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

SetTimeout adds the timeout to the list cycles params

func (*ListCyclesParams) SetType

func (o *ListCyclesParams) SetType(typeVar *string)

SetType adds the type to the list cycles params

func (*ListCyclesParams) WithContext

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

WithContext adds the context to the list cycles params

func (*ListCyclesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list cycles params

func (*ListCyclesParams) WithState

func (o *ListCyclesParams) WithState(state *string) *ListCyclesParams

WithState adds the state to the list cycles params

func (*ListCyclesParams) WithTimeout

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

WithTimeout adds the timeout to the list cycles params

func (*ListCyclesParams) WithType

func (o *ListCyclesParams) WithType(typeVar *string) *ListCyclesParams

WithType adds the typeVar to the list cycles params

func (*ListCyclesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListCyclesReader

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

ListCyclesReader is a Reader for the ListCycles structure.

func (*ListCyclesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCycleInternalServerError

type UpdateCycleInternalServerError struct {
	Payload *models.ErrorResponse
}

UpdateCycleInternalServerError handles this case with default header values.

unexpected error

func NewUpdateCycleInternalServerError

func NewUpdateCycleInternalServerError() *UpdateCycleInternalServerError

NewUpdateCycleInternalServerError creates a UpdateCycleInternalServerError with default headers values

func (*UpdateCycleInternalServerError) Error

func (*UpdateCycleInternalServerError) GetPayload

type UpdateCycleNotFound

type UpdateCycleNotFound struct {
	Payload *models.ErrorResponse
}

UpdateCycleNotFound handles this case with default header values.

cycle with id not found

func NewUpdateCycleNotFound

func NewUpdateCycleNotFound() *UpdateCycleNotFound

NewUpdateCycleNotFound creates a UpdateCycleNotFound with default headers values

func (*UpdateCycleNotFound) Error

func (o *UpdateCycleNotFound) Error() string

func (*UpdateCycleNotFound) GetPayload

func (o *UpdateCycleNotFound) GetPayload() *models.ErrorResponse

type UpdateCycleOK

type UpdateCycleOK struct {
	Payload *models.Cycle
}

UpdateCycleOK handles this case with default header values.

updated cycle

func NewUpdateCycleOK

func NewUpdateCycleOK() *UpdateCycleOK

NewUpdateCycleOK creates a UpdateCycleOK with default headers values

func (*UpdateCycleOK) Error

func (o *UpdateCycleOK) Error() string

func (*UpdateCycleOK) GetPayload

func (o *UpdateCycleOK) GetPayload() *models.Cycle

type UpdateCycleParams

type UpdateCycleParams struct {

	/*Cycle
	  updated cycle containing all parameters except id

	*/
	Cycle *models.Cycle
	/*ID
	  Id of cycle to be updated

	*/
	ID string

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

UpdateCycleParams contains all the parameters to send to the API endpoint for the update cycle operation typically these are written to a http.Request

func NewUpdateCycleParams

func NewUpdateCycleParams() *UpdateCycleParams

NewUpdateCycleParams creates a new UpdateCycleParams object with the default values initialized.

func NewUpdateCycleParamsWithContext

func NewUpdateCycleParamsWithContext(ctx context.Context) *UpdateCycleParams

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

func NewUpdateCycleParamsWithHTTPClient

func NewUpdateCycleParamsWithHTTPClient(client *http.Client) *UpdateCycleParams

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

func NewUpdateCycleParamsWithTimeout

func NewUpdateCycleParamsWithTimeout(timeout time.Duration) *UpdateCycleParams

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

func (*UpdateCycleParams) SetContext

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

SetContext adds the context to the update cycle params

func (*UpdateCycleParams) SetCycle

func (o *UpdateCycleParams) SetCycle(cycle *models.Cycle)

SetCycle adds the cycle to the update cycle params

func (*UpdateCycleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update cycle params

func (*UpdateCycleParams) SetID

func (o *UpdateCycleParams) SetID(id string)

SetID adds the id to the update cycle params

func (*UpdateCycleParams) SetTimeout

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

SetTimeout adds the timeout to the update cycle params

func (*UpdateCycleParams) WithContext

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

WithContext adds the context to the update cycle params

func (*UpdateCycleParams) WithCycle

func (o *UpdateCycleParams) WithCycle(cycle *models.Cycle) *UpdateCycleParams

WithCycle adds the cycle to the update cycle params

func (*UpdateCycleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update cycle params

func (*UpdateCycleParams) WithID

WithID adds the id to the update cycle params

func (*UpdateCycleParams) WithTimeout

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

WithTimeout adds the timeout to the update cycle params

func (*UpdateCycleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateCycleReader

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

UpdateCycleReader is a Reader for the UpdateCycle structure.

func (*UpdateCycleReader) ReadResponse

func (o *UpdateCycleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, 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