challenge_list

package
v0.77.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	GetChallengesCreatedAtConstant     = "createdAt"
	GetChallengesCreatedAtAscConstant  = "createdAt:asc"
	GetChallengesCreatedAtDescConstant = "createdAt:desc"
	GetChallengesUpdatedAtConstant     = "updatedAt"
	GetChallengesUpdatedAtAscConstant  = "updatedAt:asc"
	GetChallengesUpdatedAtDescConstant = "updatedAt:desc"
)

Get the enum in GetChallengesParams

View Source
const (
	GetChallengesINITConstant    = "INIT"
	GetChallengesRETIREDConstant = "RETIRED"
	GetChallengesTIEDConstant    = "TIED"
)

Get the enum in GetChallengesParams

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for challenge list API

func (*Client) GetChallenges deprecated

Deprecated: 2022-08-10 - Use GetChallengesShort instead.

GetChallenges list challenges - Required permission: NAMESPACE:{namespace}:CHALLENGE [READ]

func (*Client) GetChallengesShort

func (a *Client) GetChallengesShort(params *GetChallengesParams, authInfo runtime.ClientAuthInfoWriter) (*GetChallengesOK, error)

GetChallengesShort list challenges - Required permission: NAMESPACE:{namespace}:CHALLENGE [READ]

func (*Client) PublicGetScheduledGoals deprecated

Deprecated: 2022-08-10 - Use PublicGetScheduledGoalsShort instead.

PublicGetScheduledGoals list goals of a challenge - Required permission: NAMESPACE:{namespace}:CHALLENGE [READ]

func (*Client) PublicGetScheduledGoalsShort

func (a *Client) PublicGetScheduledGoalsShort(params *PublicGetScheduledGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetScheduledGoalsOK, error)

PublicGetScheduledGoalsShort list goals of a challenge - Required permission: NAMESPACE:{namespace}:CHALLENGE [READ]

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new challenge list API client.

type GetChallengesBadRequest added in v0.77.0

type GetChallengesBadRequest struct {
	Payload *challengeclientmodels.ResponseError
}

GetChallengesBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20018</td><td>bad request: {{message}}</td></tr></table>

func NewGetChallengesBadRequest added in v0.77.0

func NewGetChallengesBadRequest() *GetChallengesBadRequest

NewGetChallengesBadRequest creates a GetChallengesBadRequest with default headers values

func (*GetChallengesBadRequest) Error added in v0.77.0

func (o *GetChallengesBadRequest) Error() string

func (*GetChallengesBadRequest) GetPayload added in v0.77.0

func (*GetChallengesBadRequest) ToJSONString added in v0.77.0

func (o *GetChallengesBadRequest) ToJSONString() string

type GetChallengesForbidden

type GetChallengesForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

GetChallengesForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewGetChallengesForbidden

func NewGetChallengesForbidden() *GetChallengesForbidden

NewGetChallengesForbidden creates a GetChallengesForbidden with default headers values

func (*GetChallengesForbidden) Error

func (o *GetChallengesForbidden) Error() string

func (*GetChallengesForbidden) GetPayload

func (*GetChallengesForbidden) ToJSONString

func (o *GetChallengesForbidden) ToJSONString() string

type GetChallengesInternalServerError

type GetChallengesInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

GetChallengesInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewGetChallengesInternalServerError

func NewGetChallengesInternalServerError() *GetChallengesInternalServerError

NewGetChallengesInternalServerError creates a GetChallengesInternalServerError with default headers values

func (*GetChallengesInternalServerError) Error

func (*GetChallengesInternalServerError) GetPayload

func (*GetChallengesInternalServerError) ToJSONString

func (o *GetChallengesInternalServerError) ToJSONString() string

type GetChallengesOK

type GetChallengesOK struct {
	Payload *challengeclientmodels.ModelListChallengeResponse
}

GetChallengesOK handles this case with default header values.

OK

func NewGetChallengesOK

func NewGetChallengesOK() *GetChallengesOK

NewGetChallengesOK creates a GetChallengesOK with default headers values

func (*GetChallengesOK) Error

func (o *GetChallengesOK) Error() string

func (*GetChallengesOK) GetPayload

func (*GetChallengesOK) ToJSONString

func (o *GetChallengesOK) ToJSONString() string

type GetChallengesParams

type GetChallengesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Keyword
	  filter challenges by code with likes behavior

	*/
	Keyword *string
	/*Limit
	  limit the amount of data retrieved

	*/
	Limit *int64
	/*Offset
	  offset

	*/
	Offset *int64
	/*SortBy
	    sort list by attributes.
				default value: updatedAt:desc.

	*/
	SortBy *string
	/*Status
	  challenge status

	*/
	Status *string
	/*Tags
	  filter challenges by tags, comma separated value

	*/
	Tags []string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewGetChallengesParams

func NewGetChallengesParams() *GetChallengesParams

NewGetChallengesParams creates a new GetChallengesParams object with the default values initialized.

func NewGetChallengesParamsWithContext

func NewGetChallengesParamsWithContext(ctx context.Context) *GetChallengesParams

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

func NewGetChallengesParamsWithHTTPClient

func NewGetChallengesParamsWithHTTPClient(client *http.Client) *GetChallengesParams

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

func NewGetChallengesParamsWithTimeout

func NewGetChallengesParamsWithTimeout(timeout time.Duration) *GetChallengesParams

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

func (*GetChallengesParams) SetAuthInfoWriter

func (o *GetChallengesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get challenges params

func (*GetChallengesParams) SetContext

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

SetContext adds the context to the get challenges params

func (*GetChallengesParams) SetFlightId

func (o *GetChallengesParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GetChallengesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get challenges params

func (*GetChallengesParams) SetHTTPClientTransport

func (o *GetChallengesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get challenges params

func (*GetChallengesParams) SetKeyword added in v0.77.0

func (o *GetChallengesParams) SetKeyword(keyword *string)

SetKeyword adds the keyword to the get challenges params

func (*GetChallengesParams) SetLimit

func (o *GetChallengesParams) SetLimit(limit *int64)

SetLimit adds the limit to the get challenges params

func (*GetChallengesParams) SetNamespace

func (o *GetChallengesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get challenges params

func (*GetChallengesParams) SetOffset

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

SetOffset adds the offset to the get challenges params

func (*GetChallengesParams) SetSortBy

func (o *GetChallengesParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the get challenges params

func (*GetChallengesParams) SetStatus

func (o *GetChallengesParams) SetStatus(status *string)

SetStatus adds the status to the get challenges params

func (*GetChallengesParams) SetTags added in v0.77.0

func (o *GetChallengesParams) SetTags(tags []string)

SetTags adds the tags to the get challenges params

func (*GetChallengesParams) SetTimeout

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

SetTimeout adds the timeout to the get challenges params

func (*GetChallengesParams) WithContext

WithContext adds the context to the get challenges params

func (*GetChallengesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get challenges params

func (*GetChallengesParams) WithKeyword added in v0.77.0

func (o *GetChallengesParams) WithKeyword(keyword *string) *GetChallengesParams

WithKeyword adds the keyword to the get challenges params

func (*GetChallengesParams) WithLimit

func (o *GetChallengesParams) WithLimit(limit *int64) *GetChallengesParams

WithLimit adds the limit to the get challenges params

func (*GetChallengesParams) WithNamespace

func (o *GetChallengesParams) WithNamespace(namespace string) *GetChallengesParams

WithNamespace adds the namespace to the get challenges params

func (*GetChallengesParams) WithOffset

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

WithOffset adds the offset to the get challenges params

func (*GetChallengesParams) WithSortBy

func (o *GetChallengesParams) WithSortBy(sortBy *string) *GetChallengesParams

WithSortBy adds the sortBy to the get challenges params

func (*GetChallengesParams) WithStatus

func (o *GetChallengesParams) WithStatus(status *string) *GetChallengesParams

WithStatus adds the status to the get challenges params

func (*GetChallengesParams) WithTags added in v0.77.0

func (o *GetChallengesParams) WithTags(tags []string) *GetChallengesParams

WithTags adds the tags to the get challenges params

func (*GetChallengesParams) WithTimeout

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

WithTimeout adds the timeout to the get challenges params

func (*GetChallengesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetChallengesReader

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

GetChallengesReader is a Reader for the GetChallenges structure.

func (*GetChallengesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetChallengesUnauthorized

type GetChallengesUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

GetChallengesUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewGetChallengesUnauthorized

func NewGetChallengesUnauthorized() *GetChallengesUnauthorized

NewGetChallengesUnauthorized creates a GetChallengesUnauthorized with default headers values

func (*GetChallengesUnauthorized) Error

func (o *GetChallengesUnauthorized) Error() string

func (*GetChallengesUnauthorized) GetPayload

func (*GetChallengesUnauthorized) ToJSONString

func (o *GetChallengesUnauthorized) ToJSONString() string

type PublicGetScheduledGoalsForbidden

type PublicGetScheduledGoalsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicGetScheduledGoalsForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewPublicGetScheduledGoalsForbidden

func NewPublicGetScheduledGoalsForbidden() *PublicGetScheduledGoalsForbidden

NewPublicGetScheduledGoalsForbidden creates a PublicGetScheduledGoalsForbidden with default headers values

func (*PublicGetScheduledGoalsForbidden) Error

func (*PublicGetScheduledGoalsForbidden) GetPayload

func (*PublicGetScheduledGoalsForbidden) ToJSONString

func (o *PublicGetScheduledGoalsForbidden) ToJSONString() string

type PublicGetScheduledGoalsInternalServerError

type PublicGetScheduledGoalsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

PublicGetScheduledGoalsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewPublicGetScheduledGoalsInternalServerError

func NewPublicGetScheduledGoalsInternalServerError() *PublicGetScheduledGoalsInternalServerError

NewPublicGetScheduledGoalsInternalServerError creates a PublicGetScheduledGoalsInternalServerError with default headers values

func (*PublicGetScheduledGoalsInternalServerError) Error

func (*PublicGetScheduledGoalsInternalServerError) GetPayload

func (*PublicGetScheduledGoalsInternalServerError) ToJSONString

type PublicGetScheduledGoalsNotFound added in v0.70.0

type PublicGetScheduledGoalsNotFound struct {
	Payload *challengeclientmodels.ResponseError
}

PublicGetScheduledGoalsNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20029</td><td>not found</td></tr></table>

func NewPublicGetScheduledGoalsNotFound added in v0.70.0

func NewPublicGetScheduledGoalsNotFound() *PublicGetScheduledGoalsNotFound

NewPublicGetScheduledGoalsNotFound creates a PublicGetScheduledGoalsNotFound with default headers values

func (*PublicGetScheduledGoalsNotFound) Error added in v0.70.0

func (*PublicGetScheduledGoalsNotFound) GetPayload added in v0.70.0

func (*PublicGetScheduledGoalsNotFound) ToJSONString added in v0.70.0

func (o *PublicGetScheduledGoalsNotFound) ToJSONString() string

type PublicGetScheduledGoalsOK

type PublicGetScheduledGoalsOK struct {
	Payload *challengeclientmodels.ModelGetGoalsResponse
}

PublicGetScheduledGoalsOK handles this case with default header values.

OK

func NewPublicGetScheduledGoalsOK

func NewPublicGetScheduledGoalsOK() *PublicGetScheduledGoalsOK

NewPublicGetScheduledGoalsOK creates a PublicGetScheduledGoalsOK with default headers values

func (*PublicGetScheduledGoalsOK) Error

func (o *PublicGetScheduledGoalsOK) Error() string

func (*PublicGetScheduledGoalsOK) GetPayload

func (*PublicGetScheduledGoalsOK) ToJSONString

func (o *PublicGetScheduledGoalsOK) ToJSONString() string

type PublicGetScheduledGoalsParams

type PublicGetScheduledGoalsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ChallengeCode
	  challenge code

	*/
	ChallengeCode string
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Limit
	  limit the amount of data retrieved

	*/
	Limit *int64
	/*Offset
	  offset

	*/
	Offset *int64
	/*Tags
	  filter list by tags

	*/
	Tags []string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

PublicGetScheduledGoalsParams contains all the parameters to send to the API endpoint for the public get scheduled goals operation typically these are written to a http.Request

func NewPublicGetScheduledGoalsParams

func NewPublicGetScheduledGoalsParams() *PublicGetScheduledGoalsParams

NewPublicGetScheduledGoalsParams creates a new PublicGetScheduledGoalsParams object with the default values initialized.

func NewPublicGetScheduledGoalsParamsWithContext

func NewPublicGetScheduledGoalsParamsWithContext(ctx context.Context) *PublicGetScheduledGoalsParams

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

func NewPublicGetScheduledGoalsParamsWithHTTPClient

func NewPublicGetScheduledGoalsParamsWithHTTPClient(client *http.Client) *PublicGetScheduledGoalsParams

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

func NewPublicGetScheduledGoalsParamsWithTimeout

func NewPublicGetScheduledGoalsParamsWithTimeout(timeout time.Duration) *PublicGetScheduledGoalsParams

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

func (*PublicGetScheduledGoalsParams) SetAuthInfoWriter

func (o *PublicGetScheduledGoalsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) SetChallengeCode

func (o *PublicGetScheduledGoalsParams) SetChallengeCode(challengeCode string)

SetChallengeCode adds the challengeCode to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) SetContext

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

SetContext adds the context to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) SetFlightId

func (o *PublicGetScheduledGoalsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicGetScheduledGoalsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) SetHTTPClientTransport

func (o *PublicGetScheduledGoalsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) SetLimit

func (o *PublicGetScheduledGoalsParams) SetLimit(limit *int64)

SetLimit adds the limit to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) SetNamespace

func (o *PublicGetScheduledGoalsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) SetOffset

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

SetOffset adds the offset to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) SetTags

func (o *PublicGetScheduledGoalsParams) SetTags(tags []string)

SetTags adds the tags to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) SetTimeout

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

SetTimeout adds the timeout to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) WithChallengeCode

func (o *PublicGetScheduledGoalsParams) WithChallengeCode(challengeCode string) *PublicGetScheduledGoalsParams

WithChallengeCode adds the challengeCode to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) WithContext

WithContext adds the context to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) WithLimit

WithLimit adds the limit to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) WithNamespace

WithNamespace adds the namespace to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) WithOffset

WithOffset adds the offset to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) WithTags

WithTags adds the tags to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) WithTimeout

WithTimeout adds the timeout to the public get scheduled goals params

func (*PublicGetScheduledGoalsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetScheduledGoalsReader

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

PublicGetScheduledGoalsReader is a Reader for the PublicGetScheduledGoals structure.

func (*PublicGetScheduledGoalsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetScheduledGoalsUnauthorized

type PublicGetScheduledGoalsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicGetScheduledGoalsUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewPublicGetScheduledGoalsUnauthorized

func NewPublicGetScheduledGoalsUnauthorized() *PublicGetScheduledGoalsUnauthorized

NewPublicGetScheduledGoalsUnauthorized creates a PublicGetScheduledGoalsUnauthorized with default headers values

func (*PublicGetScheduledGoalsUnauthorized) Error

func (*PublicGetScheduledGoalsUnauthorized) GetPayload

func (*PublicGetScheduledGoalsUnauthorized) ToJSONString

func (o *PublicGetScheduledGoalsUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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