Documentation ¶
Overview ¶
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func NewDeleteApiV1RegionsRegionIDIdentitiesIdentityIDRequest(server string, regionID RegionIDParameter, identityID IdentityIDParameter) (*http.Request, error)
- func NewGetApiV1RegionsRegionIDFlavorsRequest(server string, regionID RegionIDParameter) (*http.Request, error)
- func NewGetApiV1RegionsRegionIDImagesRequest(server string, regionID RegionIDParameter) (*http.Request, error)
- func NewGetApiV1RegionsRequest(server string) (*http.Request, error)
- func NewPostApiV1RegionsRegionIDIdentitiesRequest(server string, regionID RegionIDParameter, ...) (*http.Request, error)
- func NewPostApiV1RegionsRegionIDIdentitiesRequestWithBody(server string, regionID RegionIDParameter, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type ChiServerOptions
- type Client
- func (c *Client) DeleteApiV1RegionsRegionIDIdentitiesIdentityID(ctx context.Context, regionID RegionIDParameter, ...) (*http.Response, error)
- func (c *Client) GetApiV1Regions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiV1RegionsRegionIDFlavors(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiV1RegionsRegionIDImages(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostApiV1RegionsRegionIDIdentities(ctx context.Context, regionID RegionIDParameter, ...) (*http.Response, error)
- func (c *Client) PostApiV1RegionsRegionIDIdentitiesWithBody(ctx context.Context, regionID RegionIDParameter, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteApiV1RegionsRegionIDIdentitiesIdentityIDWithResponse(ctx context.Context, regionID RegionIDParameter, ...) (*DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse, error)
- func (c *ClientWithResponses) GetApiV1RegionsRegionIDFlavorsWithResponse(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1RegionsRegionIDFlavorsResponse, error)
- func (c *ClientWithResponses) GetApiV1RegionsRegionIDImagesWithResponse(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1RegionsRegionIDImagesResponse, error)
- func (c *ClientWithResponses) GetApiV1RegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1RegionsResponse, error)
- func (c *ClientWithResponses) PostApiV1RegionsRegionIDIdentitiesWithBodyWithResponse(ctx context.Context, regionID RegionIDParameter, contentType string, ...) (*PostApiV1RegionsRegionIDIdentitiesResponse, error)
- func (c *ClientWithResponses) PostApiV1RegionsRegionIDIdentitiesWithResponse(ctx context.Context, regionID RegionIDParameter, ...) (*PostApiV1RegionsRegionIDIdentitiesResponse, error)
- type ClientWithResponsesInterface
- type DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse
- type Flavor
- type FlavorSpec
- type Flavors
- type FlavorsResponse
- type GetApiV1RegionsRegionIDFlavorsResponse
- type GetApiV1RegionsRegionIDImagesResponse
- type GetApiV1RegionsResponse
- type GpuDriver
- type GpuSpec
- type GpuVendor
- type HttpRequestDoer
- type IdentityIDParameter
- type IdentityRead
- type IdentityRequest
- type IdentityResponse
- type IdentitySpec
- type IdentitySpecOpenStack
- type IdentityWrite
- type Image
- type ImageSpec
- type Images
- type ImagesResponse
- type InvalidParamFormatError
- type KubernetesNameParameter
- type MiddlewareFunc
- type PostApiV1RegionsRegionIDIdentitiesJSONRequestBody
- type PostApiV1RegionsRegionIDIdentitiesResponse
- type RegionIDParameter
- type RegionRead
- type RegionSpec
- type RegionType
- type Regions
- type RegionsResponse
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) DeleteApiV1RegionsRegionIDIdentitiesIdentityID(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1Regions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1RegionsRegionIDFlavors(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1RegionsRegionIDImages(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostApiV1RegionsRegionIDIdentities(w http.ResponseWriter, r *http.Request)
- type SoftwareVersions
- type Tag
- type TagList
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) DeleteApiV1RegionsRegionIDIdentitiesIdentityID(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter, ...)
- func (_ Unimplemented) GetApiV1Regions(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetApiV1RegionsRegionIDFlavors(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter)
- func (_ Unimplemented) GetApiV1RegionsRegionIDImages(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter)
- func (_ Unimplemented) PostApiV1RegionsRegionIDIdentities(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter)
- type UnmarshalingParamError
Constants ¶
const (
Oauth2AuthenticationScopes = "oauth2Authentication.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewDeleteApiV1RegionsRegionIDIdentitiesIdentityIDRequest ¶
func NewDeleteApiV1RegionsRegionIDIdentitiesIdentityIDRequest(server string, regionID RegionIDParameter, identityID IdentityIDParameter) (*http.Request, error)
NewDeleteApiV1RegionsRegionIDIdentitiesIdentityIDRequest generates requests for DeleteApiV1RegionsRegionIDIdentitiesIdentityID
func NewGetApiV1RegionsRegionIDFlavorsRequest ¶
func NewGetApiV1RegionsRegionIDFlavorsRequest(server string, regionID RegionIDParameter) (*http.Request, error)
NewGetApiV1RegionsRegionIDFlavorsRequest generates requests for GetApiV1RegionsRegionIDFlavors
func NewGetApiV1RegionsRegionIDImagesRequest ¶
func NewGetApiV1RegionsRegionIDImagesRequest(server string, regionID RegionIDParameter) (*http.Request, error)
NewGetApiV1RegionsRegionIDImagesRequest generates requests for GetApiV1RegionsRegionIDImages
func NewGetApiV1RegionsRequest ¶
NewGetApiV1RegionsRequest generates requests for GetApiV1Regions
func NewPostApiV1RegionsRegionIDIdentitiesRequest ¶
func NewPostApiV1RegionsRegionIDIdentitiesRequest(server string, regionID RegionIDParameter, body PostApiV1RegionsRegionIDIdentitiesJSONRequestBody) (*http.Request, error)
NewPostApiV1RegionsRegionIDIdentitiesRequest calls the generic PostApiV1RegionsRegionIDIdentities builder with application/json body
func NewPostApiV1RegionsRegionIDIdentitiesRequestWithBody ¶
func NewPostApiV1RegionsRegionIDIdentitiesRequestWithBody(server string, regionID RegionIDParameter, contentType string, body io.Reader) (*http.Request, error)
NewPostApiV1RegionsRegionIDIdentitiesRequestWithBody generates requests for PostApiV1RegionsRegionIDIdentities with any type of body
Types ¶
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) DeleteApiV1RegionsRegionIDIdentitiesIdentityID ¶
func (c *Client) DeleteApiV1RegionsRegionIDIdentitiesIdentityID(ctx context.Context, regionID RegionIDParameter, identityID IdentityIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV1Regions ¶
func (*Client) GetApiV1RegionsRegionIDFlavors ¶
func (c *Client) GetApiV1RegionsRegionIDFlavors(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV1RegionsRegionIDImages ¶
func (c *Client) GetApiV1RegionsRegionIDImages(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV1RegionsRegionIDIdentities ¶
func (c *Client) PostApiV1RegionsRegionIDIdentities(ctx context.Context, regionID RegionIDParameter, body PostApiV1RegionsRegionIDIdentitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV1RegionsRegionIDIdentitiesWithBody ¶
type ClientInterface ¶
type ClientInterface interface { // GetApiV1Regions request GetApiV1Regions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV1RegionsRegionIDFlavors request GetApiV1RegionsRegionIDFlavors(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiV1RegionsRegionIDIdentitiesWithBody request with any body PostApiV1RegionsRegionIDIdentitiesWithBody(ctx context.Context, regionID RegionIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiV1RegionsRegionIDIdentities(ctx context.Context, regionID RegionIDParameter, body PostApiV1RegionsRegionIDIdentitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteApiV1RegionsRegionIDIdentitiesIdentityID request DeleteApiV1RegionsRegionIDIdentitiesIdentityID(ctx context.Context, regionID RegionIDParameter, identityID IdentityIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV1RegionsRegionIDImages request GetApiV1RegionsRegionIDImages(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteApiV1RegionsRegionIDIdentitiesIdentityIDWithResponse ¶
func (c *ClientWithResponses) DeleteApiV1RegionsRegionIDIdentitiesIdentityIDWithResponse(ctx context.Context, regionID RegionIDParameter, identityID IdentityIDParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse, error)
DeleteApiV1RegionsRegionIDIdentitiesIdentityIDWithResponse request returning *DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse
func (*ClientWithResponses) GetApiV1RegionsRegionIDFlavorsWithResponse ¶
func (c *ClientWithResponses) GetApiV1RegionsRegionIDFlavorsWithResponse(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1RegionsRegionIDFlavorsResponse, error)
GetApiV1RegionsRegionIDFlavorsWithResponse request returning *GetApiV1RegionsRegionIDFlavorsResponse
func (*ClientWithResponses) GetApiV1RegionsRegionIDImagesWithResponse ¶
func (c *ClientWithResponses) GetApiV1RegionsRegionIDImagesWithResponse(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1RegionsRegionIDImagesResponse, error)
GetApiV1RegionsRegionIDImagesWithResponse request returning *GetApiV1RegionsRegionIDImagesResponse
func (*ClientWithResponses) GetApiV1RegionsWithResponse ¶
func (c *ClientWithResponses) GetApiV1RegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1RegionsResponse, error)
GetApiV1RegionsWithResponse request returning *GetApiV1RegionsResponse
func (*ClientWithResponses) PostApiV1RegionsRegionIDIdentitiesWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiV1RegionsRegionIDIdentitiesWithBodyWithResponse(ctx context.Context, regionID RegionIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1RegionsRegionIDIdentitiesResponse, error)
PostApiV1RegionsRegionIDIdentitiesWithBodyWithResponse request with arbitrary body returning *PostApiV1RegionsRegionIDIdentitiesResponse
func (*ClientWithResponses) PostApiV1RegionsRegionIDIdentitiesWithResponse ¶
func (c *ClientWithResponses) PostApiV1RegionsRegionIDIdentitiesWithResponse(ctx context.Context, regionID RegionIDParameter, body PostApiV1RegionsRegionIDIdentitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1RegionsRegionIDIdentitiesResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetApiV1RegionsWithResponse request GetApiV1RegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1RegionsResponse, error) // GetApiV1RegionsRegionIDFlavorsWithResponse request GetApiV1RegionsRegionIDFlavorsWithResponse(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1RegionsRegionIDFlavorsResponse, error) // PostApiV1RegionsRegionIDIdentitiesWithBodyWithResponse request with any body PostApiV1RegionsRegionIDIdentitiesWithBodyWithResponse(ctx context.Context, regionID RegionIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1RegionsRegionIDIdentitiesResponse, error) PostApiV1RegionsRegionIDIdentitiesWithResponse(ctx context.Context, regionID RegionIDParameter, body PostApiV1RegionsRegionIDIdentitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1RegionsRegionIDIdentitiesResponse, error) // DeleteApiV1RegionsRegionIDIdentitiesIdentityIDWithResponse request DeleteApiV1RegionsRegionIDIdentitiesIdentityIDWithResponse(ctx context.Context, regionID RegionIDParameter, identityID IdentityIDParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse, error) // GetApiV1RegionsRegionIDImagesWithResponse request GetApiV1RegionsRegionIDImagesWithResponse(ctx context.Context, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1RegionsRegionIDImagesResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse ¶
type DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse struct { Body []byte HTTPResponse *http.Response JSON401 *externalRef0.UnauthorizedResponse JSON403 *externalRef0.ForbiddenResponse JSON404 *externalRef0.NotFoundResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParseDeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse ¶
func ParseDeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse(rsp *http.Response) (*DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse, error)
ParseDeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse parses an HTTP response from a DeleteApiV1RegionsRegionIDIdentitiesIdentityIDWithResponse call
func (DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse) Status ¶
func (r DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse) StatusCode ¶
func (r DeleteApiV1RegionsRegionIDIdentitiesIdentityIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Flavor ¶
type Flavor struct { // Metadata This metadata is for resources that just exist, and don't require // any provisioning and health status, but benefit from a standarized // metadata format. Metadata externalRef0.StaticResourceMetadata `json:"metadata"` // Spec A flavor. Spec FlavorSpec `json:"spec"` }
Flavor A flavor.
type FlavorSpec ¶
type FlavorSpec struct { // Cpus The number of CPUs. Cpus int `json:"cpus"` // Disk The amount of ephemeral disk in GB. Disk int `json:"disk"` // Gpu GPU specification. Gpu *GpuSpec `json:"gpu,omitempty"` // Memory The amount of memory in GiB. Memory int `json:"memory"` }
FlavorSpec A flavor.
type GetApiV1RegionsRegionIDFlavorsResponse ¶
type GetApiV1RegionsRegionIDFlavorsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *FlavorsResponse JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParseGetApiV1RegionsRegionIDFlavorsResponse ¶
func ParseGetApiV1RegionsRegionIDFlavorsResponse(rsp *http.Response) (*GetApiV1RegionsRegionIDFlavorsResponse, error)
ParseGetApiV1RegionsRegionIDFlavorsResponse parses an HTTP response from a GetApiV1RegionsRegionIDFlavorsWithResponse call
func (GetApiV1RegionsRegionIDFlavorsResponse) Status ¶
func (r GetApiV1RegionsRegionIDFlavorsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1RegionsRegionIDFlavorsResponse) StatusCode ¶
func (r GetApiV1RegionsRegionIDFlavorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV1RegionsRegionIDImagesResponse ¶
type GetApiV1RegionsRegionIDImagesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ImagesResponse JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParseGetApiV1RegionsRegionIDImagesResponse ¶
func ParseGetApiV1RegionsRegionIDImagesResponse(rsp *http.Response) (*GetApiV1RegionsRegionIDImagesResponse, error)
ParseGetApiV1RegionsRegionIDImagesResponse parses an HTTP response from a GetApiV1RegionsRegionIDImagesWithResponse call
func (GetApiV1RegionsRegionIDImagesResponse) Status ¶
func (r GetApiV1RegionsRegionIDImagesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1RegionsRegionIDImagesResponse) StatusCode ¶
func (r GetApiV1RegionsRegionIDImagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV1RegionsResponse ¶
type GetApiV1RegionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *RegionsResponse JSON401 *externalRef0.UnauthorizedResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParseGetApiV1RegionsResponse ¶
func ParseGetApiV1RegionsResponse(rsp *http.Response) (*GetApiV1RegionsResponse, error)
ParseGetApiV1RegionsResponse parses an HTTP response from a GetApiV1RegionsWithResponse call
func (GetApiV1RegionsResponse) Status ¶
func (r GetApiV1RegionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1RegionsResponse) StatusCode ¶
func (r GetApiV1RegionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GpuDriver ¶
type GpuDriver struct { // Vendor The GPU vendor. Vendor GpuVendor `json:"vendor"` // Version The GPU driver version, this is vendor specific. Version string `json:"version"` }
GpuDriver The GPU driver if installed.
type GpuSpec ¶
type GpuSpec struct { // Count The number of GPUs available. Count int `json:"count"` // Model A GPU model. Model string `json:"model"` // Vendor The GPU vendor. Vendor GpuVendor `json:"vendor"` }
GpuSpec GPU specification.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IdentityIDParameter ¶
type IdentityIDParameter = KubernetesNameParameter
IdentityIDParameter A Kubernetes name. Must be a valid DNS containing only lower case characters, numbers or hyphens, start and end with a character or number, and be at most 63 characters in length.
type IdentityRead ¶
type IdentityRead struct { // Metadata Resource metadata valid for all API resource reads and writes. Metadata externalRef0.ResourceWriteMetadata `json:"metadata"` // Spec A provider specific identity, while the client can list regions to infer the // type, we don't requires this and return it with the response. That can then // be used in turn to determine which provider specification to examine. Spec IdentitySpec `json:"spec"` }
IdentityRead A provider specific identity.
type IdentityRequest ¶
type IdentityRequest = IdentityWrite
IdentityRequest Request parameters for creating an identity.
type IdentityResponse ¶
type IdentityResponse = IdentityRead
IdentityResponse A provider specific identity.
type IdentitySpec ¶
type IdentitySpec struct { // Openstack Everything an OpenStack client needs to function. Openstack *IdentitySpecOpenStack `json:"openstack,omitempty"` // Type The region's provider type. Type RegionType `json:"type"` }
IdentitySpec A provider specific identity, while the client can list regions to infer the type, we don't requires this and return it with the response. That can then be used in turn to determine which provider specification to examine.
type IdentitySpecOpenStack ¶
type IdentitySpecOpenStack struct { // Cloud The name of the cloud in the cloud config. Cloud string `json:"cloud"` // CloudConfig A base64 encoded cloud config file. CloudConfig string `json:"cloudConfig"` // ExternalNetworkID An external network that can be used to provision floating IPs. ExternalNetworkID string `json:"externalNetworkID"` }
IdentitySpecOpenStack Everything an OpenStack client needs to function.
type IdentityWrite ¶
type IdentityWrite struct { // Tags A list of tags. Tags *TagList `json:"tags,omitempty"` }
IdentityWrite Request parameters for creating an identity.
type Image ¶
type Image struct { // Metadata This metadata is for resources that just exist, and don't require // any provisioning and health status, but benefit from a standarized // metadata format. Metadata externalRef0.StaticResourceMetadata `json:"metadata"` // Spec An image. Spec ImageSpec `json:"spec"` }
Image An image.
type ImageSpec ¶
type ImageSpec struct { // GpuDriver The GPU driver if installed. GpuDriver *GpuDriver `json:"gpuDriver,omitempty"` // SoftwareVersions Image preinstalled version version metadata. SoftwareVersions *SoftwareVersions `json:"softwareVersions,omitempty"` }
ImageSpec An image.
type ImagesResponse ¶
type ImagesResponse = Images
ImagesResponse A list of images that are compatible with this platform.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type KubernetesNameParameter ¶
type KubernetesNameParameter = string
KubernetesNameParameter A Kubernetes name. Must be a valid DNS containing only lower case characters, numbers or hyphens, start and end with a character or number, and be at most 63 characters in length.
type PostApiV1RegionsRegionIDIdentitiesJSONRequestBody ¶
type PostApiV1RegionsRegionIDIdentitiesJSONRequestBody = IdentityWrite
PostApiV1RegionsRegionIDIdentitiesJSONRequestBody defines body for PostApiV1RegionsRegionIDIdentities for application/json ContentType.
type PostApiV1RegionsRegionIDIdentitiesResponse ¶
type PostApiV1RegionsRegionIDIdentitiesResponse struct { Body []byte HTTPResponse *http.Response JSON201 *IdentityResponse JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON403 *externalRef0.ForbiddenResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParsePostApiV1RegionsRegionIDIdentitiesResponse ¶
func ParsePostApiV1RegionsRegionIDIdentitiesResponse(rsp *http.Response) (*PostApiV1RegionsRegionIDIdentitiesResponse, error)
ParsePostApiV1RegionsRegionIDIdentitiesResponse parses an HTTP response from a PostApiV1RegionsRegionIDIdentitiesWithResponse call
func (PostApiV1RegionsRegionIDIdentitiesResponse) Status ¶
func (r PostApiV1RegionsRegionIDIdentitiesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiV1RegionsRegionIDIdentitiesResponse) StatusCode ¶
func (r PostApiV1RegionsRegionIDIdentitiesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RegionIDParameter ¶
type RegionIDParameter = KubernetesNameParameter
RegionIDParameter A Kubernetes name. Must be a valid DNS containing only lower case characters, numbers or hyphens, start and end with a character or number, and be at most 63 characters in length.
type RegionRead ¶
type RegionRead struct { // Metadata Resource metadata valid for all reads. Metadata externalRef0.ResourceReadMetadata `json:"metadata"` // Spec Information about the region. Spec RegionSpec `json:"spec"` }
RegionRead A region.
type RegionSpec ¶
type RegionSpec struct { // Type The region's provider type. Type RegionType `json:"type"` }
RegionSpec Information about the region.
type RegionType ¶
type RegionType string
RegionType The region's provider type.
const (
Openstack RegionType = "openstack"
)
Defines values for RegionType.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ServerInterface ¶
type ServerInterface interface { // (GET /api/v1/regions) GetApiV1Regions(w http.ResponseWriter, r *http.Request) // (GET /api/v1/regions/{regionID}/flavors) GetApiV1RegionsRegionIDFlavors(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter) // (POST /api/v1/regions/{regionID}/identities) PostApiV1RegionsRegionIDIdentities(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter) // (DELETE /api/v1/regions/{regionID}/identities/{identityID}) DeleteApiV1RegionsRegionIDIdentitiesIdentityID(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter, identityID IdentityIDParameter) // (GET /api/v1/regions/{regionID}/images) GetApiV1RegionsRegionIDImages(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter) }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) DeleteApiV1RegionsRegionIDIdentitiesIdentityID ¶
func (siw *ServerInterfaceWrapper) DeleteApiV1RegionsRegionIDIdentitiesIdentityID(w http.ResponseWriter, r *http.Request)
DeleteApiV1RegionsRegionIDIdentitiesIdentityID operation middleware
func (*ServerInterfaceWrapper) GetApiV1Regions ¶
func (siw *ServerInterfaceWrapper) GetApiV1Regions(w http.ResponseWriter, r *http.Request)
GetApiV1Regions operation middleware
func (*ServerInterfaceWrapper) GetApiV1RegionsRegionIDFlavors ¶
func (siw *ServerInterfaceWrapper) GetApiV1RegionsRegionIDFlavors(w http.ResponseWriter, r *http.Request)
GetApiV1RegionsRegionIDFlavors operation middleware
func (*ServerInterfaceWrapper) GetApiV1RegionsRegionIDImages ¶
func (siw *ServerInterfaceWrapper) GetApiV1RegionsRegionIDImages(w http.ResponseWriter, r *http.Request)
GetApiV1RegionsRegionIDImages operation middleware
func (*ServerInterfaceWrapper) PostApiV1RegionsRegionIDIdentities ¶
func (siw *ServerInterfaceWrapper) PostApiV1RegionsRegionIDIdentities(w http.ResponseWriter, r *http.Request)
PostApiV1RegionsRegionIDIdentities operation middleware
type SoftwareVersions ¶
type SoftwareVersions struct { // Kubernetes A semantic version. Kubernetes *externalRef0.Semver `json:"kubernetes,omitempty"` }
SoftwareVersions Image preinstalled version version metadata.
type Tag ¶
type Tag struct { // Name A unique tag name. Name string `json:"name"` // Value An arbirary value, may be marshaled JSON for example. Value string `json:"value"` }
Tag A key value pair.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type Unimplemented ¶
type Unimplemented struct{}
func (Unimplemented) DeleteApiV1RegionsRegionIDIdentitiesIdentityID ¶
func (_ Unimplemented) DeleteApiV1RegionsRegionIDIdentitiesIdentityID(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter, identityID IdentityIDParameter)
(DELETE /api/v1/regions/{regionID}/identities/{identityID})
func (Unimplemented) GetApiV1Regions ¶
func (_ Unimplemented) GetApiV1Regions(w http.ResponseWriter, r *http.Request)
(GET /api/v1/regions)
func (Unimplemented) GetApiV1RegionsRegionIDFlavors ¶
func (_ Unimplemented) GetApiV1RegionsRegionIDFlavors(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter)
(GET /api/v1/regions/{regionID}/flavors)
func (Unimplemented) GetApiV1RegionsRegionIDImages ¶
func (_ Unimplemented) GetApiV1RegionsRegionIDImages(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter)
(GET /api/v1/regions/{regionID}/images)
func (Unimplemented) PostApiV1RegionsRegionIDIdentities ¶
func (_ Unimplemented) PostApiV1RegionsRegionIDIdentities(w http.ResponseWriter, r *http.Request, regionID RegionIDParameter)
(POST /api/v1/regions/{regionID}/identities)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error