client

package
v0.0.0-...-c0b5b33 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildStorageImagesCreatePayload

func BuildStorageImagesCreatePayload(spinRegistryStorageImagesCreateBody string) (*spinregistry.Storage, error)

BuildStorageImagesCreatePayload builds the payload for the spin-registry storage_images_create endpoint from CLI flags.

func BuildStorageImagesDeletePayload

func BuildStorageImagesDeletePayload(spinRegistryStorageImagesDeleteBody string) (*spinregistry.StorageImagesDeletePayload, error)

BuildStorageImagesDeletePayload builds the payload for the spin-registry storage_images_delete endpoint from CLI flags.

func BuildStorageImagesGetPayload

func BuildStorageImagesGetPayload(spinRegistryStorageImagesGetBody string) (*spinregistry.StorageImagesGetPayload, error)

BuildStorageImagesGetPayload builds the payload for the spin-registry storage_images_get endpoint from CLI flags.

func BuildStorageImagesListPayload

func BuildStorageImagesListPayload(spinRegistryStorageImagesListBody string) (*spinregistry.StorageImagesListPayload, error)

BuildStorageImagesListPayload builds the payload for the spin-registry storage_images_list endpoint from CLI flags.

func BuildStorageVolumesCreatePayload

func BuildStorageVolumesCreatePayload(spinRegistryStorageVolumesCreateBody string) (*spinregistry.StorageVolumesCreatePayload, error)

BuildStorageVolumesCreatePayload builds the payload for the spin-registry storage_volumes_create endpoint from CLI flags.

func BuildStorageVolumesDeletePayload

func BuildStorageVolumesDeletePayload(spinRegistryStorageVolumesDeleteBody string) (*spinregistry.StorageVolumesDeletePayload, error)

BuildStorageVolumesDeletePayload builds the payload for the spin-registry storage_volumes_delete endpoint from CLI flags.

func BuildVMCreatePayload

func BuildVMCreatePayload(spinRegistryVMCreateBody string) (*spinregistry.UpdatedVM, error)

BuildVMCreatePayload builds the payload for the spin-registry vm_create endpoint from CLI flags.

func BuildVMDeletePayload

func BuildVMDeletePayload(spinRegistryVMDeleteID string) (*spinregistry.VMDeletePayload, error)

BuildVMDeletePayload builds the payload for the spin-registry vm_delete endpoint from CLI flags.

func BuildVMGetPayload

func BuildVMGetPayload(spinRegistryVMGetID string) (*spinregistry.VMGetPayload, error)

BuildVMGetPayload builds the payload for the spin-registry vm_get endpoint from CLI flags.

func BuildVMUpdatePayload

func BuildVMUpdatePayload(spinRegistryVMUpdateBody string, spinRegistryVMUpdateID string) (*spinregistry.UpdateVM, error)

BuildVMUpdatePayload builds the payload for the spin-registry vm_update endpoint from CLI flags.

func DecodeStorageImagesCreateResponse

func DecodeStorageImagesCreateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeStorageImagesCreateResponse returns a decoder for responses returned by the spin-registry storage_images_create endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeStorageImagesDeleteResponse

func DecodeStorageImagesDeleteResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeStorageImagesDeleteResponse returns a decoder for responses returned by the spin-registry storage_images_delete endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeStorageImagesGetResponse

func DecodeStorageImagesGetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeStorageImagesGetResponse returns a decoder for responses returned by the spin-registry storage_images_get endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeStorageImagesListResponse

func DecodeStorageImagesListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeStorageImagesListResponse returns a decoder for responses returned by the spin-registry storage_images_list endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeStorageVolumesCreateResponse

func DecodeStorageVolumesCreateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeStorageVolumesCreateResponse returns a decoder for responses returned by the spin-registry storage_volumes_create endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeStorageVolumesDeleteResponse

func DecodeStorageVolumesDeleteResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeStorageVolumesDeleteResponse returns a decoder for responses returned by the spin-registry storage_volumes_delete endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeStorageVolumesListResponse

func DecodeStorageVolumesListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeStorageVolumesListResponse returns a decoder for responses returned by the spin-registry storage_volumes_list endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeVMCreateResponse

func DecodeVMCreateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeVMCreateResponse returns a decoder for responses returned by the spin-registry vm_create endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeVMDeleteResponse

func DecodeVMDeleteResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeVMDeleteResponse returns a decoder for responses returned by the spin-registry vm_delete endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeVMGetResponse

func DecodeVMGetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeVMGetResponse returns a decoder for responses returned by the spin-registry vm_get endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeVMListResponse

func DecodeVMListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeVMListResponse returns a decoder for responses returned by the spin-registry vm_list endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeVMUpdateResponse

func DecodeVMUpdateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeVMUpdateResponse returns a decoder for responses returned by the spin-registry vm_update endpoint. restoreBody controls whether the response body should be restored after having been read.

func EncodeStorageImagesCreateRequest

func EncodeStorageImagesCreateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeStorageImagesCreateRequest returns an encoder for requests sent to the spin-registry storage_images_create server.

func EncodeStorageImagesDeleteRequest

func EncodeStorageImagesDeleteRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeStorageImagesDeleteRequest returns an encoder for requests sent to the spin-registry storage_images_delete server.

func EncodeStorageImagesGetRequest

func EncodeStorageImagesGetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeStorageImagesGetRequest returns an encoder for requests sent to the spin-registry storage_images_get server.

func EncodeStorageImagesListRequest

func EncodeStorageImagesListRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeStorageImagesListRequest returns an encoder for requests sent to the spin-registry storage_images_list server.

func EncodeStorageVolumesCreateRequest

func EncodeStorageVolumesCreateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeStorageVolumesCreateRequest returns an encoder for requests sent to the spin-registry storage_volumes_create server.

func EncodeStorageVolumesDeleteRequest

func EncodeStorageVolumesDeleteRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeStorageVolumesDeleteRequest returns an encoder for requests sent to the spin-registry storage_volumes_delete server.

func EncodeVMCreateRequest

func EncodeVMCreateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeVMCreateRequest returns an encoder for requests sent to the spin-registry vm_create server.

func EncodeVMUpdateRequest

func EncodeVMUpdateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeVMUpdateRequest returns an encoder for requests sent to the spin-registry vm_update server.

func NewStorageImagesCreateImageOK

func NewStorageImagesCreateImageOK(body *StorageImagesCreateResponseBody) *spinregistry.Image

NewStorageImagesCreateImageOK builds a "spin-registry" service "storage_images_create" endpoint result from a HTTP "OK" response.

func NewStorageImagesGetImageOK

func NewStorageImagesGetImageOK(body *StorageImagesGetResponseBody) *spinregistry.Image

NewStorageImagesGetImageOK builds a "spin-registry" service "storage_images_get" endpoint result from a HTTP "OK" response.

func NewVMGetUpdatedVMOK

func NewVMGetUpdatedVMOK(body *VMGetResponseBody) *spinregistry.UpdatedVM

NewVMGetUpdatedVMOK builds a "spin-registry" service "vm_get" endpoint result from a HTTP "OK" response.

func StorageImagesCreateSpinRegistryPath

func StorageImagesCreateSpinRegistryPath() string

StorageImagesCreateSpinRegistryPath returns the URL path to the spin-registry service storage_images_create HTTP endpoint.

func StorageImagesDeleteSpinRegistryPath

func StorageImagesDeleteSpinRegistryPath() string

StorageImagesDeleteSpinRegistryPath returns the URL path to the spin-registry service storage_images_delete HTTP endpoint.

func StorageImagesGetSpinRegistryPath

func StorageImagesGetSpinRegistryPath() string

StorageImagesGetSpinRegistryPath returns the URL path to the spin-registry service storage_images_get HTTP endpoint.

func StorageImagesListSpinRegistryPath

func StorageImagesListSpinRegistryPath() string

StorageImagesListSpinRegistryPath returns the URL path to the spin-registry service storage_images_list HTTP endpoint.

func StorageVolumesCreateSpinRegistryPath

func StorageVolumesCreateSpinRegistryPath() string

StorageVolumesCreateSpinRegistryPath returns the URL path to the spin-registry service storage_volumes_create HTTP endpoint.

func StorageVolumesDeleteSpinRegistryPath

func StorageVolumesDeleteSpinRegistryPath() string

StorageVolumesDeleteSpinRegistryPath returns the URL path to the spin-registry service storage_volumes_delete HTTP endpoint.

func StorageVolumesListSpinRegistryPath

func StorageVolumesListSpinRegistryPath() string

StorageVolumesListSpinRegistryPath returns the URL path to the spin-registry service storage_volumes_list HTTP endpoint.

func VMCreateSpinRegistryPath

func VMCreateSpinRegistryPath() string

VMCreateSpinRegistryPath returns the URL path to the spin-registry service vm_create HTTP endpoint.

func VMDeleteSpinRegistryPath

func VMDeleteSpinRegistryPath(id uint64) string

VMDeleteSpinRegistryPath returns the URL path to the spin-registry service vm_delete HTTP endpoint.

func VMGetSpinRegistryPath

func VMGetSpinRegistryPath(id uint64) string

VMGetSpinRegistryPath returns the URL path to the spin-registry service vm_get HTTP endpoint.

func VMListSpinRegistryPath

func VMListSpinRegistryPath() string

VMListSpinRegistryPath returns the URL path to the spin-registry service vm_list HTTP endpoint.

func VMUpdateSpinRegistryPath

func VMUpdateSpinRegistryPath(id uint64) string

VMUpdateSpinRegistryPath returns the URL path to the spin-registry service vm_update HTTP endpoint.

func ValidateImageResponseBody

func ValidateImageResponseBody(body *ImageResponseBody) (err error)

ValidateImageResponseBody runs the validations defined on ImageResponseBody

func ValidateStorageImagesCreateResponseBody

func ValidateStorageImagesCreateResponseBody(body *StorageImagesCreateResponseBody) (err error)

ValidateStorageImagesCreateResponseBody runs the validations defined on storage_images_create_response_body

func ValidateStorageImagesGetResponseBody

func ValidateStorageImagesGetResponseBody(body *StorageImagesGetResponseBody) (err error)

ValidateStorageImagesGetResponseBody runs the validations defined on storage_images_get_response_body

func ValidateUpdatedVMRequestBody

func ValidateUpdatedVMRequestBody(body *UpdatedVMRequestBody) (err error)

ValidateUpdatedVMRequestBody runs the validations defined on UpdatedVMRequestBody

func ValidateVMGetResponseBody

func ValidateVMGetResponseBody(body *VMGetResponseBody) (err error)

ValidateVMGetResponseBody runs the validations defined on vm_get_response_body

Types

type Client

type Client struct {
	// VMCreate Doer is the HTTP client used to make requests to the vm_create
	// endpoint.
	VMCreateDoer goahttp.Doer

	// VMUpdate Doer is the HTTP client used to make requests to the vm_update
	// endpoint.
	VMUpdateDoer goahttp.Doer

	// VMDelete Doer is the HTTP client used to make requests to the vm_delete
	// endpoint.
	VMDeleteDoer goahttp.Doer

	// VMGet Doer is the HTTP client used to make requests to the vm_get endpoint.
	VMGetDoer goahttp.Doer

	// VMList Doer is the HTTP client used to make requests to the vm_list endpoint.
	VMListDoer goahttp.Doer

	// StorageVolumesList Doer is the HTTP client used to make requests to the
	// storage_volumes_list endpoint.
	StorageVolumesListDoer goahttp.Doer

	// StorageVolumesCreate Doer is the HTTP client used to make requests to the
	// storage_volumes_create endpoint.
	StorageVolumesCreateDoer goahttp.Doer

	// StorageVolumesDelete Doer is the HTTP client used to make requests to the
	// storage_volumes_delete endpoint.
	StorageVolumesDeleteDoer goahttp.Doer

	// StorageImagesList Doer is the HTTP client used to make requests to the
	// storage_images_list endpoint.
	StorageImagesListDoer goahttp.Doer

	// StorageImagesCreate Doer is the HTTP client used to make requests to the
	// storage_images_create endpoint.
	StorageImagesCreateDoer goahttp.Doer

	// StorageImagesDelete Doer is the HTTP client used to make requests to the
	// storage_images_delete endpoint.
	StorageImagesDeleteDoer goahttp.Doer

	// StorageImagesGet Doer is the HTTP client used to make requests to the
	// storage_images_get endpoint.
	StorageImagesGetDoer goahttp.Doer

	// RestoreResponseBody controls whether the response bodies are reset after
	// decoding so they can be read again.
	RestoreResponseBody bool
	// contains filtered or unexported fields
}

Client lists the spin-registry service endpoint HTTP clients.

func NewClient

func NewClient(
	scheme string,
	host string,
	doer goahttp.Doer,
	enc func(*http.Request) goahttp.Encoder,
	dec func(*http.Response) goahttp.Decoder,
	restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the spin-registry service servers.

func (*Client) BuildStorageImagesCreateRequest

func (c *Client) BuildStorageImagesCreateRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildStorageImagesCreateRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "storage_images_create" endpoint

func (*Client) BuildStorageImagesDeleteRequest

func (c *Client) BuildStorageImagesDeleteRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildStorageImagesDeleteRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "storage_images_delete" endpoint

func (*Client) BuildStorageImagesGetRequest

func (c *Client) BuildStorageImagesGetRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildStorageImagesGetRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "storage_images_get" endpoint

func (*Client) BuildStorageImagesListRequest

func (c *Client) BuildStorageImagesListRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildStorageImagesListRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "storage_images_list" endpoint

func (*Client) BuildStorageVolumesCreateRequest

func (c *Client) BuildStorageVolumesCreateRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildStorageVolumesCreateRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "storage_volumes_create" endpoint

func (*Client) BuildStorageVolumesDeleteRequest

func (c *Client) BuildStorageVolumesDeleteRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildStorageVolumesDeleteRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "storage_volumes_delete" endpoint

func (*Client) BuildStorageVolumesListRequest

func (c *Client) BuildStorageVolumesListRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildStorageVolumesListRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "storage_volumes_list" endpoint

func (*Client) BuildVMCreateRequest

func (c *Client) BuildVMCreateRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildVMCreateRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "vm_create" endpoint

func (*Client) BuildVMDeleteRequest

func (c *Client) BuildVMDeleteRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildVMDeleteRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "vm_delete" endpoint

func (*Client) BuildVMGetRequest

func (c *Client) BuildVMGetRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildVMGetRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "vm_get" endpoint

func (*Client) BuildVMListRequest

func (c *Client) BuildVMListRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildVMListRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "vm_list" endpoint

func (*Client) BuildVMUpdateRequest

func (c *Client) BuildVMUpdateRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildVMUpdateRequest instantiates a HTTP request object with method and path set to call the "spin-registry" service "vm_update" endpoint

func (*Client) StorageImagesCreate

func (c *Client) StorageImagesCreate() goa.Endpoint

StorageImagesCreate returns an endpoint that makes HTTP requests to the spin-registry service storage_images_create server.

func (*Client) StorageImagesDelete

func (c *Client) StorageImagesDelete() goa.Endpoint

StorageImagesDelete returns an endpoint that makes HTTP requests to the spin-registry service storage_images_delete server.

func (*Client) StorageImagesGet

func (c *Client) StorageImagesGet() goa.Endpoint

StorageImagesGet returns an endpoint that makes HTTP requests to the spin-registry service storage_images_get server.

func (*Client) StorageImagesList

func (c *Client) StorageImagesList() goa.Endpoint

StorageImagesList returns an endpoint that makes HTTP requests to the spin-registry service storage_images_list server.

func (*Client) StorageVolumesCreate

func (c *Client) StorageVolumesCreate() goa.Endpoint

StorageVolumesCreate returns an endpoint that makes HTTP requests to the spin-registry service storage_volumes_create server.

func (*Client) StorageVolumesDelete

func (c *Client) StorageVolumesDelete() goa.Endpoint

StorageVolumesDelete returns an endpoint that makes HTTP requests to the spin-registry service storage_volumes_delete server.

func (*Client) StorageVolumesList

func (c *Client) StorageVolumesList() goa.Endpoint

StorageVolumesList returns an endpoint that makes HTTP requests to the spin-registry service storage_volumes_list server.

func (*Client) VMCreate

func (c *Client) VMCreate() goa.Endpoint

VMCreate returns an endpoint that makes HTTP requests to the spin-registry service vm_create server.

func (*Client) VMDelete

func (c *Client) VMDelete() goa.Endpoint

VMDelete returns an endpoint that makes HTTP requests to the spin-registry service vm_delete server.

func (*Client) VMGet

func (c *Client) VMGet() goa.Endpoint

VMGet returns an endpoint that makes HTTP requests to the spin-registry service vm_get server.

func (*Client) VMList

func (c *Client) VMList() goa.Endpoint

VMList returns an endpoint that makes HTTP requests to the spin-registry service vm_list server.

func (*Client) VMUpdate

func (c *Client) VMUpdate() goa.Endpoint

VMUpdate returns an endpoint that makes HTTP requests to the spin-registry service vm_update server.

type ImageRequestBody

type ImageRequestBody struct {
	// Image path
	Path string `form:"path" json:"path" xml:"path"`
	// Is this a cdrom image?
	Cdrom bool `form:"cdrom" json:"cdrom" xml:"cdrom"`
	// Volume name
	Volume *string `form:"volume,omitempty" json:"volume,omitempty" xml:"volume,omitempty"`
}

ImageRequestBody is used to define fields on request body types.

type ImageResponseBody

type ImageResponseBody struct {
	// Image path
	Path *string `form:"path,omitempty" json:"path,omitempty" xml:"path,omitempty"`
	// Is this a cdrom image?
	Cdrom *bool `form:"cdrom,omitempty" json:"cdrom,omitempty" xml:"cdrom,omitempty"`
	// Volume name
	Volume *string `form:"volume,omitempty" json:"volume,omitempty" xml:"volume,omitempty"`
}

ImageResponseBody is used to define fields on response body types.

type StorageImagesCreateRequestBody

type StorageImagesCreateRequestBody struct {
	// Volume name; required if image is not a cdrom
	Volume *string `form:"volume,omitempty" json:"volume,omitempty" xml:"volume,omitempty"`
	// Image filename, no `/` characters
	Image string `form:"image" json:"image" xml:"image"`
	// Image size (in gigabytes); required if image is not a cdrom
	ImageSize *uint `form:"image_size,omitempty" json:"image_size,omitempty" xml:"image_size,omitempty"`
	// Is this image a cdrom?
	Cdrom bool `form:"cdrom" json:"cdrom" xml:"cdrom"`
}

StorageImagesCreateRequestBody is the type of the "spin-registry" service "storage_images_create" endpoint HTTP request body.

func NewStorageImagesCreateRequestBody

func NewStorageImagesCreateRequestBody(p *spinregistry.Storage) *StorageImagesCreateRequestBody

NewStorageImagesCreateRequestBody builds the HTTP request body from the payload of the "storage_images_create" endpoint of the "spin-registry" service.

type StorageImagesCreateResponseBody

type StorageImagesCreateResponseBody struct {
	// Image path
	Path *string `form:"path,omitempty" json:"path,omitempty" xml:"path,omitempty"`
	// Is this a cdrom image?
	Cdrom *bool `form:"cdrom,omitempty" json:"cdrom,omitempty" xml:"cdrom,omitempty"`
	// Volume name
	Volume *string `form:"volume,omitempty" json:"volume,omitempty" xml:"volume,omitempty"`
}

StorageImagesCreateResponseBody is the type of the "spin-registry" service "storage_images_create" endpoint HTTP response body.

type StorageImagesDeleteRequestBody

type StorageImagesDeleteRequestBody struct {
	// name of volume
	VolumeName string `form:"volume_name" json:"volume_name" xml:"volume_name"`
	// name of image
	ImageName string `form:"image_name" json:"image_name" xml:"image_name"`
}

StorageImagesDeleteRequestBody is the type of the "spin-registry" service "storage_images_delete" endpoint HTTP request body.

func NewStorageImagesDeleteRequestBody

func NewStorageImagesDeleteRequestBody(p *spinregistry.StorageImagesDeletePayload) *StorageImagesDeleteRequestBody

NewStorageImagesDeleteRequestBody builds the HTTP request body from the payload of the "storage_images_delete" endpoint of the "spin-registry" service.

type StorageImagesGetRequestBody

type StorageImagesGetRequestBody struct {
	// name of volume
	VolumeName string `form:"volume_name" json:"volume_name" xml:"volume_name"`
	// name of image
	ImageName string `form:"image_name" json:"image_name" xml:"image_name"`
}

StorageImagesGetRequestBody is the type of the "spin-registry" service "storage_images_get" endpoint HTTP request body.

func NewStorageImagesGetRequestBody

func NewStorageImagesGetRequestBody(p *spinregistry.StorageImagesGetPayload) *StorageImagesGetRequestBody

NewStorageImagesGetRequestBody builds the HTTP request body from the payload of the "storage_images_get" endpoint of the "spin-registry" service.

type StorageImagesGetResponseBody

type StorageImagesGetResponseBody struct {
	// Image path
	Path *string `form:"path,omitempty" json:"path,omitempty" xml:"path,omitempty"`
	// Is this a cdrom image?
	Cdrom *bool `form:"cdrom,omitempty" json:"cdrom,omitempty" xml:"cdrom,omitempty"`
	// Volume name
	Volume *string `form:"volume,omitempty" json:"volume,omitempty" xml:"volume,omitempty"`
}

StorageImagesGetResponseBody is the type of the "spin-registry" service "storage_images_get" endpoint HTTP response body.

type StorageImagesListRequestBody

type StorageImagesListRequestBody struct {
	// name of volume to list images for
	VolumeName string `form:"volume_name" json:"volume_name" xml:"volume_name"`
}

StorageImagesListRequestBody is the type of the "spin-registry" service "storage_images_list" endpoint HTTP request body.

func NewStorageImagesListRequestBody

func NewStorageImagesListRequestBody(p *spinregistry.StorageImagesListPayload) *StorageImagesListRequestBody

NewStorageImagesListRequestBody builds the HTTP request body from the payload of the "storage_images_list" endpoint of the "spin-registry" service.

type StorageVolumesCreateRequestBody

type StorageVolumesCreateRequestBody struct {
	// name of volume
	Name string `form:"name" json:"name" xml:"name"`
	// path to volume
	Path string `form:"path" json:"path" xml:"path"`
}

StorageVolumesCreateRequestBody is the type of the "spin-registry" service "storage_volumes_create" endpoint HTTP request body.

func NewStorageVolumesCreateRequestBody

func NewStorageVolumesCreateRequestBody(p *spinregistry.StorageVolumesCreatePayload) *StorageVolumesCreateRequestBody

NewStorageVolumesCreateRequestBody builds the HTTP request body from the payload of the "storage_volumes_create" endpoint of the "spin-registry" service.

type StorageVolumesDeleteRequestBody

type StorageVolumesDeleteRequestBody struct {
	// name of volume
	Name string `form:"name" json:"name" xml:"name"`
}

StorageVolumesDeleteRequestBody is the type of the "spin-registry" service "storage_volumes_delete" endpoint HTTP request body.

func NewStorageVolumesDeleteRequestBody

func NewStorageVolumesDeleteRequestBody(p *spinregistry.StorageVolumesDeletePayload) *StorageVolumesDeleteRequestBody

NewStorageVolumesDeleteRequestBody builds the HTTP request body from the payload of the "storage_volumes_delete" endpoint of the "spin-registry" service.

type UpdatedVMRequestBody

type UpdatedVMRequestBody struct {
	// Image references
	Images []*ImageRequestBody `form:"images" json:"images" xml:"images"`
	// Name of VM; does not need to be unique
	Name string `form:"name" json:"name" xml:"name"`
	// CPU count
	Cpus uint `form:"cpus" json:"cpus" xml:"cpus"`
	// Memory (in megabytes)
	Memory uint `form:"memory" json:"memory" xml:"memory"`
}

UpdatedVMRequestBody is used to define fields on request body types.

type VMCreateRequestBody

type VMCreateRequestBody struct {
	// Image references
	Images []*ImageRequestBody `form:"images" json:"images" xml:"images"`
	// Name of VM; does not need to be unique
	Name string `form:"name" json:"name" xml:"name"`
	// CPU count
	Cpus uint `form:"cpus" json:"cpus" xml:"cpus"`
	// Memory (in megabytes)
	Memory uint `form:"memory" json:"memory" xml:"memory"`
}

VMCreateRequestBody is the type of the "spin-registry" service "vm_create" endpoint HTTP request body.

func NewVMCreateRequestBody

func NewVMCreateRequestBody(p *spinregistry.UpdatedVM) *VMCreateRequestBody

NewVMCreateRequestBody builds the HTTP request body from the payload of the "vm_create" endpoint of the "spin-registry" service.

type VMGetResponseBody

type VMGetResponseBody struct {
	// Image references
	Images []*ImageResponseBody `form:"images,omitempty" json:"images,omitempty" xml:"images,omitempty"`
	// Name of VM; does not need to be unique
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// CPU count
	Cpus *uint `form:"cpus,omitempty" json:"cpus,omitempty" xml:"cpus,omitempty"`
	// Memory (in megabytes)
	Memory *uint `form:"memory,omitempty" json:"memory,omitempty" xml:"memory,omitempty"`
}

VMGetResponseBody is the type of the "spin-registry" service "vm_get" endpoint HTTP response body.

type VMUpdateRequestBody

type VMUpdateRequestBody struct {
	// VM to publish
	VM *UpdatedVMRequestBody `form:"vm" json:"vm" xml:"vm"`
}

VMUpdateRequestBody is the type of the "spin-registry" service "vm_update" endpoint HTTP request body.

func NewVMUpdateRequestBody

func NewVMUpdateRequestBody(p *spinregistry.UpdateVM) *VMUpdateRequestBody

NewVMUpdateRequestBody builds the HTTP request body from the payload of the "vm_update" endpoint of the "spin-registry" service.

Jump to

Keyboard shortcuts

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