image_builder

package
v0.0.0-...-4263410 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package image_builder provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCloneComposeRequest

func NewCloneComposeRequest(server string, composeId openapi_types.UUID, body CloneComposeJSONRequestBody) (*http.Request, error)

NewCloneComposeRequest calls the generic CloneCompose builder with application/json body

func NewCloneComposeRequestWithBody

func NewCloneComposeRequestWithBody(server string, composeId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewCloneComposeRequestWithBody generates requests for CloneCompose with any type of body

func NewComposeImageRequest

func NewComposeImageRequest(server string, body ComposeImageJSONRequestBody) (*http.Request, error)

NewComposeImageRequest calls the generic ComposeImage builder with application/json body

func NewComposeImageRequestWithBody

func NewComposeImageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewComposeImageRequestWithBody generates requests for ComposeImage with any type of body

func NewDeleteComposeRequest

func NewDeleteComposeRequest(server string, composeId openapi_types.UUID) (*http.Request, error)

NewDeleteComposeRequest generates requests for DeleteCompose

func NewGetArchitecturesRequest

func NewGetArchitecturesRequest(server string, distribution string) (*http.Request, error)

NewGetArchitecturesRequest generates requests for GetArchitectures

func NewGetCloneStatusRequest

func NewGetCloneStatusRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetCloneStatusRequest generates requests for GetCloneStatus

func NewGetComposeClonesRequest

func NewGetComposeClonesRequest(server string, composeId openapi_types.UUID, params *GetComposeClonesParams) (*http.Request, error)

NewGetComposeClonesRequest generates requests for GetComposeClones

func NewGetComposeMetadataRequest

func NewGetComposeMetadataRequest(server string, composeId openapi_types.UUID) (*http.Request, error)

NewGetComposeMetadataRequest generates requests for GetComposeMetadata

func NewGetComposeStatusRequest

func NewGetComposeStatusRequest(server string, composeId openapi_types.UUID) (*http.Request, error)

NewGetComposeStatusRequest generates requests for GetComposeStatus

func NewGetComposesRequest

func NewGetComposesRequest(server string, params *GetComposesParams) (*http.Request, error)

NewGetComposesRequest generates requests for GetComposes

func NewGetDistributionsRequest

func NewGetDistributionsRequest(server string) (*http.Request, error)

NewGetDistributionsRequest generates requests for GetDistributions

func NewGetOpenapiJsonRequest

func NewGetOpenapiJsonRequest(server string) (*http.Request, error)

NewGetOpenapiJsonRequest generates requests for GetOpenapiJson

func NewGetPackagesRequest

func NewGetPackagesRequest(server string, params *GetPackagesParams) (*http.Request, error)

NewGetPackagesRequest generates requests for GetPackages

func NewGetReadinessRequest

func NewGetReadinessRequest(server string) (*http.Request, error)

NewGetReadinessRequest generates requests for GetReadiness

func NewGetVersionRequest

func NewGetVersionRequest(server string) (*http.Request, error)

NewGetVersionRequest generates requests for GetVersion

func NewImageBuilderClientWithUrl

func NewImageBuilderClientWithUrl(ctx context.Context, url string) (clients.ImageBuilder, error)

Types

type AWSEC2Clone

type AWSEC2Clone struct {
	// Region A region as described in
	// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions
	Region string `json:"region"`

	// ShareWithAccounts An array of AWS account IDs as described in
	// https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html
	ShareWithAccounts *[]string `json:"share_with_accounts,omitempty"`
	ShareWithSources  *[]string `json:"share_with_sources,omitempty"`
}

AWSEC2Clone defines model for AWSEC2Clone.

type AWSS3UploadRequestOptions

type AWSS3UploadRequestOptions = map[string]interface{}

AWSS3UploadRequestOptions defines model for AWSS3UploadRequestOptions.

type AWSS3UploadStatus

type AWSS3UploadStatus struct {
	Url string `json:"url"`
}

AWSS3UploadStatus defines model for AWSS3UploadStatus.

type AWSUploadRequestOptions

type AWSUploadRequestOptions struct {
	ShareWithAccounts *[]string `json:"share_with_accounts,omitempty"`
	ShareWithSources  *[]string `json:"share_with_sources,omitempty"`
}

AWSUploadRequestOptions defines model for AWSUploadRequestOptions.

type AWSUploadStatus

type AWSUploadStatus struct {
	Ami    string `json:"ami"`
	Region string `json:"region"`
}

AWSUploadStatus defines model for AWSUploadStatus.

type ArchitectureItem

type ArchitectureItem struct {
	Arch       string   `json:"arch"`
	ImageTypes []string `json:"image_types"`

	// Repositories Base repositories for the given distribution and architecture.
	Repositories []Repository `json:"repositories"`
}

ArchitectureItem defines model for ArchitectureItem.

type Architectures

type Architectures = []ArchitectureItem

Architectures defines model for Architectures.

type AzureUploadRequestOptions

type AzureUploadRequestOptions struct {
	// ImageName Name of the created image.
	// Must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens.
	// The total length is limited to 60 characters.
	ImageName *string `json:"image_name,omitempty"`

	// ResourceGroup Name of the resource group where the image should be uploaded.
	ResourceGroup string `json:"resource_group"`

	// SourceId ID of the source that will be used to resolve the tenant and subscription IDs.
	// Do not provide a tenant_id or subscription_id when providing a source_id.
	SourceId *string `json:"source_id,omitempty"`

	// SubscriptionId ID of subscription where the image should be uploaded.
	// When providing a subscription_id, also be sure to provide a tenant_id and do not include a source_id.
	SubscriptionId *string `json:"subscription_id,omitempty"`

	// TenantId ID of the tenant where the image should be uploaded. This link explains how
	// to find it in the Azure Portal:
	// https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-to-find-tenant
	// When providing a tenant_id, also be sure to provide a subscription_id and do not include a source_id.
	TenantId *string `json:"tenant_id,omitempty"`
}

AzureUploadRequestOptions defines model for AzureUploadRequestOptions.

type AzureUploadStatus

type AzureUploadStatus struct {
	ImageName string `json:"image_name"`
}

AzureUploadStatus defines model for AzureUploadStatus.

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) CloneCompose

func (c *Client) CloneCompose(ctx context.Context, composeId openapi_types.UUID, body CloneComposeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CloneComposeWithBody

func (c *Client) CloneComposeWithBody(ctx context.Context, composeId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ComposeImage

func (c *Client) ComposeImage(ctx context.Context, body ComposeImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ComposeImageWithBody

func (c *Client) ComposeImageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCompose

func (c *Client) DeleteCompose(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArchitectures

func (c *Client) GetArchitectures(ctx context.Context, distribution string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCloneStatus

func (c *Client) GetCloneStatus(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetComposeClones

func (c *Client) GetComposeClones(ctx context.Context, composeId openapi_types.UUID, params *GetComposeClonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetComposeMetadata

func (c *Client) GetComposeMetadata(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetComposeStatus

func (c *Client) GetComposeStatus(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetComposes

func (c *Client) GetComposes(ctx context.Context, params *GetComposesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDistributions

func (c *Client) GetDistributions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOpenapiJson

func (c *Client) GetOpenapiJson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPackages

func (c *Client) GetPackages(ctx context.Context, params *GetPackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetReadiness

func (c *Client) GetReadiness(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVersion

func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetArchitectures request
	GetArchitectures(ctx context.Context, distribution string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCloneStatus request
	GetCloneStatus(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ComposeImageWithBody request with any body
	ComposeImageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ComposeImage(ctx context.Context, body ComposeImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetComposes request
	GetComposes(ctx context.Context, params *GetComposesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCompose request
	DeleteCompose(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetComposeStatus request
	GetComposeStatus(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CloneComposeWithBody request with any body
	CloneComposeWithBody(ctx context.Context, composeId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CloneCompose(ctx context.Context, composeId openapi_types.UUID, body CloneComposeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetComposeClones request
	GetComposeClones(ctx context.Context, composeId openapi_types.UUID, params *GetComposeClonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetComposeMetadata request
	GetComposeMetadata(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDistributions request
	GetDistributions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOpenapiJson request
	GetOpenapiJson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPackages request
	GetPackages(ctx context.Context, params *GetPackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReadiness request
	GetReadiness(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVersion request
	GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) CloneComposeWithBodyWithResponse

func (c *ClientWithResponses) CloneComposeWithBodyWithResponse(ctx context.Context, composeId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloneComposeResponse, error)

CloneComposeWithBodyWithResponse request with arbitrary body returning *CloneComposeResponse

func (*ClientWithResponses) CloneComposeWithResponse

func (c *ClientWithResponses) CloneComposeWithResponse(ctx context.Context, composeId openapi_types.UUID, body CloneComposeJSONRequestBody, reqEditors ...RequestEditorFn) (*CloneComposeResponse, error)

func (*ClientWithResponses) ComposeImageWithBodyWithResponse

func (c *ClientWithResponses) ComposeImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ComposeImageResponse, error)

ComposeImageWithBodyWithResponse request with arbitrary body returning *ComposeImageResponse

func (*ClientWithResponses) ComposeImageWithResponse

func (c *ClientWithResponses) ComposeImageWithResponse(ctx context.Context, body ComposeImageJSONRequestBody, reqEditors ...RequestEditorFn) (*ComposeImageResponse, error)

func (*ClientWithResponses) DeleteComposeWithResponse

func (c *ClientWithResponses) DeleteComposeWithResponse(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteComposeResponse, error)

DeleteComposeWithResponse request returning *DeleteComposeResponse

func (*ClientWithResponses) GetArchitecturesWithResponse

func (c *ClientWithResponses) GetArchitecturesWithResponse(ctx context.Context, distribution string, reqEditors ...RequestEditorFn) (*GetArchitecturesResponse, error)

GetArchitecturesWithResponse request returning *GetArchitecturesResponse

func (*ClientWithResponses) GetCloneStatusWithResponse

func (c *ClientWithResponses) GetCloneStatusWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetCloneStatusResponse, error)

GetCloneStatusWithResponse request returning *GetCloneStatusResponse

func (*ClientWithResponses) GetComposeClonesWithResponse

func (c *ClientWithResponses) GetComposeClonesWithResponse(ctx context.Context, composeId openapi_types.UUID, params *GetComposeClonesParams, reqEditors ...RequestEditorFn) (*GetComposeClonesResponse, error)

GetComposeClonesWithResponse request returning *GetComposeClonesResponse

func (*ClientWithResponses) GetComposeMetadataWithResponse

func (c *ClientWithResponses) GetComposeMetadataWithResponse(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetComposeMetadataResponse, error)

GetComposeMetadataWithResponse request returning *GetComposeMetadataResponse

func (*ClientWithResponses) GetComposeStatusWithResponse

func (c *ClientWithResponses) GetComposeStatusWithResponse(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetComposeStatusResponse, error)

GetComposeStatusWithResponse request returning *GetComposeStatusResponse

func (*ClientWithResponses) GetComposesWithResponse

func (c *ClientWithResponses) GetComposesWithResponse(ctx context.Context, params *GetComposesParams, reqEditors ...RequestEditorFn) (*GetComposesResponse, error)

GetComposesWithResponse request returning *GetComposesResponse

func (*ClientWithResponses) GetDistributionsWithResponse

func (c *ClientWithResponses) GetDistributionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDistributionsResponse, error)

GetDistributionsWithResponse request returning *GetDistributionsResponse

func (*ClientWithResponses) GetOpenapiJsonWithResponse

func (c *ClientWithResponses) GetOpenapiJsonWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenapiJsonResponse, error)

GetOpenapiJsonWithResponse request returning *GetOpenapiJsonResponse

func (*ClientWithResponses) GetPackagesWithResponse

func (c *ClientWithResponses) GetPackagesWithResponse(ctx context.Context, params *GetPackagesParams, reqEditors ...RequestEditorFn) (*GetPackagesResponse, error)

GetPackagesWithResponse request returning *GetPackagesResponse

func (*ClientWithResponses) GetReadinessWithResponse

func (c *ClientWithResponses) GetReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadinessResponse, error)

GetReadinessWithResponse request returning *GetReadinessResponse

func (*ClientWithResponses) GetVersionWithResponse

func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)

GetVersionWithResponse request returning *GetVersionResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetArchitecturesWithResponse request
	GetArchitecturesWithResponse(ctx context.Context, distribution string, reqEditors ...RequestEditorFn) (*GetArchitecturesResponse, error)

	// GetCloneStatusWithResponse request
	GetCloneStatusWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetCloneStatusResponse, error)

	// ComposeImageWithBodyWithResponse request with any body
	ComposeImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ComposeImageResponse, error)

	ComposeImageWithResponse(ctx context.Context, body ComposeImageJSONRequestBody, reqEditors ...RequestEditorFn) (*ComposeImageResponse, error)

	// GetComposesWithResponse request
	GetComposesWithResponse(ctx context.Context, params *GetComposesParams, reqEditors ...RequestEditorFn) (*GetComposesResponse, error)

	// DeleteComposeWithResponse request
	DeleteComposeWithResponse(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteComposeResponse, error)

	// GetComposeStatusWithResponse request
	GetComposeStatusWithResponse(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetComposeStatusResponse, error)

	// CloneComposeWithBodyWithResponse request with any body
	CloneComposeWithBodyWithResponse(ctx context.Context, composeId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloneComposeResponse, error)

	CloneComposeWithResponse(ctx context.Context, composeId openapi_types.UUID, body CloneComposeJSONRequestBody, reqEditors ...RequestEditorFn) (*CloneComposeResponse, error)

	// GetComposeClonesWithResponse request
	GetComposeClonesWithResponse(ctx context.Context, composeId openapi_types.UUID, params *GetComposeClonesParams, reqEditors ...RequestEditorFn) (*GetComposeClonesResponse, error)

	// GetComposeMetadataWithResponse request
	GetComposeMetadataWithResponse(ctx context.Context, composeId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetComposeMetadataResponse, error)

	// GetDistributionsWithResponse request
	GetDistributionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDistributionsResponse, error)

	// GetOpenapiJsonWithResponse request
	GetOpenapiJsonWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenapiJsonResponse, error)

	// GetPackagesWithResponse request
	GetPackagesWithResponse(ctx context.Context, params *GetPackagesParams, reqEditors ...RequestEditorFn) (*GetPackagesResponse, error)

	// GetReadinessWithResponse request
	GetReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadinessResponse, error)

	// GetVersionWithResponse request
	GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CloneComposeJSONRequestBody

type CloneComposeJSONRequestBody = CloneRequest

CloneComposeJSONRequestBody defines body for CloneCompose for application/json ContentType.

type CloneComposeResponse

type CloneComposeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CloneResponse
}

func ParseCloneComposeResponse

func ParseCloneComposeResponse(rsp *http.Response) (*CloneComposeResponse, error)

ParseCloneComposeResponse parses an HTTP response from a CloneComposeWithResponse call

func (CloneComposeResponse) Status

func (r CloneComposeResponse) Status() string

Status returns HTTPResponse.Status

func (CloneComposeResponse) StatusCode

func (r CloneComposeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CloneRequest

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

CloneRequest defines model for CloneRequest.

func (CloneRequest) AsAWSEC2Clone

func (t CloneRequest) AsAWSEC2Clone() (AWSEC2Clone, error)

AsAWSEC2Clone returns the union data inside the CloneRequest as a AWSEC2Clone

func (*CloneRequest) FromAWSEC2Clone

func (t *CloneRequest) FromAWSEC2Clone(v AWSEC2Clone) error

FromAWSEC2Clone overwrites any union data inside the CloneRequest as the provided AWSEC2Clone

func (CloneRequest) MarshalJSON

func (t CloneRequest) MarshalJSON() ([]byte, error)

func (*CloneRequest) MergeAWSEC2Clone

func (t *CloneRequest) MergeAWSEC2Clone(v AWSEC2Clone) error

MergeAWSEC2Clone performs a merge with any union data inside the CloneRequest, using the provided AWSEC2Clone

func (*CloneRequest) UnmarshalJSON

func (t *CloneRequest) UnmarshalJSON(b []byte) error

type CloneResponse

type CloneResponse struct {
	Id openapi_types.UUID `json:"id"`
}

CloneResponse defines model for CloneResponse.

type ClonesResponse

type ClonesResponse struct {
	Data  []ClonesResponseItem `json:"data"`
	Links struct {
		First string `json:"first"`
		Last  string `json:"last"`
	} `json:"links"`
	Meta struct {
		Count int `json:"count"`
	} `json:"meta"`
}

ClonesResponse defines model for ClonesResponse.

type ClonesResponseItem

type ClonesResponseItem struct {
	CreatedAt string             `json:"created_at"`
	Id        openapi_types.UUID `json:"id"`
	Request   interface{}        `json:"request"`
}

ClonesResponseItem defines model for ClonesResponseItem.

type ComposeImageJSONRequestBody

type ComposeImageJSONRequestBody = ComposeRequest

ComposeImageJSONRequestBody defines body for ComposeImage for application/json ContentType.

type ComposeImageResponse

type ComposeImageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ComposeResponse
	JSON400      *HTTPErrorList
}

func ParseComposeImageResponse

func ParseComposeImageResponse(rsp *http.Response) (*ComposeImageResponse, error)

ParseComposeImageResponse parses an HTTP response from a ComposeImageWithResponse call

func (ComposeImageResponse) Status

func (r ComposeImageResponse) Status() string

Status returns HTTPResponse.Status

func (ComposeImageResponse) StatusCode

func (r ComposeImageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ComposeMetadata

type ComposeMetadata struct {
	// OstreeCommit ID (hash) of the built commit
	OstreeCommit *string `json:"ostree_commit,omitempty"`

	// Packages Package list including NEVRA
	Packages *[]PackageMetadata `json:"packages,omitempty"`
}

ComposeMetadata defines model for ComposeMetadata.

type ComposeRequest

type ComposeRequest struct {
	Customizations   *Customizations `json:"customizations,omitempty"`
	Distribution     Distributions   `json:"distribution"`
	ImageDescription *string         `json:"image_description,omitempty"`
	ImageName        *string         `json:"image_name,omitempty"`

	// ImageRequests Array of exactly one image request. Having more image requests in one compose is currently not supported.
	ImageRequests []ImageRequest `json:"image_requests"`
}

ComposeRequest defines model for ComposeRequest.

type ComposeResponse

type ComposeResponse struct {
	Id openapi_types.UUID `json:"id"`
}

ComposeResponse defines model for ComposeResponse.

type ComposeStatus

type ComposeStatus struct {
	ImageStatus ImageStatus    `json:"image_status"`
	Request     ComposeRequest `json:"request"`
}

ComposeStatus defines model for ComposeStatus.

type ComposeStatusError

type ComposeStatusError struct {
	Details *interface{} `json:"details,omitempty"`
	Id      int          `json:"id"`
	Reason  string       `json:"reason"`
}

ComposeStatusError defines model for ComposeStatusError.

type ComposesResponse

type ComposesResponse struct {
	Data  []ComposesResponseItem `json:"data"`
	Links struct {
		First string `json:"first"`
		Last  string `json:"last"`
	} `json:"links"`
	Meta struct {
		Count int `json:"count"`
	} `json:"meta"`
}

ComposesResponse defines model for ComposesResponse.

type ComposesResponseItem

type ComposesResponseItem struct {
	CreatedAt string             `json:"created_at"`
	Id        openapi_types.UUID `json:"id"`
	ImageName *string            `json:"image_name,omitempty"`
	Request   interface{}        `json:"request"`
}

ComposesResponseItem defines model for ComposesResponseItem.

type CustomRepository

type CustomRepository struct {
	Baseurl      *[]string `json:"baseurl,omitempty"`
	CheckGpg     *bool     `json:"check_gpg,omitempty"`
	CheckRepoGpg *bool     `json:"check_repo_gpg,omitempty"`
	Enabled      *bool     `json:"enabled,omitempty"`
	Filename     *string   `json:"filename,omitempty"`

	// Gpgkey GPG key used to sign packages in this repository. Can be a gpg key or a URL
	Gpgkey     *[]string `json:"gpgkey,omitempty"`
	Id         string    `json:"id"`
	Metalink   *string   `json:"metalink,omitempty"`
	Mirrorlist *string   `json:"mirrorlist,omitempty"`
	Name       *string   `json:"name,omitempty"`
	Priority   *int      `json:"priority,omitempty"`
	SslVerify  *bool     `json:"ssl_verify,omitempty"`
}

CustomRepository Repository configuration for custom repositories. At least one of the 'baseurl', 'mirrorlist', 'metalink' properties must be specified. If more of them are specified, the order of precedence is the same as listed above. Id is required.

type Customizations

type Customizations struct {
	CustomRepositories  *[]CustomRepository `json:"custom_repositories,omitempty"`
	Filesystem          *[]Filesystem       `json:"filesystem,omitempty"`
	Openscap            *OpenSCAP           `json:"openscap,omitempty"`
	Packages            *[]string           `json:"packages,omitempty"`
	PayloadRepositories *[]Repository       `json:"payload_repositories,omitempty"`
	Subscription        *Subscription       `json:"subscription,omitempty"`

	// Users list of users that a customer can add, also specifying their respective groups and SSH keys
	Users *[]User `json:"users,omitempty"`
}

Customizations defines model for Customizations.

type DeleteComposeResponse

type DeleteComposeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteComposeResponse

func ParseDeleteComposeResponse(rsp *http.Response) (*DeleteComposeResponse, error)

ParseDeleteComposeResponse parses an HTTP response from a DeleteComposeWithResponse call

func (DeleteComposeResponse) Status

func (r DeleteComposeResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteComposeResponse) StatusCode

func (r DeleteComposeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DistributionItem

type DistributionItem struct {
	Description string `json:"description"`
	Name        string `json:"name"`
}

DistributionItem defines model for DistributionItem.

type Distributions

type Distributions string

Distributions defines model for Distributions.

const (
	Centos8      Distributions = "centos-8"
	Centos9      Distributions = "centos-9"
	Fedora37     Distributions = "fedora-37"
	Fedora38     Distributions = "fedora-38"
	Fedora39     Distributions = "fedora-39"
	Rhel8        Distributions = "rhel-8"
	Rhel84       Distributions = "rhel-84"
	Rhel85       Distributions = "rhel-85"
	Rhel86       Distributions = "rhel-86"
	Rhel87       Distributions = "rhel-87"
	Rhel88       Distributions = "rhel-88"
	Rhel8Nightly Distributions = "rhel-8-nightly"
	Rhel9        Distributions = "rhel-9"
	Rhel90       Distributions = "rhel-90"
	Rhel91       Distributions = "rhel-91"
	Rhel92       Distributions = "rhel-92"
	Rhel9Nightly Distributions = "rhel-9-nightly"
)

Defines values for Distributions.

type DistributionsResponse

type DistributionsResponse = []DistributionItem

DistributionsResponse defines model for DistributionsResponse.

type Filesystem

type Filesystem struct {
	MinSize    uint64 `json:"min_size"`
	Mountpoint string `json:"mountpoint"`
}

Filesystem defines model for Filesystem.

type GCPUploadRequestOptions

type GCPUploadRequestOptions struct {
	// ShareWithAccounts List of valid Google accounts to share the imported Compute Node image with.
	// Each string must contain a specifier of the account type. Valid formats are:
	//   - 'user:{emailid}': An email address that represents a specific
	//     Google account. For example, 'alice@example.com'.
	//   - 'serviceAccount:{emailid}': An email address that represents a
	//     service account. For example, 'my-other-app@appspot.gserviceaccount.com'.
	//   - 'group:{emailid}': An email address that represents a Google group.
	//     For example, 'admins@example.com'.
	//   - 'domain:{domain}': The G Suite domain (primary) that represents all
	//     the users of that domain. For example, 'google.com' or 'example.com'.
	//     If not specified, the imported Compute Node image is not shared with any
	//     account.
	ShareWithAccounts []string `json:"share_with_accounts"`
}

GCPUploadRequestOptions defines model for GCPUploadRequestOptions.

type GCPUploadStatus

type GCPUploadStatus struct {
	ImageName string `json:"image_name"`
	ProjectId string `json:"project_id"`
}

GCPUploadStatus defines model for GCPUploadStatus.

type GetArchitecturesResponse

type GetArchitecturesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Architectures
}

func ParseGetArchitecturesResponse

func ParseGetArchitecturesResponse(rsp *http.Response) (*GetArchitecturesResponse, error)

ParseGetArchitecturesResponse parses an HTTP response from a GetArchitecturesWithResponse call

func (GetArchitecturesResponse) Status

func (r GetArchitecturesResponse) Status() string

Status returns HTTPResponse.Status

func (GetArchitecturesResponse) StatusCode

func (r GetArchitecturesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCloneStatusResponse

type GetCloneStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UploadStatus
}

func ParseGetCloneStatusResponse

func ParseGetCloneStatusResponse(rsp *http.Response) (*GetCloneStatusResponse, error)

ParseGetCloneStatusResponse parses an HTTP response from a GetCloneStatusWithResponse call

func (GetCloneStatusResponse) Status

func (r GetCloneStatusResponse) Status() string

Status returns HTTPResponse.Status

func (GetCloneStatusResponse) StatusCode

func (r GetCloneStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetComposeClonesParams

type GetComposeClonesParams struct {
	// Limit max amount of clones, default 100
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset clones page offset, default 0
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}

GetComposeClonesParams defines parameters for GetComposeClones.

type GetComposeClonesResponse

type GetComposeClonesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClonesResponse
}

func ParseGetComposeClonesResponse

func ParseGetComposeClonesResponse(rsp *http.Response) (*GetComposeClonesResponse, error)

ParseGetComposeClonesResponse parses an HTTP response from a GetComposeClonesWithResponse call

func (GetComposeClonesResponse) Status

func (r GetComposeClonesResponse) Status() string

Status returns HTTPResponse.Status

func (GetComposeClonesResponse) StatusCode

func (r GetComposeClonesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetComposeMetadataResponse

type GetComposeMetadataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ComposeMetadata
}

func ParseGetComposeMetadataResponse

func ParseGetComposeMetadataResponse(rsp *http.Response) (*GetComposeMetadataResponse, error)

ParseGetComposeMetadataResponse parses an HTTP response from a GetComposeMetadataWithResponse call

func (GetComposeMetadataResponse) Status

Status returns HTTPResponse.Status

func (GetComposeMetadataResponse) StatusCode

func (r GetComposeMetadataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetComposeStatusResponse

type GetComposeStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ComposeStatus
}

func ParseGetComposeStatusResponse

func ParseGetComposeStatusResponse(rsp *http.Response) (*GetComposeStatusResponse, error)

ParseGetComposeStatusResponse parses an HTTP response from a GetComposeStatusWithResponse call

func (GetComposeStatusResponse) Status

func (r GetComposeStatusResponse) Status() string

Status returns HTTPResponse.Status

func (GetComposeStatusResponse) StatusCode

func (r GetComposeStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetComposesParams

type GetComposesParams struct {
	// Limit max amount of composes, default 100
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset composes page offset, default 0
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}

GetComposesParams defines parameters for GetComposes.

type GetComposesResponse

type GetComposesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ComposesResponse
}

func ParseGetComposesResponse

func ParseGetComposesResponse(rsp *http.Response) (*GetComposesResponse, error)

ParseGetComposesResponse parses an HTTP response from a GetComposesWithResponse call

func (GetComposesResponse) Status

func (r GetComposesResponse) Status() string

Status returns HTTPResponse.Status

func (GetComposesResponse) StatusCode

func (r GetComposesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDistributionsResponse

type GetDistributionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DistributionsResponse
}

func ParseGetDistributionsResponse

func ParseGetDistributionsResponse(rsp *http.Response) (*GetDistributionsResponse, error)

ParseGetDistributionsResponse parses an HTTP response from a GetDistributionsWithResponse call

func (GetDistributionsResponse) Status

func (r GetDistributionsResponse) Status() string

Status returns HTTPResponse.Status

func (GetDistributionsResponse) StatusCode

func (r GetDistributionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOpenapiJsonResponse

type GetOpenapiJsonResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
}

func ParseGetOpenapiJsonResponse

func ParseGetOpenapiJsonResponse(rsp *http.Response) (*GetOpenapiJsonResponse, error)

ParseGetOpenapiJsonResponse parses an HTTP response from a GetOpenapiJsonWithResponse call

func (GetOpenapiJsonResponse) Status

func (r GetOpenapiJsonResponse) Status() string

Status returns HTTPResponse.Status

func (GetOpenapiJsonResponse) StatusCode

func (r GetOpenapiJsonResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPackagesParams

type GetPackagesParams struct {
	// Distribution distribution to look up packages for
	Distribution Distributions `form:"distribution" json:"distribution"`

	// Architecture architecture to look up packages for
	Architecture GetPackagesParamsArchitecture `form:"architecture" json:"architecture"`

	// Search packages to look for
	Search string `form:"search" json:"search"`

	// Limit max amount of packages, default 100
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset packages page offset, default 0
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}

GetPackagesParams defines parameters for GetPackages.

type GetPackagesParamsArchitecture

type GetPackagesParamsArchitecture string

GetPackagesParamsArchitecture defines parameters for GetPackages.

const (
	GetPackagesParamsArchitectureAarch64 GetPackagesParamsArchitecture = "aarch64"
	GetPackagesParamsArchitectureX8664   GetPackagesParamsArchitecture = "x86_64"
)

Defines values for GetPackagesParamsArchitecture.

type GetPackagesResponse

type GetPackagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PackagesResponse
}

func ParseGetPackagesResponse

func ParseGetPackagesResponse(rsp *http.Response) (*GetPackagesResponse, error)

ParseGetPackagesResponse parses an HTTP response from a GetPackagesWithResponse call

func (GetPackagesResponse) Status

func (r GetPackagesResponse) Status() string

Status returns HTTPResponse.Status

func (GetPackagesResponse) StatusCode

func (r GetPackagesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetReadinessResponse

type GetReadinessResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Readiness
}

func ParseGetReadinessResponse

func ParseGetReadinessResponse(rsp *http.Response) (*GetReadinessResponse, error)

ParseGetReadinessResponse parses an HTTP response from a GetReadinessWithResponse call

func (GetReadinessResponse) Status

func (r GetReadinessResponse) Status() string

Status returns HTTPResponse.Status

func (GetReadinessResponse) StatusCode

func (r GetReadinessResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVersionResponse

type GetVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Version
}

func ParseGetVersionResponse

func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error)

ParseGetVersionResponse parses an HTTP response from a GetVersionWithResponse call

func (GetVersionResponse) Status

func (r GetVersionResponse) Status() string

Status returns HTTPResponse.Status

func (GetVersionResponse) StatusCode

func (r GetVersionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HTTPError

type HTTPError struct {
	Detail string `json:"detail"`
	Title  string `json:"title"`
}

HTTPError defines model for HTTPError.

type HTTPErrorList

type HTTPErrorList struct {
	Errors []HTTPError `json:"errors"`
}

HTTPErrorList defines model for HTTPErrorList.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ImageRequest

type ImageRequest struct {
	// Architecture CPU architecture of the image, x86_64 and aarch64 are currently supported.
	Architecture  ImageRequestArchitecture `json:"architecture"`
	ImageType     ImageTypes               `json:"image_type"`
	Ostree        *OSTree                  `json:"ostree,omitempty"`
	UploadRequest UploadRequest            `json:"upload_request"`
}

ImageRequest defines model for ImageRequest.

type ImageRequestArchitecture

type ImageRequestArchitecture string

ImageRequestArchitecture CPU architecture of the image, x86_64 and aarch64 are currently supported.

const (
	ImageRequestArchitectureAarch64 ImageRequestArchitecture = "aarch64"
	ImageRequestArchitectureX8664   ImageRequestArchitecture = "x86_64"
)

Defines values for ImageRequestArchitecture.

type ImageStatus

type ImageStatus struct {
	Error        *ComposeStatusError `json:"error,omitempty"`
	Status       ImageStatusStatus   `json:"status"`
	UploadStatus *UploadStatus       `json:"upload_status,omitempty"`
}

ImageStatus defines model for ImageStatus.

type ImageStatusStatus

type ImageStatusStatus string

ImageStatusStatus defines model for ImageStatus.Status.

const (
	ImageStatusStatusBuilding    ImageStatusStatus = "building"
	ImageStatusStatusFailure     ImageStatusStatus = "failure"
	ImageStatusStatusPending     ImageStatusStatus = "pending"
	ImageStatusStatusRegistering ImageStatusStatus = "registering"
	ImageStatusStatusSuccess     ImageStatusStatus = "success"
	ImageStatusStatusUploading   ImageStatusStatus = "uploading"
)

Defines values for ImageStatusStatus.

type ImageTypes

type ImageTypes string

ImageTypes defines model for ImageTypes.

const (
	ImageTypesAmi               ImageTypes = "ami"
	ImageTypesAws               ImageTypes = "aws"
	ImageTypesAzure             ImageTypes = "azure"
	ImageTypesEdgeCommit        ImageTypes = "edge-commit"
	ImageTypesEdgeInstaller     ImageTypes = "edge-installer"
	ImageTypesGcp               ImageTypes = "gcp"
	ImageTypesGuestImage        ImageTypes = "guest-image"
	ImageTypesImageInstaller    ImageTypes = "image-installer"
	ImageTypesRhelEdgeCommit    ImageTypes = "rhel-edge-commit"
	ImageTypesRhelEdgeInstaller ImageTypes = "rhel-edge-installer"
	ImageTypesVhd               ImageTypes = "vhd"
	ImageTypesVsphere           ImageTypes = "vsphere"
	ImageTypesVsphereOva        ImageTypes = "vsphere-ova"
)

Defines values for ImageTypes.

type OSTree

type OSTree struct {
	// Contenturl A URL which, if set, is used for fetching content. Implies that `url` is set as well,
	// which will be used for metadata only.
	Contenturl *string `json:"contenturl,omitempty"`

	// Parent Can be either a commit (example: 02604b2da6e954bd34b8b82a835e5a77d2b60ffa), or a branch-like reference (example: rhel/8/x86_64/edge)
	Parent *string `json:"parent,omitempty"`
	Ref    *string `json:"ref,omitempty"`

	// Rhsm Determines whether a valid subscription manager (candlepin) identity is required to
	// access this repository. Consumer certificates will be used as client certificates when
	// fetching metadata and content.
	Rhsm *bool   `json:"rhsm,omitempty"`
	Url  *string `json:"url,omitempty"`
}

OSTree defines model for OSTree.

type OpenSCAP

type OpenSCAP struct {
	ProfileId string `json:"profile_id"`
}

OpenSCAP defines model for OpenSCAP.

type Package

type Package struct {
	Name    string `json:"name"`
	Summary string `json:"summary"`
}

Package defines model for Package.

type PackageMetadata

type PackageMetadata struct {
	Arch      string  `json:"arch"`
	Epoch     *string `json:"epoch,omitempty"`
	Name      string  `json:"name"`
	Release   string  `json:"release"`
	Sigmd5    string  `json:"sigmd5"`
	Signature *string `json:"signature,omitempty"`
	Type      string  `json:"type"`
	Version   string  `json:"version"`
}

PackageMetadata defines model for PackageMetadata.

type PackagesResponse

type PackagesResponse struct {
	Data  []Package `json:"data"`
	Links struct {
		First string `json:"first"`
		Last  string `json:"last"`
	} `json:"links"`
	Meta struct {
		Count int `json:"count"`
	} `json:"meta"`
}

PackagesResponse defines model for PackagesResponse.

type Readiness

type Readiness struct {
	Readiness string `json:"readiness"`
}

Readiness defines model for Readiness.

type Repository

type Repository struct {
	Baseurl  *string `json:"baseurl,omitempty"`
	CheckGpg *bool   `json:"check_gpg,omitempty"`

	// CheckRepoGpg Enables gpg verification of the repository metadata
	CheckRepoGpg *bool   `json:"check_repo_gpg,omitempty"`
	Gpgkey       *string `json:"gpgkey,omitempty"`
	IgnoreSsl    *bool   `json:"ignore_ssl,omitempty"`
	Metalink     *string `json:"metalink,omitempty"`
	Mirrorlist   *string `json:"mirrorlist,omitempty"`
	Rhsm         bool    `json:"rhsm"`
}

Repository defines model for Repository.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Subscription

type Subscription struct {
	ActivationKey string `json:"activation-key"`
	BaseUrl       string `json:"base-url"`
	Insights      bool   `json:"insights"`
	Organization  int    `json:"organization"`

	// Rhc Optional flag to use rhc to register the system, which also always enables Insights.
	Rhc       *bool  `json:"rhc,omitempty"`
	ServerUrl string `json:"server-url"`
}

Subscription defines model for Subscription.

type UploadRequest

type UploadRequest struct {
	Options UploadRequest_Options `json:"options"`
	Type    UploadTypes           `json:"type"`
}

UploadRequest defines model for UploadRequest.

type UploadRequest_Options

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

UploadRequest_Options defines model for UploadRequest.Options.

func (UploadRequest_Options) AsAWSS3UploadRequestOptions

func (t UploadRequest_Options) AsAWSS3UploadRequestOptions() (AWSS3UploadRequestOptions, error)

AsAWSS3UploadRequestOptions returns the union data inside the UploadRequest_Options as a AWSS3UploadRequestOptions

func (UploadRequest_Options) AsAWSUploadRequestOptions

func (t UploadRequest_Options) AsAWSUploadRequestOptions() (AWSUploadRequestOptions, error)

AsAWSUploadRequestOptions returns the union data inside the UploadRequest_Options as a AWSUploadRequestOptions

func (UploadRequest_Options) AsAzureUploadRequestOptions

func (t UploadRequest_Options) AsAzureUploadRequestOptions() (AzureUploadRequestOptions, error)

AsAzureUploadRequestOptions returns the union data inside the UploadRequest_Options as a AzureUploadRequestOptions

func (UploadRequest_Options) AsGCPUploadRequestOptions

func (t UploadRequest_Options) AsGCPUploadRequestOptions() (GCPUploadRequestOptions, error)

AsGCPUploadRequestOptions returns the union data inside the UploadRequest_Options as a GCPUploadRequestOptions

func (*UploadRequest_Options) FromAWSS3UploadRequestOptions

func (t *UploadRequest_Options) FromAWSS3UploadRequestOptions(v AWSS3UploadRequestOptions) error

FromAWSS3UploadRequestOptions overwrites any union data inside the UploadRequest_Options as the provided AWSS3UploadRequestOptions

func (*UploadRequest_Options) FromAWSUploadRequestOptions

func (t *UploadRequest_Options) FromAWSUploadRequestOptions(v AWSUploadRequestOptions) error

FromAWSUploadRequestOptions overwrites any union data inside the UploadRequest_Options as the provided AWSUploadRequestOptions

func (*UploadRequest_Options) FromAzureUploadRequestOptions

func (t *UploadRequest_Options) FromAzureUploadRequestOptions(v AzureUploadRequestOptions) error

FromAzureUploadRequestOptions overwrites any union data inside the UploadRequest_Options as the provided AzureUploadRequestOptions

func (*UploadRequest_Options) FromGCPUploadRequestOptions

func (t *UploadRequest_Options) FromGCPUploadRequestOptions(v GCPUploadRequestOptions) error

FromGCPUploadRequestOptions overwrites any union data inside the UploadRequest_Options as the provided GCPUploadRequestOptions

func (UploadRequest_Options) MarshalJSON

func (t UploadRequest_Options) MarshalJSON() ([]byte, error)

func (*UploadRequest_Options) MergeAWSS3UploadRequestOptions

func (t *UploadRequest_Options) MergeAWSS3UploadRequestOptions(v AWSS3UploadRequestOptions) error

MergeAWSS3UploadRequestOptions performs a merge with any union data inside the UploadRequest_Options, using the provided AWSS3UploadRequestOptions

func (*UploadRequest_Options) MergeAWSUploadRequestOptions

func (t *UploadRequest_Options) MergeAWSUploadRequestOptions(v AWSUploadRequestOptions) error

MergeAWSUploadRequestOptions performs a merge with any union data inside the UploadRequest_Options, using the provided AWSUploadRequestOptions

func (*UploadRequest_Options) MergeAzureUploadRequestOptions

func (t *UploadRequest_Options) MergeAzureUploadRequestOptions(v AzureUploadRequestOptions) error

MergeAzureUploadRequestOptions performs a merge with any union data inside the UploadRequest_Options, using the provided AzureUploadRequestOptions

func (*UploadRequest_Options) MergeGCPUploadRequestOptions

func (t *UploadRequest_Options) MergeGCPUploadRequestOptions(v GCPUploadRequestOptions) error

MergeGCPUploadRequestOptions performs a merge with any union data inside the UploadRequest_Options, using the provided GCPUploadRequestOptions

func (*UploadRequest_Options) UnmarshalJSON

func (t *UploadRequest_Options) UnmarshalJSON(b []byte) error

type UploadStatus

type UploadStatus struct {
	Options UploadStatus_Options `json:"options"`
	Status  UploadStatusStatus   `json:"status"`
	Type    UploadTypes          `json:"type"`
}

UploadStatus defines model for UploadStatus.

type UploadStatusStatus

type UploadStatusStatus string

UploadStatusStatus defines model for UploadStatus.Status.

const (
	UploadStatusStatusFailure UploadStatusStatus = "failure"
	UploadStatusStatusPending UploadStatusStatus = "pending"
	UploadStatusStatusRunning UploadStatusStatus = "running"
	UploadStatusStatusSuccess UploadStatusStatus = "success"
)

Defines values for UploadStatusStatus.

type UploadStatus_Options

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

UploadStatus_Options defines model for UploadStatus.Options.

func (UploadStatus_Options) AsAWSS3UploadStatus

func (t UploadStatus_Options) AsAWSS3UploadStatus() (AWSS3UploadStatus, error)

AsAWSS3UploadStatus returns the union data inside the UploadStatus_Options as a AWSS3UploadStatus

func (UploadStatus_Options) AsAWSUploadStatus

func (t UploadStatus_Options) AsAWSUploadStatus() (AWSUploadStatus, error)

AsAWSUploadStatus returns the union data inside the UploadStatus_Options as a AWSUploadStatus

func (UploadStatus_Options) AsAzureUploadStatus

func (t UploadStatus_Options) AsAzureUploadStatus() (AzureUploadStatus, error)

AsAzureUploadStatus returns the union data inside the UploadStatus_Options as a AzureUploadStatus

func (UploadStatus_Options) AsGCPUploadStatus

func (t UploadStatus_Options) AsGCPUploadStatus() (GCPUploadStatus, error)

AsGCPUploadStatus returns the union data inside the UploadStatus_Options as a GCPUploadStatus

func (*UploadStatus_Options) FromAWSS3UploadStatus

func (t *UploadStatus_Options) FromAWSS3UploadStatus(v AWSS3UploadStatus) error

FromAWSS3UploadStatus overwrites any union data inside the UploadStatus_Options as the provided AWSS3UploadStatus

func (*UploadStatus_Options) FromAWSUploadStatus

func (t *UploadStatus_Options) FromAWSUploadStatus(v AWSUploadStatus) error

FromAWSUploadStatus overwrites any union data inside the UploadStatus_Options as the provided AWSUploadStatus

func (*UploadStatus_Options) FromAzureUploadStatus

func (t *UploadStatus_Options) FromAzureUploadStatus(v AzureUploadStatus) error

FromAzureUploadStatus overwrites any union data inside the UploadStatus_Options as the provided AzureUploadStatus

func (*UploadStatus_Options) FromGCPUploadStatus

func (t *UploadStatus_Options) FromGCPUploadStatus(v GCPUploadStatus) error

FromGCPUploadStatus overwrites any union data inside the UploadStatus_Options as the provided GCPUploadStatus

func (UploadStatus_Options) MarshalJSON

func (t UploadStatus_Options) MarshalJSON() ([]byte, error)

func (*UploadStatus_Options) MergeAWSS3UploadStatus

func (t *UploadStatus_Options) MergeAWSS3UploadStatus(v AWSS3UploadStatus) error

MergeAWSS3UploadStatus performs a merge with any union data inside the UploadStatus_Options, using the provided AWSS3UploadStatus

func (*UploadStatus_Options) MergeAWSUploadStatus

func (t *UploadStatus_Options) MergeAWSUploadStatus(v AWSUploadStatus) error

MergeAWSUploadStatus performs a merge with any union data inside the UploadStatus_Options, using the provided AWSUploadStatus

func (*UploadStatus_Options) MergeAzureUploadStatus

func (t *UploadStatus_Options) MergeAzureUploadStatus(v AzureUploadStatus) error

MergeAzureUploadStatus performs a merge with any union data inside the UploadStatus_Options, using the provided AzureUploadStatus

func (*UploadStatus_Options) MergeGCPUploadStatus

func (t *UploadStatus_Options) MergeGCPUploadStatus(v GCPUploadStatus) error

MergeGCPUploadStatus performs a merge with any union data inside the UploadStatus_Options, using the provided GCPUploadStatus

func (*UploadStatus_Options) UnmarshalJSON

func (t *UploadStatus_Options) UnmarshalJSON(b []byte) error

type UploadTypes

type UploadTypes string

UploadTypes defines model for UploadTypes.

const (
	UploadTypesAws   UploadTypes = "aws"
	UploadTypesAwsS3 UploadTypes = "aws.s3"
	UploadTypesAzure UploadTypes = "azure"
	UploadTypesGcp   UploadTypes = "gcp"
)

Defines values for UploadTypes.

type User

type User struct {
	Name   string `json:"name"`
	SshKey string `json:"ssh_key"`
}

User defines model for User.

type Version

type Version struct {
	Version string `json:"version"`
}

Version defines model for Version.

Jump to

Keyboard shortcuts

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