project_pipelines

package
v1.0.99 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationVndCycloidIoV1JSON

func WithAcceptApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)

WithAcceptApplicationVndCycloidIoV1JSON sets the Accept header to "application/vnd.cycloid.io.v1+json".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationVndCycloidIoV1JSON

func WithContentTypeApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)

WithContentTypeApplicationVndCycloidIoV1JSON sets the Content-Type header to "application/vnd.cycloid.io.v1+json".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

Types

type Client

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

Client for project pipelines API

func (*Client) GetProjectPipelines

func (a *Client) GetProjectPipelines(params *GetProjectPipelinesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectPipelinesOK, error)

GetProjectPipelines Get the pipelines that the authenticated user has access to.

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.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	GetProjectPipelines(params *GetProjectPipelinesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectPipelinesOK, 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 project pipelines API client.

func NewClientWithBasicAuth

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

New creates a new project pipelines 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 project pipelines 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 GetProjectPipelinesDefault

type GetProjectPipelinesDefault struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

GetProjectPipelinesDefault describes a response with status code -1, with default header values.

The response sent when an unexpected error happened, as known as an internal server error.

func NewGetProjectPipelinesDefault

func NewGetProjectPipelinesDefault(code int) *GetProjectPipelinesDefault

NewGetProjectPipelinesDefault creates a GetProjectPipelinesDefault with default headers values

func (*GetProjectPipelinesDefault) Code

func (o *GetProjectPipelinesDefault) Code() int

Code gets the status code for the get project pipelines default response

func (*GetProjectPipelinesDefault) Error

func (*GetProjectPipelinesDefault) GetPayload

func (*GetProjectPipelinesDefault) IsClientError

func (o *GetProjectPipelinesDefault) IsClientError() bool

IsClientError returns true when this get project pipelines default response has a 4xx status code

func (*GetProjectPipelinesDefault) IsCode

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

IsCode returns true when this get project pipelines default response a status code equal to that given

func (*GetProjectPipelinesDefault) IsRedirect

func (o *GetProjectPipelinesDefault) IsRedirect() bool

IsRedirect returns true when this get project pipelines default response has a 3xx status code

func (*GetProjectPipelinesDefault) IsServerError

func (o *GetProjectPipelinesDefault) IsServerError() bool

IsServerError returns true when this get project pipelines default response has a 5xx status code

func (*GetProjectPipelinesDefault) IsSuccess

func (o *GetProjectPipelinesDefault) IsSuccess() bool

IsSuccess returns true when this get project pipelines default response has a 2xx status code

func (*GetProjectPipelinesDefault) String

func (o *GetProjectPipelinesDefault) String() string

type GetProjectPipelinesNotFound

type GetProjectPipelinesNotFound struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetProjectPipelinesNotFound describes a response with status code 404, with default header values.

The response sent when any of the entities present in the path is not found.

func NewGetProjectPipelinesNotFound

func NewGetProjectPipelinesNotFound() *GetProjectPipelinesNotFound

NewGetProjectPipelinesNotFound creates a GetProjectPipelinesNotFound with default headers values

func (*GetProjectPipelinesNotFound) Code

func (o *GetProjectPipelinesNotFound) Code() int

Code gets the status code for the get project pipelines not found response

func (*GetProjectPipelinesNotFound) Error

func (*GetProjectPipelinesNotFound) GetPayload

func (*GetProjectPipelinesNotFound) IsClientError

func (o *GetProjectPipelinesNotFound) IsClientError() bool

IsClientError returns true when this get project pipelines not found response has a 4xx status code

func (*GetProjectPipelinesNotFound) IsCode

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

IsCode returns true when this get project pipelines not found response a status code equal to that given

func (*GetProjectPipelinesNotFound) IsRedirect

func (o *GetProjectPipelinesNotFound) IsRedirect() bool

IsRedirect returns true when this get project pipelines not found response has a 3xx status code

func (*GetProjectPipelinesNotFound) IsServerError

func (o *GetProjectPipelinesNotFound) IsServerError() bool

IsServerError returns true when this get project pipelines not found response has a 5xx status code

func (*GetProjectPipelinesNotFound) IsSuccess

func (o *GetProjectPipelinesNotFound) IsSuccess() bool

IsSuccess returns true when this get project pipelines not found response has a 2xx status code

func (*GetProjectPipelinesNotFound) String

func (o *GetProjectPipelinesNotFound) String() string

type GetProjectPipelinesOK

type GetProjectPipelinesOK struct {
	Payload *GetProjectPipelinesOKBody
}

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

List of the pipelines which authenticated user has access to.

func NewGetProjectPipelinesOK

func NewGetProjectPipelinesOK() *GetProjectPipelinesOK

NewGetProjectPipelinesOK creates a GetProjectPipelinesOK with default headers values

func (*GetProjectPipelinesOK) Code

func (o *GetProjectPipelinesOK) Code() int

Code gets the status code for the get project pipelines o k response

func (*GetProjectPipelinesOK) Error

func (o *GetProjectPipelinesOK) Error() string

func (*GetProjectPipelinesOK) GetPayload

func (*GetProjectPipelinesOK) IsClientError

func (o *GetProjectPipelinesOK) IsClientError() bool

IsClientError returns true when this get project pipelines o k response has a 4xx status code

func (*GetProjectPipelinesOK) IsCode

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

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

func (*GetProjectPipelinesOK) IsRedirect

func (o *GetProjectPipelinesOK) IsRedirect() bool

IsRedirect returns true when this get project pipelines o k response has a 3xx status code

func (*GetProjectPipelinesOK) IsServerError

func (o *GetProjectPipelinesOK) IsServerError() bool

IsServerError returns true when this get project pipelines o k response has a 5xx status code

func (*GetProjectPipelinesOK) IsSuccess

func (o *GetProjectPipelinesOK) IsSuccess() bool

IsSuccess returns true when this get project pipelines o k response has a 2xx status code

func (*GetProjectPipelinesOK) String

func (o *GetProjectPipelinesOK) String() string

type GetProjectPipelinesOKBody

type GetProjectPipelinesOKBody struct {

	// data
	// Required: true
	Data []*models.Pipeline `json:"data"`

	// pagination
	// Required: true
	Pagination *models.Pagination `json:"pagination"`
}

GetProjectPipelinesOKBody get project pipelines o k body swagger:model GetProjectPipelinesOKBody

func (*GetProjectPipelinesOKBody) ContextValidate

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

ContextValidate validate this get project pipelines o k body based on the context it is used

func (*GetProjectPipelinesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetProjectPipelinesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetProjectPipelinesOKBody) Validate

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

Validate validates this get project pipelines o k body

type GetProjectPipelinesParams

type GetProjectPipelinesParams struct {

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

	/* PageIndex.

	   The page number to request. The first page is 1.

	   Format: uint32
	   Default: 1
	*/
	PageIndex *uint32

	/* PageSize.

	   The number of items at most which the response can have.

	   Format: uint32
	   Default: 1000
	*/
	PageSize *uint32

	/* ProjectCanonical.

	   A canonical of a project.
	*/
	ProjectCanonical string

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

GetProjectPipelinesParams contains all the parameters to send to the API endpoint

for the get project pipelines operation.

Typically these are written to a http.Request.

func NewGetProjectPipelinesParams

func NewGetProjectPipelinesParams() *GetProjectPipelinesParams

NewGetProjectPipelinesParams creates a new GetProjectPipelinesParams 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 NewGetProjectPipelinesParamsWithContext

func NewGetProjectPipelinesParamsWithContext(ctx context.Context) *GetProjectPipelinesParams

NewGetProjectPipelinesParamsWithContext creates a new GetProjectPipelinesParams object with the ability to set a context for a request.

func NewGetProjectPipelinesParamsWithHTTPClient

func NewGetProjectPipelinesParamsWithHTTPClient(client *http.Client) *GetProjectPipelinesParams

NewGetProjectPipelinesParamsWithHTTPClient creates a new GetProjectPipelinesParams object with the ability to set a custom HTTPClient for a request.

func NewGetProjectPipelinesParamsWithTimeout

func NewGetProjectPipelinesParamsWithTimeout(timeout time.Duration) *GetProjectPipelinesParams

NewGetProjectPipelinesParamsWithTimeout creates a new GetProjectPipelinesParams object with the ability to set a timeout on a request.

func (*GetProjectPipelinesParams) SetContext

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

SetContext adds the context to the get project pipelines params

func (*GetProjectPipelinesParams) SetDefaults

func (o *GetProjectPipelinesParams) SetDefaults()

SetDefaults hydrates default values in the get project pipelines params (not the query body).

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

func (*GetProjectPipelinesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get project pipelines params

func (*GetProjectPipelinesParams) SetOrganizationCanonical

func (o *GetProjectPipelinesParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the get project pipelines params

func (*GetProjectPipelinesParams) SetPageIndex

func (o *GetProjectPipelinesParams) SetPageIndex(pageIndex *uint32)

SetPageIndex adds the pageIndex to the get project pipelines params

func (*GetProjectPipelinesParams) SetPageSize

func (o *GetProjectPipelinesParams) SetPageSize(pageSize *uint32)

SetPageSize adds the pageSize to the get project pipelines params

func (*GetProjectPipelinesParams) SetProjectCanonical

func (o *GetProjectPipelinesParams) SetProjectCanonical(projectCanonical string)

SetProjectCanonical adds the projectCanonical to the get project pipelines params

func (*GetProjectPipelinesParams) SetTimeout

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

SetTimeout adds the timeout to the get project pipelines params

func (*GetProjectPipelinesParams) WithContext

WithContext adds the context to the get project pipelines params

func (*GetProjectPipelinesParams) WithDefaults

WithDefaults hydrates default values in the get project pipelines params (not the query body).

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

func (*GetProjectPipelinesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get project pipelines params

func (*GetProjectPipelinesParams) WithOrganizationCanonical

func (o *GetProjectPipelinesParams) WithOrganizationCanonical(organizationCanonical string) *GetProjectPipelinesParams

WithOrganizationCanonical adds the organizationCanonical to the get project pipelines params

func (*GetProjectPipelinesParams) WithPageIndex

func (o *GetProjectPipelinesParams) WithPageIndex(pageIndex *uint32) *GetProjectPipelinesParams

WithPageIndex adds the pageIndex to the get project pipelines params

func (*GetProjectPipelinesParams) WithPageSize

func (o *GetProjectPipelinesParams) WithPageSize(pageSize *uint32) *GetProjectPipelinesParams

WithPageSize adds the pageSize to the get project pipelines params

func (*GetProjectPipelinesParams) WithProjectCanonical

func (o *GetProjectPipelinesParams) WithProjectCanonical(projectCanonical string) *GetProjectPipelinesParams

WithProjectCanonical adds the projectCanonical to the get project pipelines params

func (*GetProjectPipelinesParams) WithTimeout

WithTimeout adds the timeout to the get project pipelines params

func (*GetProjectPipelinesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetProjectPipelinesReader

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

GetProjectPipelinesReader is a Reader for the GetProjectPipelines structure.

func (*GetProjectPipelinesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProjectPipelinesUnprocessableEntity

type GetProjectPipelinesUnprocessableEntity struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetProjectPipelinesUnprocessableEntity describes a response with status code 422, with default header values.

All the custom errors that are generated from the Cycloid API

func NewGetProjectPipelinesUnprocessableEntity

func NewGetProjectPipelinesUnprocessableEntity() *GetProjectPipelinesUnprocessableEntity

NewGetProjectPipelinesUnprocessableEntity creates a GetProjectPipelinesUnprocessableEntity with default headers values

func (*GetProjectPipelinesUnprocessableEntity) Code

Code gets the status code for the get project pipelines unprocessable entity response

func (*GetProjectPipelinesUnprocessableEntity) Error

func (*GetProjectPipelinesUnprocessableEntity) GetPayload

func (*GetProjectPipelinesUnprocessableEntity) IsClientError

func (o *GetProjectPipelinesUnprocessableEntity) IsClientError() bool

IsClientError returns true when this get project pipelines unprocessable entity response has a 4xx status code

func (*GetProjectPipelinesUnprocessableEntity) IsCode

IsCode returns true when this get project pipelines unprocessable entity response a status code equal to that given

func (*GetProjectPipelinesUnprocessableEntity) IsRedirect

IsRedirect returns true when this get project pipelines unprocessable entity response has a 3xx status code

func (*GetProjectPipelinesUnprocessableEntity) IsServerError

func (o *GetProjectPipelinesUnprocessableEntity) IsServerError() bool

IsServerError returns true when this get project pipelines unprocessable entity response has a 5xx status code

func (*GetProjectPipelinesUnprocessableEntity) IsSuccess

IsSuccess returns true when this get project pipelines unprocessable entity response has a 2xx status code

func (*GetProjectPipelinesUnprocessableEntity) String

Jump to

Keyboard shortcuts

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