Versions in this module Expand all Collapse all v0 v0.16.3 Mar 12, 2024 v0.16.1 Mar 12, 2024 v0.16.0 Mar 12, 2024 v0.13.3 Nov 2, 2023 Changes in this version + var ContextAPIKeys = contextKey("apiKeys") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextHttpSignatureAuth = contextKey("httpsignature") + var ContextOAuth2 = contextKey("token") + var ContextOperationServerIndices = contextKey("serverOperationIndices") + var ContextOperationServerVariables = contextKey("serverOperationVariables") + var ContextServerIndex = contextKey("serverIndex") + var ContextServerVariables = contextKey("serverVariables") + func CacheExpires(r *http.Response) time.Time + func PtrBool(v bool) *bool + func PtrFloat32(v float32) *float32 + func PtrFloat64(v float64) *float64 + func PtrInt(v int) *int + func PtrInt32(v int32) *int32 + func PtrInt64(v int64) *int64 + func PtrString(v string) *string + func PtrTime(v time.Time) *time.Time + type APIClient struct + PinsApi *PinsApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) GetConfig() *Configuration + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type BasicAuth struct + Password string + UserName string + type Configuration struct + Debug bool + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + OperationServers map[string]ServerConfigurations + Scheme string + Servers ServerConfigurations + UserAgent string + func NewConfiguration() *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) + func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) + type Failure struct + Error FailureError + func NewFailure(error_ FailureError) *Failure + func NewFailureWithDefaults() *Failure + func (o *Failure) GetError() FailureError + func (o *Failure) GetErrorOk() (*FailureError, bool) + func (o *Failure) SetError(v FailureError) + func (o Failure) MarshalJSON() ([]byte, error) + type FailureError struct + Details *string + Reason string + func NewFailureError(reason string) *FailureError + func NewFailureErrorWithDefaults() *FailureError + func (o *FailureError) GetDetails() string + func (o *FailureError) GetDetailsOk() (*string, bool) + func (o *FailureError) GetReason() string + func (o *FailureError) GetReasonOk() (*string, bool) + func (o *FailureError) HasDetails() bool + func (o *FailureError) SetDetails(v string) + func (o *FailureError) SetReason(v string) + func (o FailureError) MarshalJSON() ([]byte, error) + type GenericOpenAPIError struct + func (e GenericOpenAPIError) Body() []byte + func (e GenericOpenAPIError) Error() string + func (e GenericOpenAPIError) Model() interface{} + type NullableBool struct + func NewNullableBool(val *bool) *NullableBool + func (v *NullableBool) Set(val *bool) + func (v *NullableBool) UnmarshalJSON(src []byte) error + func (v *NullableBool) Unset() + func (v NullableBool) Get() *bool + func (v NullableBool) IsSet() bool + func (v NullableBool) MarshalJSON() ([]byte, error) + type NullableFailure struct + func NewNullableFailure(val *Failure) *NullableFailure + func (v *NullableFailure) Set(val *Failure) + func (v *NullableFailure) UnmarshalJSON(src []byte) error + func (v *NullableFailure) Unset() + func (v NullableFailure) Get() *Failure + func (v NullableFailure) IsSet() bool + func (v NullableFailure) MarshalJSON() ([]byte, error) + type NullableFailureError struct + func NewNullableFailureError(val *FailureError) *NullableFailureError + func (v *NullableFailureError) Set(val *FailureError) + func (v *NullableFailureError) UnmarshalJSON(src []byte) error + func (v *NullableFailureError) Unset() + func (v NullableFailureError) Get() *FailureError + func (v NullableFailureError) IsSet() bool + func (v NullableFailureError) MarshalJSON() ([]byte, error) + type NullableFloat32 struct + func NewNullableFloat32(val *float32) *NullableFloat32 + func (v *NullableFloat32) Set(val *float32) + func (v *NullableFloat32) UnmarshalJSON(src []byte) error + func (v *NullableFloat32) Unset() + func (v NullableFloat32) Get() *float32 + func (v NullableFloat32) IsSet() bool + func (v NullableFloat32) MarshalJSON() ([]byte, error) + type NullableFloat64 struct + func NewNullableFloat64(val *float64) *NullableFloat64 + func (v *NullableFloat64) Set(val *float64) + func (v *NullableFloat64) UnmarshalJSON(src []byte) error + func (v *NullableFloat64) Unset() + func (v NullableFloat64) Get() *float64 + func (v NullableFloat64) IsSet() bool + func (v NullableFloat64) MarshalJSON() ([]byte, error) + type NullableInt struct + func NewNullableInt(val *int) *NullableInt + func (v *NullableInt) Set(val *int) + func (v *NullableInt) UnmarshalJSON(src []byte) error + func (v *NullableInt) Unset() + func (v NullableInt) Get() *int + func (v NullableInt) IsSet() bool + func (v NullableInt) MarshalJSON() ([]byte, error) + type NullableInt32 struct + func NewNullableInt32(val *int32) *NullableInt32 + func (v *NullableInt32) Set(val *int32) + func (v *NullableInt32) UnmarshalJSON(src []byte) error + func (v *NullableInt32) Unset() + func (v NullableInt32) Get() *int32 + func (v NullableInt32) IsSet() bool + func (v NullableInt32) MarshalJSON() ([]byte, error) + type NullableInt64 struct + func NewNullableInt64(val *int64) *NullableInt64 + func (v *NullableInt64) Set(val *int64) + func (v *NullableInt64) UnmarshalJSON(src []byte) error + func (v *NullableInt64) Unset() + func (v NullableInt64) Get() *int64 + func (v NullableInt64) IsSet() bool + func (v NullableInt64) MarshalJSON() ([]byte, error) + type NullablePin struct + func NewNullablePin(val *Pin) *NullablePin + func (v *NullablePin) Set(val *Pin) + func (v *NullablePin) UnmarshalJSON(src []byte) error + func (v *NullablePin) Unset() + func (v NullablePin) Get() *Pin + func (v NullablePin) IsSet() bool + func (v NullablePin) MarshalJSON() ([]byte, error) + type NullablePinResults struct + func NewNullablePinResults(val *PinResults) *NullablePinResults + func (v *NullablePinResults) Set(val *PinResults) + func (v *NullablePinResults) UnmarshalJSON(src []byte) error + func (v *NullablePinResults) Unset() + func (v NullablePinResults) Get() *PinResults + func (v NullablePinResults) IsSet() bool + func (v NullablePinResults) MarshalJSON() ([]byte, error) + type NullablePinStatus struct + func NewNullablePinStatus(val *PinStatus) *NullablePinStatus + func (v *NullablePinStatus) Set(val *PinStatus) + func (v *NullablePinStatus) UnmarshalJSON(src []byte) error + func (v *NullablePinStatus) Unset() + func (v NullablePinStatus) Get() *PinStatus + func (v NullablePinStatus) IsSet() bool + func (v NullablePinStatus) MarshalJSON() ([]byte, error) + type NullableStatus struct + func NewNullableStatus(val *Status) *NullableStatus + func (v *NullableStatus) Set(val *Status) + func (v *NullableStatus) UnmarshalJSON(src []byte) error + func (v *NullableStatus) Unset() + func (v NullableStatus) Get() *Status + func (v NullableStatus) IsSet() bool + func (v NullableStatus) MarshalJSON() ([]byte, error) + type NullableString struct + func NewNullableString(val *string) *NullableString + func (v *NullableString) Set(val *string) + func (v *NullableString) UnmarshalJSON(src []byte) error + func (v *NullableString) Unset() + func (v NullableString) Get() *string + func (v NullableString) IsSet() bool + func (v NullableString) MarshalJSON() ([]byte, error) + type NullableTime struct + func NewNullableTime(val *time.Time) *NullableTime + func (v *NullableTime) Set(val *time.Time) + func (v *NullableTime) UnmarshalJSON(src []byte) error + func (v *NullableTime) Unset() + func (v NullableTime) Get() *time.Time + func (v NullableTime) IsSet() bool + func (v NullableTime) MarshalJSON() ([]byte, error) + type Pin struct + Cid string + Meta *map[string]string + Name *string + Origins *[]string + func NewPin(cid string) *Pin + func NewPinWithDefaults() *Pin + func (o *Pin) GetCid() string + func (o *Pin) GetCidOk() (*string, bool) + func (o *Pin) GetMeta() map[string]string + func (o *Pin) GetMetaOk() (*map[string]string, bool) + func (o *Pin) GetName() string + func (o *Pin) GetNameOk() (*string, bool) + func (o *Pin) GetOrigins() []string + func (o *Pin) GetOriginsOk() (*[]string, bool) + func (o *Pin) HasMeta() bool + func (o *Pin) HasName() bool + func (o *Pin) HasOrigins() bool + func (o *Pin) SetCid(v string) + func (o *Pin) SetMeta(v map[string]string) + func (o *Pin) SetName(v string) + func (o *Pin) SetOrigins(v []string) + func (o Pin) MarshalJSON() ([]byte, error) + type PinResults struct + Count int32 + Results []PinStatus + func NewPinResults(count int32, results []PinStatus) *PinResults + func NewPinResultsWithDefaults() *PinResults + func (o *PinResults) GetCount() int32 + func (o *PinResults) GetCountOk() (*int32, bool) + func (o *PinResults) GetResults() []PinStatus + func (o *PinResults) GetResultsOk() (*[]PinStatus, bool) + func (o *PinResults) SetCount(v int32) + func (o *PinResults) SetResults(v []PinStatus) + func (o PinResults) MarshalJSON() ([]byte, error) + type PinStatus struct + Created time.Time + Delegates []string + Info *map[string]string + Pin Pin + Requestid string + Status Status + func NewPinStatus(requestid string, status Status, created time.Time, pin Pin, ...) *PinStatus + func NewPinStatusWithDefaults() *PinStatus + func (o *PinStatus) GetCreated() time.Time + func (o *PinStatus) GetCreatedOk() (*time.Time, bool) + func (o *PinStatus) GetDelegates() []string + func (o *PinStatus) GetDelegatesOk() (*[]string, bool) + func (o *PinStatus) GetInfo() map[string]string + func (o *PinStatus) GetInfoOk() (*map[string]string, bool) + func (o *PinStatus) GetPin() Pin + func (o *PinStatus) GetPinOk() (*Pin, bool) + func (o *PinStatus) GetRequestid() string + func (o *PinStatus) GetRequestidOk() (*string, bool) + func (o *PinStatus) GetStatus() Status + func (o *PinStatus) GetStatusOk() (*Status, bool) + func (o *PinStatus) HasInfo() bool + func (o *PinStatus) SetCreated(v time.Time) + func (o *PinStatus) SetDelegates(v []string) + func (o *PinStatus) SetInfo(v map[string]string) + func (o *PinStatus) SetPin(v Pin) + func (o *PinStatus) SetRequestid(v string) + func (o *PinStatus) SetStatus(v Status) + func (o PinStatus) MarshalJSON() ([]byte, error) + type PinsApiService service + func (a *PinsApiService) PinsGet(ctx _context.Context) apiPinsGetRequest + func (a *PinsApiService) PinsPost(ctx _context.Context) apiPinsPostRequest + func (a *PinsApiService) PinsRequestidDelete(ctx _context.Context, requestid string) apiPinsRequestidDeleteRequest + func (a *PinsApiService) PinsRequestidGet(ctx _context.Context, requestid string) apiPinsRequestidGetRequest + func (a *PinsApiService) PinsRequestidPost(ctx _context.Context, requestid string) apiPinsRequestidPostRequest + type ServerConfiguration struct + Description string + URL string + Variables map[string]ServerVariable + type ServerConfigurations []ServerConfiguration + func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) + type ServerVariable struct + DefaultValue string + Description string + EnumValues []string + type Status string + const FAILED + const PINNED + const PINNING + const QUEUED + func (v *Status) UnmarshalJSON(src []byte) error + func (v Status) Ptr() *Status