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 NewGetApiV1OrganizationsOrganizationIDIdentitiesRequest(server string, organizationID OrganizationIDParameter) (*http.Request, error)
- func NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksRequest(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsRequest(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesRequest(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func NewGetApiV1OrganizationsOrganizationIDRegionsRequest(server string, organizationID OrganizationIDParameter) (*http.Request, error)
- func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksRequest(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksRequestWithBody(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesRequest(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesRequestWithBody(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type ChiServerOptions
- type Client
- func (c *Client) GetApiV1OrganizationsOrganizationIDIdentities(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) GetApiV1OrganizationsOrganizationIDRegions(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithBody(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithBody(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDIdentitiesWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*GetApiV1OrganizationsOrganizationIDIdentitiesResponse, error)
- func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse, ...)
- func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse, error)
- func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse, error)
- func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*GetApiV1OrganizationsOrganizationIDRegionsResponse, error)
- func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (...)
- func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (...)
- func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse, ...)
- func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse, ...)
- type ClientWithResponsesInterface
- type ExternalNetwork
- type ExternalNetworks
- type ExternalNetworksResponse
- type Flavor
- type FlavorSpec
- type Flavors
- type FlavorsResponse
- type GetApiV1OrganizationsOrganizationIDIdentitiesResponse
- type GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse
- type GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse
- type GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse
- type GetApiV1OrganizationsOrganizationIDRegionsResponse
- type GpuDriver
- type GpuSpec
- type GpuVendor
- type HttpRequestDoer
- type IdentitiesRead
- type IdentitiesResponse
- type IdentityIDParameter
- type IdentityRead
- type IdentityRequest
- type IdentityResponse
- type IdentitySpec
- type IdentitySpecOpenStack
- type IdentityWrite
- type IdentityWriteSpec
- type Image
- type ImageSpec
- type Images
- type ImagesResponse
- type InvalidParamFormatError
- type KubernetesNameParameter
- type MiddlewareFunc
- type OrganizationIDParameter
- type PhysicalNetworkRead
- type PhysicalNetworkRequest
- type PhysicalNetworkResponse
- type PhysicalNetworkSpec
- type PhysicalNetworkWrite
- type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksJSONRequestBody
- type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse
- type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesJSONRequestBody
- type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse
- type ProjectIDParameter
- 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) GetApiV1OrganizationsOrganizationIDIdentities(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks(w http.ResponseWriter, r *http.Request)
- type SoftwareVersions
- type Tag
- type TagList
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDIdentities(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter)
- func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDRegions(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter)
- func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, ...)
- func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, ...)
- func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, ...)
- func (_ Unimplemented) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, ...)
- func (_ Unimplemented) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, ...)
- 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 NewGetApiV1OrganizationsOrganizationIDIdentitiesRequest ¶ added in v0.1.19
func NewGetApiV1OrganizationsOrganizationIDIdentitiesRequest(server string, organizationID OrganizationIDParameter) (*http.Request, error)
NewGetApiV1OrganizationsOrganizationIDIdentitiesRequest generates requests for GetApiV1OrganizationsOrganizationIDIdentities
func NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksRequest ¶ added in v0.1.8
func NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksRequest(server string, organizationID OrganizationIDParameter, regionID RegionIDParameter) (*http.Request, error)
NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksRequest generates requests for GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks
func NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsRequest ¶ added in v0.1.8
func NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsRequest(server string, organizationID OrganizationIDParameter, regionID RegionIDParameter) (*http.Request, error)
NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsRequest generates requests for GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors
func NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesRequest ¶ added in v0.1.8
func NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesRequest(server string, organizationID OrganizationIDParameter, regionID RegionIDParameter) (*http.Request, error)
NewGetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesRequest generates requests for GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages
func NewGetApiV1OrganizationsOrganizationIDRegionsRequest ¶ added in v0.1.8
func NewGetApiV1OrganizationsOrganizationIDRegionsRequest(server string, organizationID OrganizationIDParameter) (*http.Request, error)
NewGetApiV1OrganizationsOrganizationIDRegionsRequest generates requests for GetApiV1OrganizationsOrganizationIDRegions
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksRequest ¶ added in v0.1.21
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksRequest(server string, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksJSONRequestBody) (*http.Request, error)
NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksRequest calls the generic PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks builder with application/json body
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksRequestWithBody ¶ added in v0.1.21
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksRequestWithBody(server string, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter, contentType string, body io.Reader) (*http.Request, error)
NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksRequestWithBody generates requests for PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks with any type of body
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesRequest ¶ added in v0.1.21
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesRequest(server string, organizationID OrganizationIDParameter, projectID ProjectIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesJSONRequestBody) (*http.Request, error)
NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesRequest calls the generic PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities builder with application/json body
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesRequestWithBody ¶ added in v0.1.21
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesRequestWithBody(server string, organizationID OrganizationIDParameter, projectID ProjectIDParameter, contentType string, body io.Reader) (*http.Request, error)
NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesRequestWithBody generates requests for PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities 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) GetApiV1OrganizationsOrganizationIDIdentities ¶ added in v0.1.19
func (c *Client) GetApiV1OrganizationsOrganizationIDIdentities(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV1OrganizationsOrganizationIDRegions ¶ added in v0.1.8
func (c *Client) GetApiV1OrganizationsOrganizationIDRegions(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks ¶ added in v0.1.8
func (c *Client) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks(ctx context.Context, organizationID OrganizationIDParameter, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors ¶ added in v0.1.8
func (c *Client) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors(ctx context.Context, organizationID OrganizationIDParameter, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages ¶ added in v0.1.8
func (c *Client) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages(ctx context.Context, organizationID OrganizationIDParameter, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities ¶ added in v0.1.21
func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks ¶ added in v0.1.21
func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithBody ¶ added in v0.1.21
func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithBody(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithBody ¶ added in v0.1.21
func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithBody(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetApiV1OrganizationsOrganizationIDIdentities request GetApiV1OrganizationsOrganizationIDIdentities(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithBody request with any body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithBody(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithBody request with any body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithBody(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV1OrganizationsOrganizationIDRegions request GetApiV1OrganizationsOrganizationIDRegions(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks request GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks(ctx context.Context, organizationID OrganizationIDParameter, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors request GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors(ctx context.Context, organizationID OrganizationIDParameter, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages request GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages(ctx context.Context, organizationID OrganizationIDParameter, 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) GetApiV1OrganizationsOrganizationIDIdentitiesWithResponse ¶ added in v0.1.19
func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDIdentitiesWithResponse(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDIdentitiesResponse, error)
GetApiV1OrganizationsOrganizationIDIdentitiesWithResponse request returning *GetApiV1OrganizationsOrganizationIDIdentitiesResponse
func (*ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksWithResponse ¶ added in v0.1.8
func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksWithResponse(ctx context.Context, organizationID OrganizationIDParameter, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse, error)
GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksWithResponse request returning *GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse
func (*ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsWithResponse ¶ added in v0.1.8
func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsWithResponse(ctx context.Context, organizationID OrganizationIDParameter, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse, error)
GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsWithResponse request returning *GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse
func (*ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesWithResponse ¶ added in v0.1.8
func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesWithResponse(ctx context.Context, organizationID OrganizationIDParameter, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse, error)
GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesWithResponse request returning *GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse
func (*ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsWithResponse ¶ added in v0.1.8
func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDRegionsWithResponse(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDRegionsResponse, error)
GetApiV1OrganizationsOrganizationIDRegionsWithResponse request returning *GetApiV1OrganizationsOrganizationIDRegionsResponse
func (*ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithBodyWithResponse ¶ added in v0.1.21
func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse, error)
PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithBodyWithResponse request with arbitrary body returning *PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse
func (*ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithResponse ¶ added in v0.1.21
func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse, error)
func (*ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithBodyWithResponse ¶ added in v0.1.21
func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse, error)
PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithBodyWithResponse request with arbitrary body returning *PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse
func (*ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithResponse ¶ added in v0.1.21
func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetApiV1OrganizationsOrganizationIDIdentitiesWithResponse request GetApiV1OrganizationsOrganizationIDIdentitiesWithResponse(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDIdentitiesResponse, error) // PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithBodyWithResponse request with any body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse, error) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse, error) // PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithBodyWithResponse request with any body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse, error) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse, error) // GetApiV1OrganizationsOrganizationIDRegionsWithResponse request GetApiV1OrganizationsOrganizationIDRegionsWithResponse(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDRegionsResponse, error) // GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksWithResponse request GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksWithResponse(ctx context.Context, organizationID OrganizationIDParameter, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse, error) // GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsWithResponse request GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsWithResponse(ctx context.Context, organizationID OrganizationIDParameter, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse, error) // GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesWithResponse request GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesWithResponse(ctx context.Context, organizationID OrganizationIDParameter, regionID RegionIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ExternalNetwork ¶ added in v0.1.3
type ExternalNetwork struct { // Id The resource ID. Id string `json:"id"` // Name The resource name. Name string `json:"name"` }
ExternalNetwork An Openstack external network.
type ExternalNetworks ¶ added in v0.1.3
type ExternalNetworks = []ExternalNetwork
ExternalNetworks A list of openstack external networks.
type ExternalNetworksResponse ¶ added in v0.1.3
type ExternalNetworksResponse = ExternalNetworks
ExternalNetworksResponse A list of openstack external networks.
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 { // CpuFamily A free form CPU family description e.g. model number, architecture. CpuFamily *string `json:"cpuFamily,omitempty"` // 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 GetApiV1OrganizationsOrganizationIDIdentitiesResponse ¶ added in v0.1.19
type GetApiV1OrganizationsOrganizationIDIdentitiesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *IdentitiesResponse JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON403 *externalRef0.ForbiddenResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParseGetApiV1OrganizationsOrganizationIDIdentitiesResponse ¶ added in v0.1.19
func ParseGetApiV1OrganizationsOrganizationIDIdentitiesResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationIDIdentitiesResponse, error)
ParseGetApiV1OrganizationsOrganizationIDIdentitiesResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationIDIdentitiesWithResponse call
func (GetApiV1OrganizationsOrganizationIDIdentitiesResponse) Status ¶ added in v0.1.19
func (r GetApiV1OrganizationsOrganizationIDIdentitiesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1OrganizationsOrganizationIDIdentitiesResponse) StatusCode ¶ added in v0.1.19
func (r GetApiV1OrganizationsOrganizationIDIdentitiesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse ¶ added in v0.1.8
type GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ExternalNetworksResponse JSON401 *externalRef0.UnauthorizedResponse JSON403 *externalRef0.ForbiddenResponse JSON404 *externalRef0.NotFoundResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParseGetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse ¶ added in v0.1.8
func ParseGetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse, error)
ParseGetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksWithResponse call
func (GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse) Status ¶ added in v0.1.8
Status returns HTTPResponse.Status
func (GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse) StatusCode ¶ added in v0.1.8
func (r GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse ¶ added in v0.1.8
type GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *FlavorsResponse JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParseGetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse ¶ added in v0.1.8
func ParseGetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse, error)
ParseGetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsWithResponse call
func (GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse) Status ¶ added in v0.1.8
func (r GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse) StatusCode ¶ added in v0.1.8
func (r GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse ¶ added in v0.1.8
type GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ImagesResponse JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParseGetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse ¶ added in v0.1.8
func ParseGetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse, error)
ParseGetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesWithResponse call
func (GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse) Status ¶ added in v0.1.8
func (r GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse) StatusCode ¶ added in v0.1.8
func (r GetApiV1OrganizationsOrganizationIDRegionsRegionIDImagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV1OrganizationsOrganizationIDRegionsResponse ¶ added in v0.1.8
type GetApiV1OrganizationsOrganizationIDRegionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *RegionsResponse JSON401 *externalRef0.UnauthorizedResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParseGetApiV1OrganizationsOrganizationIDRegionsResponse ¶ added in v0.1.8
func ParseGetApiV1OrganizationsOrganizationIDRegionsResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationIDRegionsResponse, error)
ParseGetApiV1OrganizationsOrganizationIDRegionsResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationIDRegionsWithResponse call
func (GetApiV1OrganizationsOrganizationIDRegionsResponse) Status ¶ added in v0.1.8
func (r GetApiV1OrganizationsOrganizationIDRegionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1OrganizationsOrganizationIDRegionsResponse) StatusCode ¶ added in v0.1.8
func (r GetApiV1OrganizationsOrganizationIDRegionsResponse) 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"` // Memory GPU memory in GiB. Memory int `json:"memory"` // 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 IdentitiesRead ¶ added in v0.1.19
type IdentitiesRead = []IdentityRead
IdentitiesRead A list of provider specific identities.
type IdentitiesResponse ¶ added in v0.1.19
type IdentitiesResponse = IdentitiesRead
IdentitiesResponse A list of provider specific identities.
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 externalRef0.ProjectScopedResourceReadMetadata `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 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"` // RegionId The region an identity is provisioned in. RegionId string `json:"regionId"` // Tags A list of tags. Tags *TagList `json:"tags,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,omitempty"` // CloudConfig A base64 encoded cloud config file. CloudConfig *string `json:"cloudConfig,omitempty"` // ProjectId Project identifier allocated for the infrastructure. ProjectId string `json:"projectId"` // UserId User identitifer allocated for the infrastructure. UserId string `json:"userId"` }
IdentitySpecOpenStack Everything an OpenStack client needs to function.
type IdentityWrite ¶
type IdentityWrite struct { // Metadata Resource metadata valid for all API resource reads and writes. Metadata externalRef0.ResourceWriteMetadata `json:"metadata"` // Spec Request parameters for creating an identity. Spec IdentityWriteSpec `json:"spec"` }
IdentityWrite An identity request.
type IdentityWriteSpec ¶ added in v0.1.18
type IdentityWriteSpec struct { // RegionId The region an identity is provisioned in. RegionId string `json:"regionId"` // Tags A list of tags. Tags *TagList `json:"tags,omitempty"` }
IdentityWriteSpec 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 OrganizationIDParameter ¶ added in v0.1.8
type OrganizationIDParameter = string
OrganizationIDParameter defines model for organizationIDParameter.
type PhysicalNetworkRead ¶ added in v0.1.18
type PhysicalNetworkRead struct { Metadata externalRef0.ProjectScopedResourceReadMetadata `json:"metadata"` // Spec A phyical network's specification. Spec PhysicalNetworkSpec `json:"spec"` }
PhysicalNetworkRead A physical network.
type PhysicalNetworkRequest ¶ added in v0.1.18
type PhysicalNetworkRequest = PhysicalNetworkWrite
PhysicalNetworkRequest A physical network request.
type PhysicalNetworkResponse ¶ added in v0.1.18
type PhysicalNetworkResponse = PhysicalNetworkRead
PhysicalNetworkResponse A physical network.
type PhysicalNetworkSpec ¶ added in v0.1.18
type PhysicalNetworkSpec struct { // Prefix An IPv4 address prefix. Prefix string `json:"prefix"` // Tags A list of tags. Tags *TagList `json:"tags,omitempty"` }
PhysicalNetworkSpec A phyical network's specification.
type PhysicalNetworkWrite ¶ added in v0.1.18
type PhysicalNetworkWrite struct { // Metadata Resource metadata valid for all API resource reads and writes. Metadata externalRef0.ResourceWriteMetadata `json:"metadata"` // Spec A phyical network's specification. Spec PhysicalNetworkSpec `json:"spec"` }
PhysicalNetworkWrite A physical network request.
type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksJSONRequestBody ¶ added in v0.1.21
type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksJSONRequestBody = PhysicalNetworkWrite
PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksJSONRequestBody defines body for PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks for application/json ContentType.
type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse ¶ added in v0.1.21
type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse struct { Body []byte HTTPResponse *http.Response JSON201 *PhysicalNetworkResponse JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON403 *externalRef0.ForbiddenResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParsePostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse ¶ added in v0.1.21
func ParsePostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse(rsp *http.Response) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse, error)
ParsePostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse parses an HTTP response from a PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksWithResponse call
func (PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse) Status ¶ added in v0.1.21
func (r PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse) StatusCode ¶ added in v0.1.21
func (r PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesJSONRequestBody ¶ added in v0.1.21
type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesJSONRequestBody = IdentityWrite
PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesJSONRequestBody defines body for PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities for application/json ContentType.
type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse ¶ added in v0.1.21
type PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse struct { Body []byte HTTPResponse *http.Response JSON201 *IdentityResponse JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON403 *externalRef0.ForbiddenResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParsePostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse ¶ added in v0.1.21
func ParsePostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse(rsp *http.Response) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse, error)
ParsePostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse parses an HTTP response from a PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesWithResponse call
func (PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse) Status ¶ added in v0.1.21
Status returns HTTPResponse.Status
func (PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse) StatusCode ¶ added in v0.1.21
func (r PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProjectIDParameter ¶ added in v0.1.9
type ProjectIDParameter = KubernetesNameParameter
ProjectIDParameter 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 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/organizations/{organizationID}/identities) GetApiV1OrganizationsOrganizationIDIdentities(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter) // (POST /api/v1/organizations/{organizationID}/projects/{projectID}/identities) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, projectID ProjectIDParameter) // (POST /api/v1/organizations/{organizationID}/projects/{projectID}/identities/{identityID}/physicalNetworks) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter) // (GET /api/v1/organizations/{organizationID}/regions) GetApiV1OrganizationsOrganizationIDRegions(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter) // (GET /api/v1/organizations/{organizationID}/regions/{regionID}/externalnetworks) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, regionID RegionIDParameter) // (GET /api/v1/organizations/{organizationID}/regions/{regionID}/flavors) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, regionID RegionIDParameter) // (GET /api/v1/organizations/{organizationID}/regions/{regionID}/images) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, 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) GetApiV1OrganizationsOrganizationIDIdentities ¶ added in v0.1.19
func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDIdentities(w http.ResponseWriter, r *http.Request)
GetApiV1OrganizationsOrganizationIDIdentities operation middleware
func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegions ¶ added in v0.1.8
func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegions(w http.ResponseWriter, r *http.Request)
GetApiV1OrganizationsOrganizationIDRegions operation middleware
func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks ¶ added in v0.1.8
func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks(w http.ResponseWriter, r *http.Request)
GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks operation middleware
func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors ¶ added in v0.1.8
func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors(w http.ResponseWriter, r *http.Request)
GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors operation middleware
func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages ¶ added in v0.1.8
func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages(w http.ResponseWriter, r *http.Request)
GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages operation middleware
func (*ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities ¶ added in v0.1.21
func (siw *ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities(w http.ResponseWriter, r *http.Request)
PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities operation middleware
func (*ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks ¶ added in v0.1.21
func (siw *ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks(w http.ResponseWriter, r *http.Request)
PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks 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 The value of the tag. Value string `json:"value"` }
Tag An arbitrary tag name and value.
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) GetApiV1OrganizationsOrganizationIDIdentities ¶ added in v0.1.19
func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDIdentities(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter)
(GET /api/v1/organizations/{organizationID}/identities)
func (Unimplemented) GetApiV1OrganizationsOrganizationIDRegions ¶ added in v0.1.8
func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDRegions(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter)
(GET /api/v1/organizations/{organizationID}/regions)
func (Unimplemented) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks ¶ added in v0.1.8
func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDRegionsRegionIDExternalnetworks(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, regionID RegionIDParameter)
(GET /api/v1/organizations/{organizationID}/regions/{regionID}/externalnetworks)
func (Unimplemented) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors ¶ added in v0.1.8
func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDRegionsRegionIDFlavors(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, regionID RegionIDParameter)
(GET /api/v1/organizations/{organizationID}/regions/{regionID}/flavors)
func (Unimplemented) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages ¶ added in v0.1.8
func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDRegionsRegionIDImages(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, regionID RegionIDParameter)
(GET /api/v1/organizations/{organizationID}/regions/{regionID}/images)
func (Unimplemented) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities ¶ added in v0.1.21
func (_ Unimplemented) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentities(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, projectID ProjectIDParameter)
(POST /api/v1/organizations/{organizationID}/projects/{projectID}/identities)
func (Unimplemented) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks ¶ added in v0.1.21
func (_ Unimplemented) PostApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDPhysicalNetworks(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, projectID ProjectIDParameter, identityID IdentityIDParameter)
(POST /api/v1/organizations/{organizationID}/projects/{projectID}/identities/{identityID}/physicalNetworks)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error