Documentation
¶
Overview ¶
Package v2 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.
Index ¶
- Constants
- func ConvertRequestBP(rbp Blueprint) (blueprint.Blueprint, error)
- func GetSwagger() (swagger *openapi3.T, err error)
- func HTTPError(code ServiceErrorCode) error
- func HTTPErrorHandler(echoError error, c echo.Context)
- func HTTPErrorWithDetails(code ServiceErrorCode, internalErr error, details string) error
- func HTTPErrorWithInternal(code ServiceErrorCode, internalErr error) error
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type AWSEC2CloneCompose
- type AWSEC2UploadOptions
- type AWSEC2UploadStatus
- type AWSS3UploadOptions
- type AWSS3UploadStatus
- type AzureUploadOptions
- type AzureUploadOptionsHyperVGeneration
- type AzureUploadStatus
- type Blueprint
- type BlueprintCustomizations
- type BlueprintCustomizationsPartitioningMode
- type BlueprintFile
- type BlueprintFileGroup0
- type BlueprintFileGroup1
- type BlueprintFileUser0
- type BlueprintFileUser1
- type BlueprintFile_Group
- func (t BlueprintFile_Group) AsBlueprintFileGroup0() (BlueprintFileGroup0, error)
- func (t BlueprintFile_Group) AsBlueprintFileGroup1() (BlueprintFileGroup1, error)
- func (t *BlueprintFile_Group) FromBlueprintFileGroup0(v BlueprintFileGroup0) error
- func (t *BlueprintFile_Group) FromBlueprintFileGroup1(v BlueprintFileGroup1) error
- func (t BlueprintFile_Group) MarshalJSON() ([]byte, error)
- func (t *BlueprintFile_Group) MergeBlueprintFileGroup0(v BlueprintFileGroup0) error
- func (t *BlueprintFile_Group) MergeBlueprintFileGroup1(v BlueprintFileGroup1) error
- func (t *BlueprintFile_Group) UnmarshalJSON(b []byte) error
- type BlueprintFile_User
- func (t BlueprintFile_User) AsBlueprintFileUser0() (BlueprintFileUser0, error)
- func (t BlueprintFile_User) AsBlueprintFileUser1() (BlueprintFileUser1, error)
- func (t *BlueprintFile_User) FromBlueprintFileUser0(v BlueprintFileUser0) error
- func (t *BlueprintFile_User) FromBlueprintFileUser1(v BlueprintFileUser1) error
- func (t BlueprintFile_User) MarshalJSON() ([]byte, error)
- func (t *BlueprintFile_User) MergeBlueprintFileUser0(v BlueprintFileUser0) error
- func (t *BlueprintFile_User) MergeBlueprintFileUser1(v BlueprintFileUser1) error
- func (t *BlueprintFile_User) UnmarshalJSON(b []byte) error
- type BlueprintFilesystem
- type BlueprintFirewall
- type BlueprintOpenSCAP
- type BlueprintRepository
- type BlueprintUser
- type BtrfsSubvolume
- type BtrfsVolume
- type BtrfsVolumeType
- type CACertsCustomization
- type CloneComposeBody
- func (t CloneComposeBody) AsAWSEC2CloneCompose() (AWSEC2CloneCompose, error)
- func (t *CloneComposeBody) FromAWSEC2CloneCompose(v AWSEC2CloneCompose) error
- func (t CloneComposeBody) MarshalJSON() ([]byte, error)
- func (t *CloneComposeBody) MergeAWSEC2CloneCompose(v AWSEC2CloneCompose) error
- func (t *CloneComposeBody) UnmarshalJSON(b []byte) error
- type CloneComposeResponse
- type CloneStatus
- type CloneStatus_Options
- func (t CloneStatus_Options) AsAWSEC2UploadStatus() (AWSEC2UploadStatus, error)
- func (t CloneStatus_Options) AsAWSS3UploadStatus() (AWSS3UploadStatus, error)
- func (t CloneStatus_Options) AsAzureUploadStatus() (AzureUploadStatus, error)
- func (t CloneStatus_Options) AsContainerUploadStatus() (ContainerUploadStatus, error)
- func (t CloneStatus_Options) AsGCPUploadStatus() (GCPUploadStatus, error)
- func (t CloneStatus_Options) AsLocalUploadStatus() (LocalUploadStatus, error)
- func (t CloneStatus_Options) AsOCIUploadStatus() (OCIUploadStatus, error)
- func (t CloneStatus_Options) AsPulpOSTreeUploadStatus() (PulpOSTreeUploadStatus, error)
- func (t *CloneStatus_Options) FromAWSEC2UploadStatus(v AWSEC2UploadStatus) error
- func (t *CloneStatus_Options) FromAWSS3UploadStatus(v AWSS3UploadStatus) error
- func (t *CloneStatus_Options) FromAzureUploadStatus(v AzureUploadStatus) error
- func (t *CloneStatus_Options) FromContainerUploadStatus(v ContainerUploadStatus) error
- func (t *CloneStatus_Options) FromGCPUploadStatus(v GCPUploadStatus) error
- func (t *CloneStatus_Options) FromLocalUploadStatus(v LocalUploadStatus) error
- func (t *CloneStatus_Options) FromOCIUploadStatus(v OCIUploadStatus) error
- func (t *CloneStatus_Options) FromPulpOSTreeUploadStatus(v PulpOSTreeUploadStatus) error
- func (t CloneStatus_Options) MarshalJSON() ([]byte, error)
- func (t *CloneStatus_Options) MergeAWSEC2UploadStatus(v AWSEC2UploadStatus) error
- func (t *CloneStatus_Options) MergeAWSS3UploadStatus(v AWSS3UploadStatus) error
- func (t *CloneStatus_Options) MergeAzureUploadStatus(v AzureUploadStatus) error
- func (t *CloneStatus_Options) MergeContainerUploadStatus(v ContainerUploadStatus) error
- func (t *CloneStatus_Options) MergeGCPUploadStatus(v GCPUploadStatus) error
- func (t *CloneStatus_Options) MergeLocalUploadStatus(v LocalUploadStatus) error
- func (t *CloneStatus_Options) MergeOCIUploadStatus(v OCIUploadStatus) error
- func (t *CloneStatus_Options) MergePulpOSTreeUploadStatus(v PulpOSTreeUploadStatus) error
- func (t *CloneStatus_Options) UnmarshalJSON(b []byte) error
- type ComposeDeleteStatus
- type ComposeHandlerFunc
- type ComposeId
- type ComposeList
- type ComposeLogs
- type ComposeManifests
- type ComposeMetadata
- type ComposeRequest
- func (request *ComposeRequest) GetBlueprint() (blueprint.Blueprint, error)
- func (request *ComposeRequest) GetBlueprintFromCompose() (blueprint.Blueprint, error)
- func (request *ComposeRequest) GetBlueprintFromCustomizations() (blueprint.Blueprint, error)
- func (request *ComposeRequest) GetImageRequests(distroFactory *distrofactory.Factory, repoRegistry *reporegistry.RepoRegistry) ([]imageRequest, error)
- func (request *ComposeRequest) GetPartitioningMode() (partition.PartitioningMode, error)
- func (request *ComposeRequest) GetPayloadRepositories() (repos []Repository)
- func (request *ComposeRequest) GetSubscription() (sub *subscription.ImageOptions)
- type ComposeSBOMs
- type ComposeStatus
- type ComposeStatusError
- type ComposeStatusValue
- type Container
- type ContainerUploadOptions
- type ContainerUploadStatus
- type CustomRepository
- type Customizations
- type CustomizationsPartitioningMode
- type DNFPluginConfig
- type DepsolveRequest
- type DepsolveResponse
- type Directory
- type DirectoryGroup0
- type DirectoryGroup1
- type DirectoryUser0
- type DirectoryUser1
- type Directory_Group
- func (t Directory_Group) AsDirectoryGroup0() (DirectoryGroup0, error)
- func (t Directory_Group) AsDirectoryGroup1() (DirectoryGroup1, error)
- func (t *Directory_Group) FromDirectoryGroup0(v DirectoryGroup0) error
- func (t *Directory_Group) FromDirectoryGroup1(v DirectoryGroup1) error
- func (t Directory_Group) MarshalJSON() ([]byte, error)
- func (t *Directory_Group) MergeDirectoryGroup0(v DirectoryGroup0) error
- func (t *Directory_Group) MergeDirectoryGroup1(v DirectoryGroup1) error
- func (t *Directory_Group) UnmarshalJSON(b []byte) error
- type Directory_User
- func (t Directory_User) AsDirectoryUser0() (DirectoryUser0, error)
- func (t Directory_User) AsDirectoryUser1() (DirectoryUser1, error)
- func (t *Directory_User) FromDirectoryUser0(v DirectoryUser0) error
- func (t *Directory_User) FromDirectoryUser1(v DirectoryUser1) error
- func (t Directory_User) MarshalJSON() ([]byte, error)
- func (t *Directory_User) MergeDirectoryUser0(v DirectoryUser0) error
- func (t *Directory_User) MergeDirectoryUser1(v DirectoryUser1) error
- func (t *Directory_User) UnmarshalJSON(b []byte) error
- type Disk
- type DiskType
- type DistributionList
- type EchoRouter
- type Error
- type ErrorList
- type FDO
- type FIPS
- type File
- type FileGroup0
- type FileGroup1
- type FileUser0
- type FileUser1
- type File_Group
- func (t File_Group) AsFileGroup0() (FileGroup0, error)
- func (t File_Group) AsFileGroup1() (FileGroup1, error)
- func (t *File_Group) FromFileGroup0(v FileGroup0) error
- func (t *File_Group) FromFileGroup1(v FileGroup1) error
- func (t File_Group) MarshalJSON() ([]byte, error)
- func (t *File_Group) MergeFileGroup0(v FileGroup0) error
- func (t *File_Group) MergeFileGroup1(v FileGroup1) error
- func (t *File_Group) UnmarshalJSON(b []byte) error
- type File_User
- func (t File_User) AsFileUser0() (FileUser0, error)
- func (t File_User) AsFileUser1() (FileUser1, error)
- func (t *File_User) FromFileUser0(v FileUser0) error
- func (t *File_User) FromFileUser1(v FileUser1) error
- func (t File_User) MarshalJSON() ([]byte, error)
- func (t *File_User) MergeFileUser0(v FileUser0) error
- func (t *File_User) MergeFileUser1(v FileUser1) error
- func (t *File_User) UnmarshalJSON(b []byte) error
- type Filesystem
- type FilesystemTyped
- type FilesystemTypedFsType
- type FilesystemTypedType
- type FirewallCustomization
- type FirewallServices
- type FirewallZones
- type GCPUploadOptions
- type GCPUploadStatus
- type GetErrorListParams
- type Group
- type Ignition
- type IgnitionEmbedded
- type IgnitionFirstboot
- type ImageRequest
- type ImageSBOM
- type ImageSBOMPipelinePurpose
- type ImageSBOMSbomType
- type ImageStatus
- type ImageStatusValue
- type ImageTypes
- type ImportKeys
- type Installer
- type Kernel
- type Koji
- type KojiLogs
- type KojiStatus
- type List
- type LocalUploadOptions
- type LocalUploadStatus
- type Locale
- type LogicalVolume
- type LogicalVolumeFsType
- type Minsize
- type Module
- type OCIUploadOptions
- type OCIUploadStatus
- type OSTree
- type ObjectReference
- type OpenSCAP
- type OpenSCAPJSONTailoring
- type OpenSCAPTailoring
- type Package
- type PackageDetails
- type PackageGroup
- type PackageMetadata
- type PackageMetadataCommon
- type Page
- type Partition
- func (t Partition) AsBtrfsVolume() (BtrfsVolume, error)
- func (t Partition) AsFilesystemTyped() (FilesystemTyped, error)
- func (t Partition) AsVolumeGroup() (VolumeGroup, error)
- func (t *Partition) FromBtrfsVolume(v BtrfsVolume) error
- func (t *Partition) FromFilesystemTyped(v FilesystemTyped) error
- func (t *Partition) FromVolumeGroup(v VolumeGroup) error
- func (t Partition) MarshalJSON() ([]byte, error)
- func (t *Partition) MergeBtrfsVolume(v BtrfsVolume) error
- func (t *Partition) MergeFilesystemTyped(v FilesystemTyped) error
- func (t *Partition) MergeVolumeGroup(v VolumeGroup) error
- func (t *Partition) UnmarshalJSON(b []byte) error
- type PostCloneComposeJSONRequestBody
- type PostComposeJSONRequestBody
- type PostDepsolveBlueprintJSONRequestBody
- type PostSearchPackagesJSONRequestBody
- type PulpOSTreeUploadOptions
- type PulpOSTreeUploadStatus
- type RHSMConfig
- type RHSMCustomization
- type RPMCustomization
- type Repository
- type SSHKey
- type SearchPackagesRequest
- type SearchPackagesResponse
- type Server
- type ServerConfig
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) DeleteCompose(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetCloneStatus(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetComposeDownload(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetComposeList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetComposeLogs(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetComposeManifests(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetComposeMetadata(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetComposeSBOMs(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetComposeStatus(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetDistributionList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetError(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetErrorList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetOpenapi(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostCloneCompose(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostCompose(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostDepsolveBlueprint(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostSearchPackages(ctx echo.Context) error
- type ServiceErrorCode
- type Services
- type Size
- type SubManConfig
- type SubManDNFPluginsConfig
- type SubManRHSMCertdConfig
- type SubManRHSMConfig
- type Subscription
- type Timezone
- type UploadOptions
- func (t UploadOptions) AsAWSEC2UploadOptions() (AWSEC2UploadOptions, error)
- func (t UploadOptions) AsAWSS3UploadOptions() (AWSS3UploadOptions, error)
- func (t UploadOptions) AsAzureUploadOptions() (AzureUploadOptions, error)
- func (t UploadOptions) AsContainerUploadOptions() (ContainerUploadOptions, error)
- func (t UploadOptions) AsGCPUploadOptions() (GCPUploadOptions, error)
- func (t UploadOptions) AsLocalUploadOptions() (LocalUploadOptions, error)
- func (t UploadOptions) AsOCIUploadOptions() (OCIUploadOptions, error)
- func (t UploadOptions) AsPulpOSTreeUploadOptions() (PulpOSTreeUploadOptions, error)
- func (t *UploadOptions) FromAWSEC2UploadOptions(v AWSEC2UploadOptions) error
- func (t *UploadOptions) FromAWSS3UploadOptions(v AWSS3UploadOptions) error
- func (t *UploadOptions) FromAzureUploadOptions(v AzureUploadOptions) error
- func (t *UploadOptions) FromContainerUploadOptions(v ContainerUploadOptions) error
- func (t *UploadOptions) FromGCPUploadOptions(v GCPUploadOptions) error
- func (t *UploadOptions) FromLocalUploadOptions(v LocalUploadOptions) error
- func (t *UploadOptions) FromOCIUploadOptions(v OCIUploadOptions) error
- func (t *UploadOptions) FromPulpOSTreeUploadOptions(v PulpOSTreeUploadOptions) error
- func (t UploadOptions) MarshalJSON() ([]byte, error)
- func (t *UploadOptions) MergeAWSEC2UploadOptions(v AWSEC2UploadOptions) error
- func (t *UploadOptions) MergeAWSS3UploadOptions(v AWSS3UploadOptions) error
- func (t *UploadOptions) MergeAzureUploadOptions(v AzureUploadOptions) error
- func (t *UploadOptions) MergeContainerUploadOptions(v ContainerUploadOptions) error
- func (t *UploadOptions) MergeGCPUploadOptions(v GCPUploadOptions) error
- func (t *UploadOptions) MergeLocalUploadOptions(v LocalUploadOptions) error
- func (t *UploadOptions) MergeOCIUploadOptions(v OCIUploadOptions) error
- func (t *UploadOptions) MergePulpOSTreeUploadOptions(v PulpOSTreeUploadOptions) error
- func (t *UploadOptions) UnmarshalJSON(b []byte) error
- type UploadStatus
- type UploadStatusValue
- type UploadStatus_Options
- func (t UploadStatus_Options) AsAWSEC2UploadStatus() (AWSEC2UploadStatus, error)
- func (t UploadStatus_Options) AsAWSS3UploadStatus() (AWSS3UploadStatus, error)
- func (t UploadStatus_Options) AsAzureUploadStatus() (AzureUploadStatus, error)
- func (t UploadStatus_Options) AsContainerUploadStatus() (ContainerUploadStatus, error)
- func (t UploadStatus_Options) AsGCPUploadStatus() (GCPUploadStatus, error)
- func (t UploadStatus_Options) AsLocalUploadStatus() (LocalUploadStatus, error)
- func (t UploadStatus_Options) AsOCIUploadStatus() (OCIUploadStatus, error)
- func (t UploadStatus_Options) AsPulpOSTreeUploadStatus() (PulpOSTreeUploadStatus, error)
- func (t *UploadStatus_Options) FromAWSEC2UploadStatus(v AWSEC2UploadStatus) error
- func (t *UploadStatus_Options) FromAWSS3UploadStatus(v AWSS3UploadStatus) error
- func (t *UploadStatus_Options) FromAzureUploadStatus(v AzureUploadStatus) error
- func (t *UploadStatus_Options) FromContainerUploadStatus(v ContainerUploadStatus) error
- func (t *UploadStatus_Options) FromGCPUploadStatus(v GCPUploadStatus) error
- func (t *UploadStatus_Options) FromLocalUploadStatus(v LocalUploadStatus) error
- func (t *UploadStatus_Options) FromOCIUploadStatus(v OCIUploadStatus) error
- func (t *UploadStatus_Options) FromPulpOSTreeUploadStatus(v PulpOSTreeUploadStatus) error
- func (t UploadStatus_Options) MarshalJSON() ([]byte, error)
- func (t *UploadStatus_Options) MergeAWSEC2UploadStatus(v AWSEC2UploadStatus) error
- func (t *UploadStatus_Options) MergeAWSS3UploadStatus(v AWSS3UploadStatus) error
- func (t *UploadStatus_Options) MergeAzureUploadStatus(v AzureUploadStatus) error
- func (t *UploadStatus_Options) MergeContainerUploadStatus(v ContainerUploadStatus) error
- func (t *UploadStatus_Options) MergeGCPUploadStatus(v GCPUploadStatus) error
- func (t *UploadStatus_Options) MergeLocalUploadStatus(v LocalUploadStatus) error
- func (t *UploadStatus_Options) MergeOCIUploadStatus(v OCIUploadStatus) error
- func (t *UploadStatus_Options) MergePulpOSTreeUploadStatus(v PulpOSTreeUploadStatus) error
- func (t *UploadStatus_Options) UnmarshalJSON(b []byte) error
- type UploadTarget
- type UploadTypes
- type User
- type VolumeGroup
- type VolumeGroupType
Constants ¶
const (
BearerScopes = "Bearer.Scopes"
)
const TenantCtxKey string = "tenant"
Variables ¶
This section is empty.
Functions ¶
func ConvertRequestBP ¶
ConvertRequestBP takes a request Blueprint and returns a composer blueprint.Blueprint
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 HTTPError ¶
func HTTPError(code ServiceErrorCode) error
Make an echo compatible error out of a service error
func HTTPErrorHandler ¶
func HTTPErrorHandler(echoError error, c echo.Context)
Convert an echo error into an AOC compliant one so we send a correct json error response
func HTTPErrorWithDetails ¶
func HTTPErrorWithDetails(code ServiceErrorCode, internalErr error, details string) error
instead of sending a ServiceErrorCode as he.Message, send the validation error string (see above)
func HTTPErrorWithInternal ¶
func HTTPErrorWithInternal(code ServiceErrorCode, internalErr error) error
echo.HTTPError has a message interface{} field, which can be used to include the ServiceErrorCode
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type AWSEC2CloneCompose ¶
type AWSEC2CloneCompose struct { Region string `json:"region"` }
AWSEC2CloneCompose defines model for AWSEC2CloneCompose.
type AWSEC2UploadOptions ¶
type AWSEC2UploadOptions struct { Region string `json:"region"` SnapshotName *string `json:"snapshot_name,omitempty"` }
AWSEC2UploadOptions defines model for AWSEC2UploadOptions.
type AWSEC2UploadStatus ¶
AWSEC2UploadStatus defines model for AWSEC2UploadStatus.
type AWSS3UploadOptions ¶
type AWSS3UploadOptions struct { // Public If set to false (the default value), a long, obfuscated URL // is returned. Its expiration might be sooner than for other upload // targets. // // If set to true, a shorter URL is returned and // its expiration is the same as for the other upload targets. Public *bool `json:"public,omitempty"` Region string `json:"region"` }
AWSS3UploadOptions defines model for AWSS3UploadOptions.
type AWSS3UploadStatus ¶
type AWSS3UploadStatus struct {
Url string `json:"url"`
}
AWSS3UploadStatus defines model for AWSS3UploadStatus.
type AzureUploadOptions ¶
type AzureUploadOptions struct { // HyperVGeneration Choose the VM Image HyperV generation, different features on Azure are available // depending on the HyperV generation. HyperVGeneration *AzureUploadOptionsHyperVGeneration `json:"hyper_v_generation,omitempty"` // ImageName Name of the uploaded image. It must be unique in the given resource group. // If name is omitted from the request, a random one based on a UUID is // generated. ImageName *string `json:"image_name,omitempty"` // Location Location of the provided resource_group, where the image should be uploaded and registered. // How to list all locations: // https://docs.microsoft.com/en-us/cli/azure/account?view=azure-cli-latest#az_account_list_locations' // If the location is not specified, it is deducted from the provided resource_group. Location *string `json:"location,omitempty"` // ResourceGroup Name of the resource group where the image should be uploaded. ResourceGroup string `json:"resource_group"` // SubscriptionId ID of subscription where the image should be uploaded. SubscriptionId string `json:"subscription_id"` // TenantId ID of the tenant where the image should be uploaded. // How to find it in the Azure Portal: // https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-to-find-tenant TenantId string `json:"tenant_id"` }
AzureUploadOptions defines model for AzureUploadOptions.
type AzureUploadOptionsHyperVGeneration ¶
type AzureUploadOptionsHyperVGeneration string
AzureUploadOptionsHyperVGeneration Choose the VM Image HyperV generation, different features on Azure are available depending on the HyperV generation.
const ( V1 AzureUploadOptionsHyperVGeneration = "V1" V2 AzureUploadOptionsHyperVGeneration = "V2" )
Defines values for AzureUploadOptionsHyperVGeneration.
type AzureUploadStatus ¶
type AzureUploadStatus struct {
ImageName string `json:"image_name"`
}
AzureUploadStatus defines model for AzureUploadStatus.
type Blueprint ¶
type Blueprint struct { // Containers Container images to embed into the final artfact Containers *[]Container `json:"containers,omitempty"` Customizations *BlueprintCustomizations `json:"customizations,omitempty"` Description *string `json:"description,omitempty"` // Distro The distribution to use for the compose. If left empty the host // distro will be used. Distro *string `json:"distro,omitempty"` EnabledModules *[]Module `json:"enabled_modules,omitempty"` // Groups Package groups to be installed Groups *[]PackageGroup `json:"groups,omitempty"` // Modules An alias for packages, retained for backwards compatability Modules *[]Package `json:"modules,omitempty"` Name string `json:"name"` // Packages Packages to be installed Packages *[]Package `json:"packages,omitempty"` // Version A semver version number Version *string `json:"version,omitempty"` }
Blueprint defines model for Blueprint.
func (*Blueprint) GetCustomizationsFromBlueprintRequest ¶
func (rbp *Blueprint) GetCustomizationsFromBlueprintRequest() (*blueprint.Customizations, error)
GetCustomizationsFromBlueprint populates a blueprint customization struct with the data from request Blueprint, which is similar but slightly different from the Cloudapi's Customizations section This starts with a new empty blueprint.Customization object If there are no customizations, it returns nil
type BlueprintCustomizations ¶
type BlueprintCustomizations struct { Cacerts *CACertsCustomization `json:"cacerts,omitempty"` // Directories Directories to create in the final artifact Directories *[]Directory `json:"directories,omitempty"` Disk *Disk `json:"disk,omitempty"` // Fdo FIDO device onboard configuration Fdo *FDO `json:"fdo,omitempty"` // Files Files to create in the final artifact Files *[]BlueprintFile `json:"files,omitempty"` // Filesystem List of filesystem mountpoints to create Filesystem *[]BlueprintFilesystem `json:"filesystem,omitempty"` // Fips Enable FIPS mode Fips *bool `json:"fips,omitempty"` // Firewall Firewalld configuration Firewall *BlueprintFirewall `json:"firewall,omitempty"` // Group List of groups to create Group *[]Group `json:"group,omitempty"` // Hostname Configures the hostname Hostname *string `json:"hostname,omitempty"` // Ignition Ignition configuration Ignition *Ignition `json:"ignition,omitempty"` // InstallationDevice Name of the installation device, currently only useful for the edge-simplified-installer type InstallationDevice *string `json:"installation_device,omitempty"` Installer *Installer `json:"installer,omitempty"` Kernel *Kernel `json:"kernel,omitempty"` // Locale Locale configuration Locale *Locale `json:"locale,omitempty"` Openscap *BlueprintOpenSCAP `json:"openscap,omitempty"` // PartitioningMode Select how the disk image will be partitioned. 'auto-lvm' will use raw unless // there are one or more mountpoints in which case it will use LVM. 'lvm' always // uses LVM, even when there are no extra mountpoints. 'raw' uses raw partitions // even when there are one or more mountpoints. PartitioningMode *BlueprintCustomizationsPartitioningMode `json:"partitioning_mode,omitempty"` // Repositories Repositories to write to /etc/yum.repos.d/ in the final image. Note // that these are not used at build time. Repositories *[]BlueprintRepository `json:"repositories,omitempty"` Rhsm *RHSMCustomization `json:"rhsm,omitempty"` Rpm *RPMCustomization `json:"rpm,omitempty"` Services *Services `json:"services,omitempty"` // Sshkey List of ssh keys Sshkey *[]SSHKey `json:"sshkey,omitempty"` // Timezone Timezone configuration Timezone *Timezone `json:"timezone,omitempty"` // User List of users to create User *[]BlueprintUser `json:"user,omitempty"` }
BlueprintCustomizations defines model for BlueprintCustomizations.
type BlueprintCustomizationsPartitioningMode ¶
type BlueprintCustomizationsPartitioningMode string
BlueprintCustomizationsPartitioningMode Select how the disk image will be partitioned. 'auto-lvm' will use raw unless there are one or more mountpoints in which case it will use LVM. 'lvm' always uses LVM, even when there are no extra mountpoints. 'raw' uses raw partitions even when there are one or more mountpoints.
const ( BlueprintCustomizationsPartitioningModeAutoLvm BlueprintCustomizationsPartitioningMode = "auto-lvm" BlueprintCustomizationsPartitioningModeLvm BlueprintCustomizationsPartitioningMode = "lvm" BlueprintCustomizationsPartitioningModeRaw BlueprintCustomizationsPartitioningMode = "raw" )
Defines values for BlueprintCustomizationsPartitioningMode.
func (BlueprintCustomizationsPartitioningMode) String ¶
func (bcpm BlueprintCustomizationsPartitioningMode) String() string
Return the string representation of the partitioning mode default to auto-lvm (should never happen)
type BlueprintFile ¶
type BlueprintFile struct { // Data Contents of the file as plain text Data *string `json:"data,omitempty"` // Group Group of the file as a gid or a group name Group *BlueprintFile_Group `json:"group,omitempty"` // Mode Permissions string for the file in octal format Mode *string `json:"mode,omitempty"` // Path Path to the file Path string `json:"path"` // User Owner of the file as a uid or a user name User *BlueprintFile_User `json:"user,omitempty"` }
BlueprintFile A custom file to create in the final artifact.
type BlueprintFileGroup0 ¶
type BlueprintFileGroup0 = string
BlueprintFileGroup0 defines model for .
type BlueprintFile_Group ¶
type BlueprintFile_Group struct {
// contains filtered or unexported fields
}
BlueprintFile_Group Group of the file as a gid or a group name
func (BlueprintFile_Group) AsBlueprintFileGroup0 ¶
func (t BlueprintFile_Group) AsBlueprintFileGroup0() (BlueprintFileGroup0, error)
AsBlueprintFileGroup0 returns the union data inside the BlueprintFile_Group as a BlueprintFileGroup0
func (BlueprintFile_Group) AsBlueprintFileGroup1 ¶
func (t BlueprintFile_Group) AsBlueprintFileGroup1() (BlueprintFileGroup1, error)
AsBlueprintFileGroup1 returns the union data inside the BlueprintFile_Group as a BlueprintFileGroup1
func (*BlueprintFile_Group) FromBlueprintFileGroup0 ¶
func (t *BlueprintFile_Group) FromBlueprintFileGroup0(v BlueprintFileGroup0) error
FromBlueprintFileGroup0 overwrites any union data inside the BlueprintFile_Group as the provided BlueprintFileGroup0
func (*BlueprintFile_Group) FromBlueprintFileGroup1 ¶
func (t *BlueprintFile_Group) FromBlueprintFileGroup1(v BlueprintFileGroup1) error
FromBlueprintFileGroup1 overwrites any union data inside the BlueprintFile_Group as the provided BlueprintFileGroup1
func (BlueprintFile_Group) MarshalJSON ¶
func (t BlueprintFile_Group) MarshalJSON() ([]byte, error)
func (*BlueprintFile_Group) MergeBlueprintFileGroup0 ¶
func (t *BlueprintFile_Group) MergeBlueprintFileGroup0(v BlueprintFileGroup0) error
MergeBlueprintFileGroup0 performs a merge with any union data inside the BlueprintFile_Group, using the provided BlueprintFileGroup0
func (*BlueprintFile_Group) MergeBlueprintFileGroup1 ¶
func (t *BlueprintFile_Group) MergeBlueprintFileGroup1(v BlueprintFileGroup1) error
MergeBlueprintFileGroup1 performs a merge with any union data inside the BlueprintFile_Group, using the provided BlueprintFileGroup1
func (*BlueprintFile_Group) UnmarshalJSON ¶
func (t *BlueprintFile_Group) UnmarshalJSON(b []byte) error
type BlueprintFile_User ¶
type BlueprintFile_User struct {
// contains filtered or unexported fields
}
BlueprintFile_User Owner of the file as a uid or a user name
func (BlueprintFile_User) AsBlueprintFileUser0 ¶
func (t BlueprintFile_User) AsBlueprintFileUser0() (BlueprintFileUser0, error)
AsBlueprintFileUser0 returns the union data inside the BlueprintFile_User as a BlueprintFileUser0
func (BlueprintFile_User) AsBlueprintFileUser1 ¶
func (t BlueprintFile_User) AsBlueprintFileUser1() (BlueprintFileUser1, error)
AsBlueprintFileUser1 returns the union data inside the BlueprintFile_User as a BlueprintFileUser1
func (*BlueprintFile_User) FromBlueprintFileUser0 ¶
func (t *BlueprintFile_User) FromBlueprintFileUser0(v BlueprintFileUser0) error
FromBlueprintFileUser0 overwrites any union data inside the BlueprintFile_User as the provided BlueprintFileUser0
func (*BlueprintFile_User) FromBlueprintFileUser1 ¶
func (t *BlueprintFile_User) FromBlueprintFileUser1(v BlueprintFileUser1) error
FromBlueprintFileUser1 overwrites any union data inside the BlueprintFile_User as the provided BlueprintFileUser1
func (BlueprintFile_User) MarshalJSON ¶
func (t BlueprintFile_User) MarshalJSON() ([]byte, error)
func (*BlueprintFile_User) MergeBlueprintFileUser0 ¶
func (t *BlueprintFile_User) MergeBlueprintFileUser0(v BlueprintFileUser0) error
MergeBlueprintFileUser0 performs a merge with any union data inside the BlueprintFile_User, using the provided BlueprintFileUser0
func (*BlueprintFile_User) MergeBlueprintFileUser1 ¶
func (t *BlueprintFile_User) MergeBlueprintFileUser1(v BlueprintFileUser1) error
MergeBlueprintFileUser1 performs a merge with any union data inside the BlueprintFile_User, using the provided BlueprintFileUser1
func (*BlueprintFile_User) UnmarshalJSON ¶
func (t *BlueprintFile_User) UnmarshalJSON(b []byte) error
type BlueprintFilesystem ¶
type BlueprintFilesystem struct { // Minsize size with data units Minsize Minsize `json:"minsize"` Mountpoint string `json:"mountpoint"` }
BlueprintFilesystem defines model for BlueprintFilesystem.
type BlueprintFirewall ¶
type BlueprintFirewall struct { // Ports List of ports (or port ranges) and protocols to open Ports *[]string `json:"ports,omitempty"` // Services Firewalld services to enable or disable Services *FirewallServices `json:"services,omitempty"` Zones *[]FirewallZones `json:"zones,omitempty"` }
BlueprintFirewall Firewalld configuration
type BlueprintOpenSCAP ¶
type BlueprintOpenSCAP struct { Datastream *string `json:"datastream,omitempty"` JsonTailoring *OpenSCAPJSONTailoring `json:"json_tailoring,omitempty"` // PolicyId Puts a specified policy ID in the RHSM facts, so that any instances registered to // insights will be automatically connected to the compliance policy in the console. PolicyId *openapi_types.UUID `json:"policy_id,omitempty"` ProfileId string `json:"profile_id"` Tailoring *OpenSCAPTailoring `json:"tailoring,omitempty"` }
BlueprintOpenSCAP defines model for BlueprintOpenSCAP.
type BlueprintRepository ¶
type BlueprintRepository struct { Baseurls *[]string `json:"baseurls,omitempty"` Enabled *bool `json:"enabled,omitempty"` Filename *string `json:"filename,omitempty"` Gpgcheck *bool `json:"gpgcheck,omitempty"` Gpgkeys *[]string `json:"gpgkeys,omitempty"` Id string `json:"id"` Metalink *string `json:"metalink,omitempty"` Mirrorlist *string `json:"mirrorlist,omitempty"` // ModuleHotfixes Disables modularity filtering for this repository. ModuleHotfixes *bool `json:"module_hotfixes,omitempty"` Name *string `json:"name,omitempty"` Priority *int `json:"priority,omitempty"` RepoGpgcheck *bool `json:"repo_gpgcheck,omitempty"` Sslverify *bool `json:"sslverify,omitempty"` }
BlueprintRepository defines model for BlueprintRepository.
type BlueprintUser ¶
type BlueprintUser struct { Description *string `json:"description,omitempty"` // Gid Group id to use instead of the default Gid *int `json:"gid,omitempty"` // Groups A list of additional groups to add the user to Groups *[]string `json:"groups,omitempty"` // Home The user's home directory Home *string `json:"home,omitempty"` // Key ssh public key Key *string `json:"key,omitempty"` Name string `json:"name"` // Password If the password starts with $6$, $5$, or $2b$ it will be stored as // an encrypted password. Otherwise it will be treated as a plain text // password. Password *string `json:"password,omitempty"` // Shell Login shell to use Shell *string `json:"shell,omitempty"` // Uid User id to use instead of the default Uid *int `json:"uid,omitempty"` }
BlueprintUser defines model for BlueprintUser.
type BtrfsSubvolume ¶
type BtrfsSubvolume struct { // Mountpoint Mountpoint for the subvolume Mountpoint string `json:"mountpoint"` // Name The name of the subvolume, which defines the location (path) on the root volume Name string `json:"name"` }
BtrfsSubvolume defines model for BtrfsSubvolume.
type BtrfsVolume ¶
type BtrfsVolume struct { // Minsize size with data units Minsize *Minsize `json:"minsize,omitempty"` // PartType The partition type GUID for GPT partitions. For DOS partitions, this field can be used to set the (2 hex digit) partition type. If not set, the type will be automatically set based on the mountpoint or the payload type. PartType *string `json:"part_type,omitempty"` Subvolumes []BtrfsSubvolume `json:"subvolumes"` Type BtrfsVolumeType `json:"type"` }
BtrfsVolume defines model for BtrfsVolume.
type BtrfsVolumeType ¶
type BtrfsVolumeType string
BtrfsVolumeType defines model for BtrfsVolume.Type.
const (
Btrfs BtrfsVolumeType = "btrfs"
)
Defines values for BtrfsVolumeType.
type CACertsCustomization ¶
type CACertsCustomization struct {
PemCerts []string `json:"pem_certs"`
}
CACertsCustomization defines model for CACertsCustomization.
type CloneComposeBody ¶
type CloneComposeBody struct {
// contains filtered or unexported fields
}
CloneComposeBody defines model for CloneComposeBody.
func (CloneComposeBody) AsAWSEC2CloneCompose ¶
func (t CloneComposeBody) AsAWSEC2CloneCompose() (AWSEC2CloneCompose, error)
AsAWSEC2CloneCompose returns the union data inside the CloneComposeBody as a AWSEC2CloneCompose
func (*CloneComposeBody) FromAWSEC2CloneCompose ¶
func (t *CloneComposeBody) FromAWSEC2CloneCompose(v AWSEC2CloneCompose) error
FromAWSEC2CloneCompose overwrites any union data inside the CloneComposeBody as the provided AWSEC2CloneCompose
func (CloneComposeBody) MarshalJSON ¶
func (t CloneComposeBody) MarshalJSON() ([]byte, error)
func (*CloneComposeBody) MergeAWSEC2CloneCompose ¶
func (t *CloneComposeBody) MergeAWSEC2CloneCompose(v AWSEC2CloneCompose) error
MergeAWSEC2CloneCompose performs a merge with any union data inside the CloneComposeBody, using the provided AWSEC2CloneCompose
func (*CloneComposeBody) UnmarshalJSON ¶
func (t *CloneComposeBody) UnmarshalJSON(b []byte) error
type CloneComposeResponse ¶
type CloneComposeResponse struct { Href string `json:"href"` Id openapi_types.UUID `json:"id"` Kind string `json:"kind"` }
CloneComposeResponse defines model for CloneComposeResponse.
type CloneStatus ¶
type CloneStatus struct { Href string `json:"href"` Id string `json:"id"` Kind string `json:"kind"` Options CloneStatus_Options `json:"options"` Status UploadStatusValue `json:"status"` Type UploadTypes `json:"type"` }
CloneStatus defines model for CloneStatus.
type CloneStatus_Options ¶
type CloneStatus_Options struct {
// contains filtered or unexported fields
}
CloneStatus_Options defines model for CloneStatus.Options.
func (CloneStatus_Options) AsAWSEC2UploadStatus ¶
func (t CloneStatus_Options) AsAWSEC2UploadStatus() (AWSEC2UploadStatus, error)
AsAWSEC2UploadStatus returns the union data inside the CloneStatus_Options as a AWSEC2UploadStatus
func (CloneStatus_Options) AsAWSS3UploadStatus ¶
func (t CloneStatus_Options) AsAWSS3UploadStatus() (AWSS3UploadStatus, error)
AsAWSS3UploadStatus returns the union data inside the CloneStatus_Options as a AWSS3UploadStatus
func (CloneStatus_Options) AsAzureUploadStatus ¶
func (t CloneStatus_Options) AsAzureUploadStatus() (AzureUploadStatus, error)
AsAzureUploadStatus returns the union data inside the CloneStatus_Options as a AzureUploadStatus
func (CloneStatus_Options) AsContainerUploadStatus ¶
func (t CloneStatus_Options) AsContainerUploadStatus() (ContainerUploadStatus, error)
AsContainerUploadStatus returns the union data inside the CloneStatus_Options as a ContainerUploadStatus
func (CloneStatus_Options) AsGCPUploadStatus ¶
func (t CloneStatus_Options) AsGCPUploadStatus() (GCPUploadStatus, error)
AsGCPUploadStatus returns the union data inside the CloneStatus_Options as a GCPUploadStatus
func (CloneStatus_Options) AsLocalUploadStatus ¶
func (t CloneStatus_Options) AsLocalUploadStatus() (LocalUploadStatus, error)
AsLocalUploadStatus returns the union data inside the CloneStatus_Options as a LocalUploadStatus
func (CloneStatus_Options) AsOCIUploadStatus ¶
func (t CloneStatus_Options) AsOCIUploadStatus() (OCIUploadStatus, error)
AsOCIUploadStatus returns the union data inside the CloneStatus_Options as a OCIUploadStatus
func (CloneStatus_Options) AsPulpOSTreeUploadStatus ¶
func (t CloneStatus_Options) AsPulpOSTreeUploadStatus() (PulpOSTreeUploadStatus, error)
AsPulpOSTreeUploadStatus returns the union data inside the CloneStatus_Options as a PulpOSTreeUploadStatus
func (*CloneStatus_Options) FromAWSEC2UploadStatus ¶
func (t *CloneStatus_Options) FromAWSEC2UploadStatus(v AWSEC2UploadStatus) error
FromAWSEC2UploadStatus overwrites any union data inside the CloneStatus_Options as the provided AWSEC2UploadStatus
func (*CloneStatus_Options) FromAWSS3UploadStatus ¶
func (t *CloneStatus_Options) FromAWSS3UploadStatus(v AWSS3UploadStatus) error
FromAWSS3UploadStatus overwrites any union data inside the CloneStatus_Options as the provided AWSS3UploadStatus
func (*CloneStatus_Options) FromAzureUploadStatus ¶
func (t *CloneStatus_Options) FromAzureUploadStatus(v AzureUploadStatus) error
FromAzureUploadStatus overwrites any union data inside the CloneStatus_Options as the provided AzureUploadStatus
func (*CloneStatus_Options) FromContainerUploadStatus ¶
func (t *CloneStatus_Options) FromContainerUploadStatus(v ContainerUploadStatus) error
FromContainerUploadStatus overwrites any union data inside the CloneStatus_Options as the provided ContainerUploadStatus
func (*CloneStatus_Options) FromGCPUploadStatus ¶
func (t *CloneStatus_Options) FromGCPUploadStatus(v GCPUploadStatus) error
FromGCPUploadStatus overwrites any union data inside the CloneStatus_Options as the provided GCPUploadStatus
func (*CloneStatus_Options) FromLocalUploadStatus ¶
func (t *CloneStatus_Options) FromLocalUploadStatus(v LocalUploadStatus) error
FromLocalUploadStatus overwrites any union data inside the CloneStatus_Options as the provided LocalUploadStatus
func (*CloneStatus_Options) FromOCIUploadStatus ¶
func (t *CloneStatus_Options) FromOCIUploadStatus(v OCIUploadStatus) error
FromOCIUploadStatus overwrites any union data inside the CloneStatus_Options as the provided OCIUploadStatus
func (*CloneStatus_Options) FromPulpOSTreeUploadStatus ¶
func (t *CloneStatus_Options) FromPulpOSTreeUploadStatus(v PulpOSTreeUploadStatus) error
FromPulpOSTreeUploadStatus overwrites any union data inside the CloneStatus_Options as the provided PulpOSTreeUploadStatus
func (CloneStatus_Options) MarshalJSON ¶
func (t CloneStatus_Options) MarshalJSON() ([]byte, error)
func (*CloneStatus_Options) MergeAWSEC2UploadStatus ¶
func (t *CloneStatus_Options) MergeAWSEC2UploadStatus(v AWSEC2UploadStatus) error
MergeAWSEC2UploadStatus performs a merge with any union data inside the CloneStatus_Options, using the provided AWSEC2UploadStatus
func (*CloneStatus_Options) MergeAWSS3UploadStatus ¶
func (t *CloneStatus_Options) MergeAWSS3UploadStatus(v AWSS3UploadStatus) error
MergeAWSS3UploadStatus performs a merge with any union data inside the CloneStatus_Options, using the provided AWSS3UploadStatus
func (*CloneStatus_Options) MergeAzureUploadStatus ¶
func (t *CloneStatus_Options) MergeAzureUploadStatus(v AzureUploadStatus) error
MergeAzureUploadStatus performs a merge with any union data inside the CloneStatus_Options, using the provided AzureUploadStatus
func (*CloneStatus_Options) MergeContainerUploadStatus ¶
func (t *CloneStatus_Options) MergeContainerUploadStatus(v ContainerUploadStatus) error
MergeContainerUploadStatus performs a merge with any union data inside the CloneStatus_Options, using the provided ContainerUploadStatus
func (*CloneStatus_Options) MergeGCPUploadStatus ¶
func (t *CloneStatus_Options) MergeGCPUploadStatus(v GCPUploadStatus) error
MergeGCPUploadStatus performs a merge with any union data inside the CloneStatus_Options, using the provided GCPUploadStatus
func (*CloneStatus_Options) MergeLocalUploadStatus ¶
func (t *CloneStatus_Options) MergeLocalUploadStatus(v LocalUploadStatus) error
MergeLocalUploadStatus performs a merge with any union data inside the CloneStatus_Options, using the provided LocalUploadStatus
func (*CloneStatus_Options) MergeOCIUploadStatus ¶
func (t *CloneStatus_Options) MergeOCIUploadStatus(v OCIUploadStatus) error
MergeOCIUploadStatus performs a merge with any union data inside the CloneStatus_Options, using the provided OCIUploadStatus
func (*CloneStatus_Options) MergePulpOSTreeUploadStatus ¶
func (t *CloneStatus_Options) MergePulpOSTreeUploadStatus(v PulpOSTreeUploadStatus) error
MergePulpOSTreeUploadStatus performs a merge with any union data inside the CloneStatus_Options, using the provided PulpOSTreeUploadStatus
func (*CloneStatus_Options) UnmarshalJSON ¶
func (t *CloneStatus_Options) UnmarshalJSON(b []byte) error
type ComposeDeleteStatus ¶
type ComposeDeleteStatus = ObjectReference
ComposeDeleteStatus defines model for ComposeDeleteStatus.
type ComposeHandlerFunc ¶
type ComposeId ¶
type ComposeId struct { Href string `json:"href"` Id openapi_types.UUID `json:"id"` Kind string `json:"kind"` }
ComposeId defines model for ComposeId.
type ComposeList ¶
type ComposeList struct { Items []ComposeStatus `json:"items"` Kind string `json:"kind"` Page int `json:"page"` Size int `json:"size"` Total int `json:"total"` }
ComposeList defines model for ComposeList.
type ComposeLogs ¶
type ComposeLogs struct { Href string `json:"href"` Id string `json:"id"` ImageBuilds []interface{} `json:"image_builds"` Kind string `json:"kind"` Koji *KojiLogs `json:"koji,omitempty"` }
ComposeLogs defines model for ComposeLogs.
type ComposeManifests ¶
type ComposeManifests struct { Href string `json:"href"` Id string `json:"id"` Kind string `json:"kind"` Manifests []interface{} `json:"manifests"` }
ComposeManifests defines model for ComposeManifests.
type ComposeMetadata ¶
type ComposeMetadata struct { Href string `json:"href"` Id string `json:"id"` Kind string `json:"kind"` // OstreeCommit ID (hash) of the built commit OstreeCommit *string `json:"ostree_commit,omitempty"` // Packages Package list including NEVRA Packages *[]PackageMetadata `json:"packages,omitempty"` Request *ComposeRequest `json:"request,omitempty"` }
ComposeMetadata defines model for ComposeMetadata.
type ComposeRequest ¶
type ComposeRequest struct { Blueprint *Blueprint `json:"blueprint,omitempty"` Customizations *Customizations `json:"customizations,omitempty"` Distribution string `json:"distribution"` ImageRequest *ImageRequest `json:"image_request,omitempty"` ImageRequests *[]ImageRequest `json:"image_requests,omitempty"` Koji *Koji `json:"koji,omitempty"` }
ComposeRequest defines model for ComposeRequest.
func (*ComposeRequest) GetBlueprint ¶
func (request *ComposeRequest) GetBlueprint() (blueprint.Blueprint, error)
GetBlueprint returns a blueprint If the compose request includes a blueprint, return it, otherwise if it has customizations create a blueprint with those customizations. If it has neither return an empty blueprint.
func (*ComposeRequest) GetBlueprintFromCompose ¶
func (request *ComposeRequest) GetBlueprintFromCompose() (blueprint.Blueprint, error)
GetBlueprintFromCompose returns a base blueprint It is either constructed from the Blueprint passed in with the request, or it is an empty blueprint
func (*ComposeRequest) GetBlueprintFromCustomizations ¶
func (request *ComposeRequest) GetBlueprintFromCustomizations() (blueprint.Blueprint, error)
GetBlueprintFromCustomizations returns a new Blueprint with all of the customizations set from the ComposeRequest.Customizations
func (*ComposeRequest) GetImageRequests ¶
func (request *ComposeRequest) GetImageRequests(distroFactory *distrofactory.Factory, repoRegistry *reporegistry.RepoRegistry) ([]imageRequest, error)
GetImageRequests converts a composeRequest structure from the API to an intermediate imageRequest structure that's used for generating manifests and orchestrating worker jobs.
func (*ComposeRequest) GetPartitioningMode ¶
func (request *ComposeRequest) GetPartitioningMode() (partition.PartitioningMode, error)
GetPartitioningMode returns the partitioning mode included in the request or defaults to AutoLVMPartitioningMode if not included
func (*ComposeRequest) GetPayloadRepositories ¶
func (request *ComposeRequest) GetPayloadRepositories() (repos []Repository)
GetPayloadRepositories returns the custom repos If there are none it returns a nil slice
func (*ComposeRequest) GetSubscription ¶
func (request *ComposeRequest) GetSubscription() (sub *subscription.ImageOptions)
GetSubscription returns an ImageOptions struct populated by the subscription information included in the request, or nil if it has not been included.
type ComposeSBOMs ¶
type ComposeSBOMs struct { Href string `json:"href"` Id string `json:"id"` // Items The SBOM documents for each image built in the compose. Items [][]ImageSBOM `json:"items"` Kind string `json:"kind"` }
ComposeSBOMs defines model for ComposeSBOMs.
type ComposeStatus ¶
type ComposeStatus struct { Href string `json:"href"` Id string `json:"id"` ImageStatus ImageStatus `json:"image_status"` ImageStatuses *[]ImageStatus `json:"image_statuses,omitempty"` Kind string `json:"kind"` KojiStatus *KojiStatus `json:"koji_status,omitempty"` Status ComposeStatusValue `json:"status"` }
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 ComposeStatusValue ¶
type ComposeStatusValue string
ComposeStatusValue defines model for ComposeStatusValue.
const ( ComposeStatusValueFailure ComposeStatusValue = "failure" ComposeStatusValuePending ComposeStatusValue = "pending" ComposeStatusValueSuccess ComposeStatusValue = "success" )
Defines values for ComposeStatusValue.
type Container ¶
type Container struct { // Name Name to use for the container from the image Name *string `json:"name,omitempty"` // Source Reference to the container to embed Source string `json:"source"` // TlsVerify Control TLS verifification TlsVerify *bool `json:"tls_verify,omitempty"` }
Container defines model for Container.
type ContainerUploadOptions ¶
type ContainerUploadOptions struct { // Name Name for the created container image Name *string `json:"name,omitempty"` // Tag Tag for the created container image Tag *string `json:"tag,omitempty"` }
ContainerUploadOptions defines model for ContainerUploadOptions.
type ContainerUploadStatus ¶
type ContainerUploadStatus struct { // Digest Digest of the manifest of the uploaded container on the registry Digest string `json:"digest"` // Url FQDN of the uploaded image Url string `json:"url"` }
ContainerUploadStatus defines model for ContainerUploadStatus.
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 *[]string `json:"gpgkey,omitempty"` Id string `json:"id"` Metalink *string `json:"metalink,omitempty"` Mirrorlist *string `json:"mirrorlist,omitempty"` ModuleHotfixes *bool `json:"module_hotfixes,omitempty"` Name *string `json:"name,omitempty"` Priority *int `json:"priority,omitempty"` SslVerify *bool `json:"ssl_verify,omitempty"` }
CustomRepository defines model for CustomRepository.
type Customizations ¶
type Customizations struct { Cacerts *CACertsCustomization `json:"cacerts,omitempty"` Containers *[]Container `json:"containers,omitempty"` // CustomRepositories Extra repositories for packages specified in customizations. These // repositories will be used to depsolve and retrieve packages. Additionally, // these packages will be saved and imported to the `/etc/yum.repos.d/` directory // on the image CustomRepositories *[]CustomRepository `json:"custom_repositories,omitempty"` Directories *[]Directory `json:"directories,omitempty"` Disk *Disk `json:"disk,omitempty"` EnabledModules *[]Module `json:"enabled_modules,omitempty"` // Fdo FIDO device onboard configuration Fdo *FDO `json:"fdo,omitempty"` Files *[]File `json:"files,omitempty"` Filesystem *[]Filesystem `json:"filesystem,omitempty"` // Fips System FIPS mode setup Fips *FIPS `json:"fips,omitempty"` // Firewall Firewalld configuration Firewall *FirewallCustomization `json:"firewall,omitempty"` // Groups List of groups to create Groups *[]Group `json:"groups,omitempty"` // Hostname Configures the hostname Hostname *string `json:"hostname,omitempty"` // Ignition Ignition configuration Ignition *Ignition `json:"ignition,omitempty"` // InstallationDevice Name of the installation device, currently only useful for the edge-simplified-installer type InstallationDevice *string `json:"installation_device,omitempty"` Installer *Installer `json:"installer,omitempty"` Kernel *Kernel `json:"kernel,omitempty"` // Locale Locale configuration Locale *Locale `json:"locale,omitempty"` Openscap *OpenSCAP `json:"openscap,omitempty"` Packages *[]string `json:"packages,omitempty"` // PartitioningMode Select how the disk image will be partitioned. 'auto-lvm' will use raw unless // there are one or more mountpoints in which case it will use LVM. 'lvm' always // uses LVM, even when there are no extra mountpoints. 'raw' uses raw partitions // even when there are one or more mountpoints. PartitioningMode *CustomizationsPartitioningMode `json:"partitioning_mode,omitempty"` // PayloadRepositories Extra repositories for packages specified in customizations. These // repositories will only be used to depsolve and retrieve packages // for the OS itself (they will not be available for the build root or // any other part of the build process). The package_sets field for these // repositories is ignored. PayloadRepositories *[]Repository `json:"payload_repositories,omitempty"` Rhsm *RHSMCustomization `json:"rhsm,omitempty"` Rpm *RPMCustomization `json:"rpm,omitempty"` Services *Services `json:"services,omitempty"` Subscription *Subscription `json:"subscription,omitempty"` // Timezone Timezone configuration Timezone *Timezone `json:"timezone,omitempty"` Users *[]User `json:"users,omitempty"` }
Customizations defines model for Customizations.
type CustomizationsPartitioningMode ¶
type CustomizationsPartitioningMode string
CustomizationsPartitioningMode Select how the disk image will be partitioned. 'auto-lvm' will use raw unless there are one or more mountpoints in which case it will use LVM. 'lvm' always uses LVM, even when there are no extra mountpoints. 'raw' uses raw partitions even when there are one or more mountpoints.
const ( CustomizationsPartitioningModeAutoLvm CustomizationsPartitioningMode = "auto-lvm" CustomizationsPartitioningModeLvm CustomizationsPartitioningMode = "lvm" CustomizationsPartitioningModeRaw CustomizationsPartitioningMode = "raw" )
Defines values for CustomizationsPartitioningMode.
type DNFPluginConfig ¶
type DNFPluginConfig struct {
Enabled *bool `json:"enabled,omitempty"`
}
DNFPluginConfig defines model for DNFPluginConfig.
type DepsolveRequest ¶
type DepsolveRequest struct { Architecture string `json:"architecture"` Blueprint Blueprint `json:"blueprint"` Distribution string `json:"distribution"` ImageType *ImageTypes `json:"image_type,omitempty"` Repositories *[]Repository `json:"repositories,omitempty"` }
DepsolveRequest defines model for DepsolveRequest.
func (*DepsolveRequest) Depsolve ¶
func (request *DepsolveRequest) Depsolve(df *distrofactory.Factory, rr *reporegistry.RepoRegistry, workers *worker.Server) ([]rpmmd.PackageSpec, error)
type DepsolveResponse ¶
type DepsolveResponse struct { // Packages Package list including NEVRA Packages []PackageMetadataCommon `json:"packages"` }
DepsolveResponse defines model for DepsolveResponse.
type Directory ¶
type Directory struct { // EnsureParents Ensure that the parent directories exist EnsureParents *bool `json:"ensure_parents,omitempty"` // Group Group of the directory as a group name or a gid Group *Directory_Group `json:"group,omitempty"` // Mode Permissions string for the directory in octal format Mode *string `json:"mode,omitempty"` // Path Path to the directory Path string `json:"path"` // User Owner of the directory as a user name or a uid User *Directory_User `json:"user,omitempty"` }
Directory A custom directory to create in the final artifact.
type Directory_Group ¶
type Directory_Group struct {
// contains filtered or unexported fields
}
Directory_Group Group of the directory as a group name or a gid
func (Directory_Group) AsDirectoryGroup0 ¶
func (t Directory_Group) AsDirectoryGroup0() (DirectoryGroup0, error)
AsDirectoryGroup0 returns the union data inside the Directory_Group as a DirectoryGroup0
func (Directory_Group) AsDirectoryGroup1 ¶
func (t Directory_Group) AsDirectoryGroup1() (DirectoryGroup1, error)
AsDirectoryGroup1 returns the union data inside the Directory_Group as a DirectoryGroup1
func (*Directory_Group) FromDirectoryGroup0 ¶
func (t *Directory_Group) FromDirectoryGroup0(v DirectoryGroup0) error
FromDirectoryGroup0 overwrites any union data inside the Directory_Group as the provided DirectoryGroup0
func (*Directory_Group) FromDirectoryGroup1 ¶
func (t *Directory_Group) FromDirectoryGroup1(v DirectoryGroup1) error
FromDirectoryGroup1 overwrites any union data inside the Directory_Group as the provided DirectoryGroup1
func (Directory_Group) MarshalJSON ¶
func (t Directory_Group) MarshalJSON() ([]byte, error)
func (*Directory_Group) MergeDirectoryGroup0 ¶
func (t *Directory_Group) MergeDirectoryGroup0(v DirectoryGroup0) error
MergeDirectoryGroup0 performs a merge with any union data inside the Directory_Group, using the provided DirectoryGroup0
func (*Directory_Group) MergeDirectoryGroup1 ¶
func (t *Directory_Group) MergeDirectoryGroup1(v DirectoryGroup1) error
MergeDirectoryGroup1 performs a merge with any union data inside the Directory_Group, using the provided DirectoryGroup1
func (*Directory_Group) UnmarshalJSON ¶
func (t *Directory_Group) UnmarshalJSON(b []byte) error
type Directory_User ¶
type Directory_User struct {
// contains filtered or unexported fields
}
Directory_User Owner of the directory as a user name or a uid
func (Directory_User) AsDirectoryUser0 ¶
func (t Directory_User) AsDirectoryUser0() (DirectoryUser0, error)
AsDirectoryUser0 returns the union data inside the Directory_User as a DirectoryUser0
func (Directory_User) AsDirectoryUser1 ¶
func (t Directory_User) AsDirectoryUser1() (DirectoryUser1, error)
AsDirectoryUser1 returns the union data inside the Directory_User as a DirectoryUser1
func (*Directory_User) FromDirectoryUser0 ¶
func (t *Directory_User) FromDirectoryUser0(v DirectoryUser0) error
FromDirectoryUser0 overwrites any union data inside the Directory_User as the provided DirectoryUser0
func (*Directory_User) FromDirectoryUser1 ¶
func (t *Directory_User) FromDirectoryUser1(v DirectoryUser1) error
FromDirectoryUser1 overwrites any union data inside the Directory_User as the provided DirectoryUser1
func (Directory_User) MarshalJSON ¶
func (t Directory_User) MarshalJSON() ([]byte, error)
func (*Directory_User) MergeDirectoryUser0 ¶
func (t *Directory_User) MergeDirectoryUser0(v DirectoryUser0) error
MergeDirectoryUser0 performs a merge with any union data inside the Directory_User, using the provided DirectoryUser0
func (*Directory_User) MergeDirectoryUser1 ¶
func (t *Directory_User) MergeDirectoryUser1(v DirectoryUser1) error
MergeDirectoryUser1 performs a merge with any union data inside the Directory_User, using the provided DirectoryUser1
func (*Directory_User) UnmarshalJSON ¶
func (t *Directory_User) UnmarshalJSON(b []byte) error
type Disk ¶
type Disk struct { // Minsize size with data units Minsize *Minsize `json:"minsize,omitempty"` Partitions []Partition `json:"partitions"` // Type Type of the partition table Type *DiskType `json:"type,omitempty"` }
Disk defines model for Disk.
type DistributionList ¶
type DistributionList map[string]map[string][]BlueprintRepository
DistributionList Map of distributions to their architecture.
type EchoRouter ¶
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type Error ¶
type Error struct { Code string `json:"code"` Details interface{} `json:"details,omitempty"` Href string `json:"href"` Id string `json:"id"` Kind string `json:"kind"` OperationId string `json:"operation_id"` Reason string `json:"reason"` }
Error defines model for Error.
type ErrorList ¶
type ErrorList struct { Items []Error `json:"items"` Kind string `json:"kind"` Page int `json:"page"` Size int `json:"size"` Total int `json:"total"` }
ErrorList defines model for ErrorList.
func APIErrorList ¶
Helper to make the ErrorList as defined in openapi.v2.yml
type FDO ¶
type FDO struct { DiMfgStringTypeMacIface *string `json:"di_mfg_string_type_mac_iface,omitempty"` DiunPubKeyHash *string `json:"diun_pub_key_hash,omitempty"` DiunPubKeyInsecure *string `json:"diun_pub_key_insecure,omitempty"` DiunPubKeyRootCerts *string `json:"diun_pub_key_root_certs,omitempty"` ManufacturingServerUrl *string `json:"manufacturing_server_url,omitempty"` }
FDO FIDO device onboard configuration
type FIPS ¶
type FIPS struct { // Enabled Enables the system FIPS mode Enabled *bool `json:"enabled,omitempty"` }
FIPS System FIPS mode setup
type File ¶
type File struct { // Data Contents of the file as plain text Data *string `json:"data,omitempty"` // EnsureParents Ensure that the parent directories exist EnsureParents *bool `json:"ensure_parents,omitempty"` // Group Group of the file as a gid or a group name Group *File_Group `json:"group,omitempty"` // Mode Permissions string for the file in octal format Mode *string `json:"mode,omitempty"` // Path Path to the file Path string `json:"path"` // User Owner of the file as a uid or a user name User *File_User `json:"user,omitempty"` }
File A custom file to create in the final artifact.
type File_Group ¶
type File_Group struct {
// contains filtered or unexported fields
}
File_Group Group of the file as a gid or a group name
func (File_Group) AsFileGroup0 ¶
func (t File_Group) AsFileGroup0() (FileGroup0, error)
AsFileGroup0 returns the union data inside the File_Group as a FileGroup0
func (File_Group) AsFileGroup1 ¶
func (t File_Group) AsFileGroup1() (FileGroup1, error)
AsFileGroup1 returns the union data inside the File_Group as a FileGroup1
func (*File_Group) FromFileGroup0 ¶
func (t *File_Group) FromFileGroup0(v FileGroup0) error
FromFileGroup0 overwrites any union data inside the File_Group as the provided FileGroup0
func (*File_Group) FromFileGroup1 ¶
func (t *File_Group) FromFileGroup1(v FileGroup1) error
FromFileGroup1 overwrites any union data inside the File_Group as the provided FileGroup1
func (File_Group) MarshalJSON ¶
func (t File_Group) MarshalJSON() ([]byte, error)
func (*File_Group) MergeFileGroup0 ¶
func (t *File_Group) MergeFileGroup0(v FileGroup0) error
MergeFileGroup0 performs a merge with any union data inside the File_Group, using the provided FileGroup0
func (*File_Group) MergeFileGroup1 ¶
func (t *File_Group) MergeFileGroup1(v FileGroup1) error
MergeFileGroup1 performs a merge with any union data inside the File_Group, using the provided FileGroup1
func (*File_Group) UnmarshalJSON ¶
func (t *File_Group) UnmarshalJSON(b []byte) error
type File_User ¶
type File_User struct {
// contains filtered or unexported fields
}
File_User Owner of the file as a uid or a user name
func (File_User) AsFileUser0 ¶
AsFileUser0 returns the union data inside the File_User as a FileUser0
func (File_User) AsFileUser1 ¶
AsFileUser1 returns the union data inside the File_User as a FileUser1
func (*File_User) FromFileUser0 ¶
FromFileUser0 overwrites any union data inside the File_User as the provided FileUser0
func (*File_User) FromFileUser1 ¶
FromFileUser1 overwrites any union data inside the File_User as the provided FileUser1
func (File_User) MarshalJSON ¶
func (*File_User) MergeFileUser0 ¶
MergeFileUser0 performs a merge with any union data inside the File_User, using the provided FileUser0
func (*File_User) MergeFileUser1 ¶
MergeFileUser1 performs a merge with any union data inside the File_User, using the provided FileUser1
func (*File_User) UnmarshalJSON ¶
type Filesystem ¶
type Filesystem struct { // MinSize size of the filesystem in bytes MinSize uint64 `json:"min_size"` Mountpoint string `json:"mountpoint"` }
Filesystem defines model for Filesystem.
type FilesystemTyped ¶
type FilesystemTyped struct { // FsType The filesystem type. Swap partitions must have an empty mountpoint. FsType FilesystemTypedFsType `json:"fs_type"` Label *string `json:"label,omitempty"` // Minsize size with data units Minsize *Minsize `json:"minsize,omitempty"` Mountpoint *string `json:"mountpoint,omitempty"` // PartType The partition type GUID for GPT partitions. For DOS partitions, this field can be used to set the (2 hex digit) partition type. If not set, the type will be automatically set based on the mountpoint or the payload type. PartType *string `json:"part_type,omitempty"` Type *FilesystemTypedType `json:"type,omitempty"` }
FilesystemTyped defines model for FilesystemTyped.
type FilesystemTypedFsType ¶
type FilesystemTypedFsType string
FilesystemTypedFsType The filesystem type. Swap partitions must have an empty mountpoint.
const ( FilesystemTypedFsTypeExt4 FilesystemTypedFsType = "ext4" FilesystemTypedFsTypeSwap FilesystemTypedFsType = "swap" FilesystemTypedFsTypeVfat FilesystemTypedFsType = "vfat" FilesystemTypedFsTypeXfs FilesystemTypedFsType = "xfs" )
Defines values for FilesystemTypedFsType.
type FilesystemTypedType ¶
type FilesystemTypedType string
FilesystemTypedType defines model for FilesystemTyped.Type.
const (
Plain FilesystemTypedType = "plain"
)
Defines values for FilesystemTypedType.
type FirewallCustomization ¶
type FirewallCustomization struct { // Ports List of ports (or port ranges) and protocols to open Ports *[]string `json:"ports,omitempty"` // Services Firewalld services to enable or disable Services *FirewallServices `json:"services,omitempty"` }
FirewallCustomization Firewalld configuration
type FirewallServices ¶
type FirewallServices struct { // Disabled List of services to disable Disabled *[]string `json:"disabled,omitempty"` // Enabled List of services to enable Enabled *[]string `json:"enabled,omitempty"` }
FirewallServices Firewalld services to enable or disable
type FirewallZones ¶
type FirewallZones struct { // Name name of the zone, if left empty the sources will apply to // the default zone. Name *string `json:"name,omitempty"` // Sources List of sources for the zone Sources *[]string `json:"sources,omitempty"` }
FirewallZones Bind a list of network sources to a zone to restrict traffic from those sources based on the settings of the zone.
type GCPUploadOptions ¶
type GCPUploadOptions struct { // Bucket Name of an existing STANDARD Storage class Bucket. Bucket *string `json:"bucket,omitempty"` // ImageName The name to use for the imported and shared Compute Engine image. // The image name must be unique within the GCP project, which is used // for the OS image upload and import. If not specified a random // 'composer-api-<uuid>' string is used as the image name. ImageName *string `json:"image_name,omitempty"` // Region The GCP region where the OS image will be imported to and shared from. // The value must be a valid GCP location. See https://cloud.google.com/storage/docs/locations. // If not specified, the multi-region location closest to the source // (source Storage Bucket location) is chosen automatically. Region string `json:"region"` // 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 Engine image is not shared with any // account. ShareWithAccounts *[]string `json:"share_with_accounts,omitempty"` }
GCPUploadOptions defines model for GCPUploadOptions.
type GCPUploadStatus ¶
type GCPUploadStatus struct { ImageName string `json:"image_name"` ProjectId string `json:"project_id"` }
GCPUploadStatus defines model for GCPUploadStatus.
type GetErrorListParams ¶
type GetErrorListParams struct { // Page Page index Page *Page `form:"page,omitempty" json:"page,omitempty"` // Size Number of items in each page Size *Size `form:"size,omitempty" json:"size,omitempty"` }
GetErrorListParams defines parameters for GetErrorList.
type Group ¶
type Group struct { // Gid Group id of the group to create (optional) Gid *int `json:"gid,omitempty"` // Name Name of the group to create Name string `json:"name"` }
Group defines model for Group.
type Ignition ¶
type Ignition struct { Embedded *IgnitionEmbedded `json:"embedded,omitempty"` Firstboot *IgnitionFirstboot `json:"firstboot,omitempty"` }
Ignition Ignition configuration
type IgnitionEmbedded ¶
type IgnitionEmbedded struct {
Config string `json:"config"`
}
IgnitionEmbedded defines model for IgnitionEmbedded.
type IgnitionFirstboot ¶
type IgnitionFirstboot struct { // Url Provisioning URL Url string `json:"url"` }
IgnitionFirstboot defines model for IgnitionFirstboot.
type ImageRequest ¶
type ImageRequest struct { Architecture string `json:"architecture"` ImageType ImageTypes `json:"image_type"` Ostree *OSTree `json:"ostree,omitempty"` Repositories []Repository `json:"repositories"` // Size Size of image, in bytes. When set to 0 the image size is a minimum // defined by the image type. Size *uint64 `json:"size,omitempty"` // UploadOptions Options for a given upload destination. // This should really be oneOf but AWSS3UploadOptions is a subset of // AWSEC2UploadOptions. This means that all AWSEC2UploadOptions objects // are also valid AWSS3UploadOptionas objects which violates the oneOf // rules. Therefore, we have to use anyOf here but be aware that it isn't // possible to mix and match more schemas together. UploadOptions *UploadOptions `json:"upload_options,omitempty"` // UploadTargets The type and options for multiple upload targets. Each item defines // a separate upload destination with its own options. Multiple // different targets as well as multiple targets of the same kind are // supported. UploadTargets *[]UploadTarget `json:"upload_targets,omitempty"` }
ImageRequest defines model for ImageRequest.
func (*ImageRequest) GetOSTreeOptions ¶
func (ir *ImageRequest) GetOSTreeOptions() (ostreeOptions *ostree.ImageOptions, err error)
GetOSTreeOptions returns the image ostree options when included in the request or nil if they are not present.
func (*ImageRequest) GetTargets ¶
func (ir *ImageRequest) GetTargets(request *ComposeRequest, imageType distro.ImageType) ([]*target.Target, error)
GetTargets returns the targets for the ImageRequest. Merges the UploadTargets with the top-level default UploadOptions if specified.
type ImageSBOM ¶
type ImageSBOM struct { // PipelineName The name of the osbuild pipeline which has the packages described // in the SBOM installed. PipelineName string `json:"pipeline_name"` // PipelinePurpose The purpose of the pipeline. The `buildroot` pipeline was used for // the build environment dueing the image build. The `image` pipeline // represents the actual content of the image. Due to the nature of // some image types, there may be multiple pipelines of the same // purpose. PipelinePurpose ImageSBOMPipelinePurpose `json:"pipeline_purpose"` // Sbom The SBOM document in the 'sbom_type' format. Sbom interface{} `json:"sbom"` // SbomType The type of the SBOM document. Currently only SPDX is supported. SbomType ImageSBOMSbomType `json:"sbom_type"` }
ImageSBOM defines model for ImageSBOM.
type ImageSBOMPipelinePurpose ¶
type ImageSBOMPipelinePurpose string
ImageSBOMPipelinePurpose The purpose of the pipeline. The `buildroot` pipeline was used for the build environment dueing the image build. The `image` pipeline represents the actual content of the image. Due to the nature of some image types, there may be multiple pipelines of the same purpose.
const ( Buildroot ImageSBOMPipelinePurpose = "buildroot" Image ImageSBOMPipelinePurpose = "image" )
Defines values for ImageSBOMPipelinePurpose.
type ImageSBOMSbomType ¶
type ImageSBOMSbomType string
ImageSBOMSbomType The type of the SBOM document. Currently only SPDX is supported.
const (
Spdx ImageSBOMSbomType = "spdx"
)
Defines values for ImageSBOMSbomType.
type ImageStatus ¶
type ImageStatus struct { Error *ComposeStatusError `json:"error,omitempty"` Status ImageStatusValue `json:"status"` UploadStatus *UploadStatus `json:"upload_status,omitempty"` UploadStatuses *[]UploadStatus `json:"upload_statuses,omitempty"` }
ImageStatus defines model for ImageStatus.
type ImageStatusValue ¶
type ImageStatusValue string
ImageStatusValue defines model for ImageStatusValue.
const ( ImageStatusValueBuilding ImageStatusValue = "building" ImageStatusValueFailure ImageStatusValue = "failure" ImageStatusValuePending ImageStatusValue = "pending" ImageStatusValueRegistering ImageStatusValue = "registering" ImageStatusValueSuccess ImageStatusValue = "success" ImageStatusValueUploading ImageStatusValue = "uploading" )
Defines values for ImageStatusValue.
type ImageTypes ¶
type ImageTypes string
ImageTypes defines model for ImageTypes.
const ( ImageTypesAws ImageTypes = "aws" ImageTypesAwsHaRhui ImageTypes = "aws-ha-rhui" ImageTypesAwsRhui ImageTypes = "aws-rhui" ImageTypesAwsSapRhui ImageTypes = "aws-sap-rhui" ImageTypesAzure ImageTypes = "azure" ImageTypesAzureCvm ImageTypes = "azure-cvm" ImageTypesAzureEap7Rhui ImageTypes = "azure-eap7-rhui" ImageTypesAzureRhui ImageTypes = "azure-rhui" ImageTypesAzureSapRhui ImageTypes = "azure-sap-rhui" ImageTypesAzureSapappsRhui ImageTypes = "azure-sapapps-rhui" ImageTypesEdgeCommit ImageTypes = "edge-commit" ImageTypesEdgeContainer ImageTypes = "edge-container" ImageTypesEdgeInstaller ImageTypes = "edge-installer" ImageTypesGcp ImageTypes = "gcp" ImageTypesGcpRhui ImageTypes = "gcp-rhui" ImageTypesGuestImage ImageTypes = "guest-image" ImageTypesImageInstaller ImageTypes = "image-installer" ImageTypesIotBootableContainer ImageTypes = "iot-bootable-container" ImageTypesIotCommit ImageTypes = "iot-commit" ImageTypesIotContainer ImageTypes = "iot-container" ImageTypesIotInstaller ImageTypes = "iot-installer" ImageTypesIotRawImage ImageTypes = "iot-raw-image" ImageTypesIotSimplifiedInstaller ImageTypes = "iot-simplified-installer" ImageTypesLiveInstaller ImageTypes = "live-installer" ImageTypesMinimalRaw ImageTypes = "minimal-raw" ImageTypesOci ImageTypes = "oci" ImageTypesVsphere ImageTypes = "vsphere" ImageTypesVsphereOva ImageTypes = "vsphere-ova" ImageTypesWsl ImageTypes = "wsl" )
Defines values for ImageTypes.
type ImportKeys ¶
type ImportKeys struct {
Files *[]string `json:"files,omitempty"`
}
ImportKeys defines model for ImportKeys.
type Installer ¶
type Installer struct { SudoNopasswd *[]string `json:"sudo-nopasswd,omitempty"` Unattended *bool `json:"unattended,omitempty"` }
Installer defines model for Installer.
type Kernel ¶
type Kernel struct { // Append Appends arguments to the bootloader kernel command line Append *string `json:"append,omitempty"` // Name Name of the kernel to use Name *string `json:"name,omitempty"` }
Kernel defines model for Kernel.
type Koji ¶
type Koji struct { Name string `json:"name"` Release string `json:"release"` Server string `json:"server"` TaskId int `json:"task_id"` Version string `json:"version"` }
Koji defines model for Koji.
type KojiLogs ¶
type KojiLogs struct { Import interface{} `json:"import"` Init interface{} `json:"init"` }
KojiLogs defines model for KojiLogs.
type KojiStatus ¶
type KojiStatus struct {
BuildId *int `json:"build_id,omitempty"`
}
KojiStatus defines model for KojiStatus.
type List ¶
type List struct { Kind string `json:"kind"` Page int `json:"page"` Size int `json:"size"` Total int `json:"total"` }
List defines model for List.
type LocalUploadOptions ¶
type LocalUploadOptions = map[string]interface{}
LocalUploadOptions defines model for LocalUploadOptions.
type LocalUploadStatus ¶
type LocalUploadStatus struct {
ArtifactPath string `json:"artifact_path"`
}
LocalUploadStatus defines model for LocalUploadStatus.
type Locale ¶
type Locale struct { // Keyboard Sets the keyboard layout Keyboard *string `json:"keyboard,omitempty"` // Languages List of locales to be installed, the first one becomes primary, subsequent ones are secondary Languages *[]string `json:"languages,omitempty"` }
Locale Locale configuration
type LogicalVolume ¶
type LogicalVolume struct { // FsType The filesystem type for the logical volume. Swap LVs must have an empty mountpoint. FsType LogicalVolumeFsType `json:"fs_type"` Label *string `json:"label,omitempty"` // Minsize size with data units Minsize *Minsize `json:"minsize,omitempty"` // Mountpoint Mountpoint for the logical volume Mountpoint *string `json:"mountpoint,omitempty"` Name *string `json:"name,omitempty"` }
LogicalVolume defines model for LogicalVolume.
type LogicalVolumeFsType ¶
type LogicalVolumeFsType string
LogicalVolumeFsType The filesystem type for the logical volume. Swap LVs must have an empty mountpoint.
const ( LogicalVolumeFsTypeExt4 LogicalVolumeFsType = "ext4" LogicalVolumeFsTypeSwap LogicalVolumeFsType = "swap" LogicalVolumeFsTypeVfat LogicalVolumeFsType = "vfat" LogicalVolumeFsTypeXfs LogicalVolumeFsType = "xfs" )
Defines values for LogicalVolumeFsType.
type Module ¶
type Module struct { // Name Name of the module to enable. Name string `json:"name"` // Stream Stream to enable. Stream string `json:"stream"` }
Module defines model for Module.
type OCIUploadOptions ¶
type OCIUploadOptions = map[string]interface{}
OCIUploadOptions defines model for OCIUploadOptions.
type OCIUploadStatus ¶
type OCIUploadStatus struct {
Url string `json:"url"`
}
OCIUploadStatus defines model for OCIUploadStatus.
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 ObjectReference ¶
type ObjectReference struct { Href string `json:"href"` Id string `json:"id"` Kind string `json:"kind"` }
ObjectReference defines model for ObjectReference.
type OpenSCAP ¶
type OpenSCAP struct { JsonTailoring *OpenSCAPJSONTailoring `json:"json_tailoring,omitempty"` // PolicyId Puts a specified policy ID in the RHSM facts, so that any instances registered to // insights will be automatically connected to the compliance policy in the console. PolicyId *openapi_types.UUID `json:"policy_id,omitempty"` ProfileId string `json:"profile_id"` Tailoring *OpenSCAPTailoring `json:"tailoring,omitempty"` }
OpenSCAP defines model for OpenSCAP.
type OpenSCAPJSONTailoring ¶
type OpenSCAPJSONTailoring struct { Filepath string `json:"filepath"` ProfileId string `json:"profile_id"` }
OpenSCAPJSONTailoring defines model for OpenSCAPJSONTailoring.
type OpenSCAPTailoring ¶
type OpenSCAPTailoring struct { Selected *[]string `json:"selected,omitempty"` Unselected *[]string `json:"unselected,omitempty"` }
OpenSCAPTailoring defines model for OpenSCAPTailoring.
type Package ¶
type Package struct { // Name Name of the package to install. File globbing is supported, // eg. 'openssh-*' Name string `json:"name"` // Version Optional version of the package to install. If left blank the // latest available version will be used. Wildcards are supported // eg. '4.11.*' Version *string `json:"version,omitempty"` }
Package defines model for Package.
type PackageDetails ¶
type PackageDetails struct { Arch string `json:"arch"` Buildtime *string `json:"buildtime,omitempty"` Description *string `json:"description,omitempty"` Epoch *string `json:"epoch,omitempty"` License *string `json:"license,omitempty"` Name string `json:"name"` Release string `json:"release"` Summary *string `json:"summary,omitempty"` Url *string `json:"url,omitempty"` Version string `json:"version"` }
PackageDetails defines model for PackageDetails.
type PackageGroup ¶
type PackageGroup struct { // Name Package group name Name string `json:"name"` }
PackageGroup defines model for PackageGroup.
type PackageMetadata ¶
type PackageMetadata struct { Arch string `json:"arch"` // Checksum Optional package checksum using ALGO:HASH form Checksum *string `json:"checksum,omitempty"` 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 PackageMetadataCommon ¶
type PackageMetadataCommon struct { Arch string `json:"arch"` // Checksum Optional package checksum using ALGO:HASH form Checksum *string `json:"checksum,omitempty"` Epoch *string `json:"epoch,omitempty"` Name string `json:"name"` Release string `json:"release"` Signature *string `json:"signature,omitempty"` Type string `json:"type"` Version string `json:"version"` }
PackageMetadataCommon defines model for PackageMetadataCommon.
type Partition ¶
type Partition struct {
// contains filtered or unexported fields
}
Partition defines model for Partition.
func (Partition) AsBtrfsVolume ¶
func (t Partition) AsBtrfsVolume() (BtrfsVolume, error)
AsBtrfsVolume returns the union data inside the Partition as a BtrfsVolume
func (Partition) AsFilesystemTyped ¶
func (t Partition) AsFilesystemTyped() (FilesystemTyped, error)
AsFilesystemTyped returns the union data inside the Partition as a FilesystemTyped
func (Partition) AsVolumeGroup ¶
func (t Partition) AsVolumeGroup() (VolumeGroup, error)
AsVolumeGroup returns the union data inside the Partition as a VolumeGroup
func (*Partition) FromBtrfsVolume ¶
func (t *Partition) FromBtrfsVolume(v BtrfsVolume) error
FromBtrfsVolume overwrites any union data inside the Partition as the provided BtrfsVolume
func (*Partition) FromFilesystemTyped ¶
func (t *Partition) FromFilesystemTyped(v FilesystemTyped) error
FromFilesystemTyped overwrites any union data inside the Partition as the provided FilesystemTyped
func (*Partition) FromVolumeGroup ¶
func (t *Partition) FromVolumeGroup(v VolumeGroup) error
FromVolumeGroup overwrites any union data inside the Partition as the provided VolumeGroup
func (Partition) MarshalJSON ¶
func (*Partition) MergeBtrfsVolume ¶
func (t *Partition) MergeBtrfsVolume(v BtrfsVolume) error
MergeBtrfsVolume performs a merge with any union data inside the Partition, using the provided BtrfsVolume
func (*Partition) MergeFilesystemTyped ¶
func (t *Partition) MergeFilesystemTyped(v FilesystemTyped) error
MergeFilesystemTyped performs a merge with any union data inside the Partition, using the provided FilesystemTyped
func (*Partition) MergeVolumeGroup ¶
func (t *Partition) MergeVolumeGroup(v VolumeGroup) error
MergeVolumeGroup performs a merge with any union data inside the Partition, using the provided VolumeGroup
func (*Partition) UnmarshalJSON ¶
type PostCloneComposeJSONRequestBody ¶
type PostCloneComposeJSONRequestBody = CloneComposeBody
PostCloneComposeJSONRequestBody defines body for PostCloneCompose for application/json ContentType.
type PostComposeJSONRequestBody ¶
type PostComposeJSONRequestBody = ComposeRequest
PostComposeJSONRequestBody defines body for PostCompose for application/json ContentType.
type PostDepsolveBlueprintJSONRequestBody ¶
type PostDepsolveBlueprintJSONRequestBody = DepsolveRequest
PostDepsolveBlueprintJSONRequestBody defines body for PostDepsolveBlueprint for application/json ContentType.
type PostSearchPackagesJSONRequestBody ¶
type PostSearchPackagesJSONRequestBody = SearchPackagesRequest
PostSearchPackagesJSONRequestBody defines body for PostSearchPackages for application/json ContentType.
type PulpOSTreeUploadOptions ¶
type PulpOSTreeUploadOptions struct { // Basepath Basepath for distributing the repository Basepath string `json:"basepath"` // Repository Repository to import the ostree commit to Repository *string `json:"repository,omitempty"` ServerAddress *string `json:"server_address,omitempty"` }
PulpOSTreeUploadOptions defines model for PulpOSTreeUploadOptions.
type PulpOSTreeUploadStatus ¶
type PulpOSTreeUploadStatus struct {
RepoUrl string `json:"repo_url"`
}
PulpOSTreeUploadStatus defines model for PulpOSTreeUploadStatus.
type RHSMConfig ¶
type RHSMConfig struct { DnfPlugins *SubManDNFPluginsConfig `json:"dnf_plugins,omitempty"` SubscriptionManager *SubManConfig `json:"subscription_manager,omitempty"` }
RHSMConfig defines model for RHSMConfig.
type RHSMCustomization ¶
type RHSMCustomization struct {
Config *RHSMConfig `json:"config,omitempty"`
}
RHSMCustomization defines model for RHSMCustomization.
type RPMCustomization ¶
type RPMCustomization struct {
ImportKeys *ImportKeys `json:"import_keys,omitempty"`
}
RPMCustomization defines model for RPMCustomization.
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 GPG key used to sign packages in this repository. Gpgkey *string `json:"gpgkey,omitempty"` IgnoreSsl *bool `json:"ignore_ssl,omitempty"` Metalink *string `json:"metalink,omitempty"` Mirrorlist *string `json:"mirrorlist,omitempty"` // ModuleHotfixes Disables modularity filtering for this repository. ModuleHotfixes *bool `json:"module_hotfixes,omitempty"` // PackageSets Naming package sets for a repository assigns it to a specific part // (pipeline) of the build process. PackageSets *[]string `json:"package_sets,omitempty"` // Rhsm Determines whether a valid subscription is required to access this repository. Rhsm *bool `json:"rhsm,omitempty"` }
Repository Repository configuration. 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.
type SSHKey ¶
type SSHKey struct { // Key Adds the key to the user's authorized_keys file Key string `json:"key"` // User User to configure the ssh key for User string `json:"user"` }
SSHKey defines model for SSHKey.
type SearchPackagesRequest ¶
type SearchPackagesRequest struct { Architecture string `json:"architecture"` Distribution string `json:"distribution"` // Packages Array of package names to search for. Supports * wildcards for // names, but not for versions. Packages []string `json:"packages"` Repositories *[]Repository `json:"repositories,omitempty"` }
SearchPackagesRequest defines model for SearchPackagesRequest.
func (*SearchPackagesRequest) Search ¶
func (request *SearchPackagesRequest) Search(df *distrofactory.Factory, rr *reporegistry.RepoRegistry, workers *worker.Server) (rpmmd.PackageList, error)
type SearchPackagesResponse ¶
type SearchPackagesResponse struct { // Packages Detailed package information from DNF Packages []PackageDetails `json:"packages"` }
SearchPackagesResponse defines model for SearchPackagesResponse.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the state of the cloud Server
func NewServer ¶
func NewServer(workers *worker.Server, distros *distrofactory.Factory, repos *reporegistry.RepoRegistry, config ServerConfig) *Server
func (*Server) EnsureJobChannel ¶
func (s *Server) EnsureJobChannel(next ComposeHandlerFunc) ComposeHandlerFunc
Ensures that the job's channel matches the JWT cannel set in the echo.Context
func (*Server) ValidateRequest ¶
func (s *Server) ValidateRequest(next echo.HandlerFunc) echo.HandlerFunc
type ServerConfig ¶
type ServerInterface ¶
type ServerInterface interface { // The status of a cloned compose // (GET /clones/{id}) GetCloneStatus(ctx echo.Context, id openapi_types.UUID) error // Create compose // (POST /compose) PostCompose(ctx echo.Context) error // The list of composes // (GET /composes/) GetComposeList(ctx echo.Context) error // Delete a compose // (DELETE /composes/{id}) DeleteCompose(ctx echo.Context, id openapi_types.UUID) error // The status of a compose // (GET /composes/{id}) GetComposeStatus(ctx echo.Context, id openapi_types.UUID) error // Clone an existing compose // (POST /composes/{id}/clone) PostCloneCompose(ctx echo.Context, id openapi_types.UUID) error // Download the artifact for a compose. // (GET /composes/{id}/download) GetComposeDownload(ctx echo.Context, id openapi_types.UUID) error // Get logs for a compose. // (GET /composes/{id}/logs) GetComposeLogs(ctx echo.Context, id openapi_types.UUID) error // Get the manifests for a compose. // (GET /composes/{id}/manifests) GetComposeManifests(ctx echo.Context, id openapi_types.UUID) error // Get the metadata for a compose. // (GET /composes/{id}/metadata) GetComposeMetadata(ctx echo.Context, id openapi_types.UUID) error // Get the SBOMs for a compose. // (GET /composes/{id}/sboms) GetComposeSBOMs(ctx echo.Context, id openapi_types.UUID) error // Depsolve one or more blueprints // (POST /depsolve/blueprint) PostDepsolveBlueprint(ctx echo.Context) error // Get all of the supported distribution repository details // (GET /distributions) GetDistributionList(ctx echo.Context) error // Get a list of all possible errors // (GET /errors) GetErrorList(ctx echo.Context, params GetErrorListParams) error // Get error description // (GET /errors/{id}) GetError(ctx echo.Context, id string) error // Get the openapi spec in json format // (GET /openapi) GetOpenapi(ctx echo.Context) error // Search for detailed information on a list of package names // (POST /search/packages) PostSearchPackages(ctx echo.Context) error }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) DeleteCompose ¶
func (w *ServerInterfaceWrapper) DeleteCompose(ctx echo.Context) error
DeleteCompose converts echo context to params.
func (*ServerInterfaceWrapper) GetCloneStatus ¶
func (w *ServerInterfaceWrapper) GetCloneStatus(ctx echo.Context) error
GetCloneStatus converts echo context to params.
func (*ServerInterfaceWrapper) GetComposeDownload ¶
func (w *ServerInterfaceWrapper) GetComposeDownload(ctx echo.Context) error
GetComposeDownload converts echo context to params.
func (*ServerInterfaceWrapper) GetComposeList ¶
func (w *ServerInterfaceWrapper) GetComposeList(ctx echo.Context) error
GetComposeList converts echo context to params.
func (*ServerInterfaceWrapper) GetComposeLogs ¶
func (w *ServerInterfaceWrapper) GetComposeLogs(ctx echo.Context) error
GetComposeLogs converts echo context to params.
func (*ServerInterfaceWrapper) GetComposeManifests ¶
func (w *ServerInterfaceWrapper) GetComposeManifests(ctx echo.Context) error
GetComposeManifests converts echo context to params.
func (*ServerInterfaceWrapper) GetComposeMetadata ¶
func (w *ServerInterfaceWrapper) GetComposeMetadata(ctx echo.Context) error
GetComposeMetadata converts echo context to params.
func (*ServerInterfaceWrapper) GetComposeSBOMs ¶
func (w *ServerInterfaceWrapper) GetComposeSBOMs(ctx echo.Context) error
GetComposeSBOMs converts echo context to params.
func (*ServerInterfaceWrapper) GetComposeStatus ¶
func (w *ServerInterfaceWrapper) GetComposeStatus(ctx echo.Context) error
GetComposeStatus converts echo context to params.
func (*ServerInterfaceWrapper) GetDistributionList ¶
func (w *ServerInterfaceWrapper) GetDistributionList(ctx echo.Context) error
GetDistributionList converts echo context to params.
func (*ServerInterfaceWrapper) GetError ¶
func (w *ServerInterfaceWrapper) GetError(ctx echo.Context) error
GetError converts echo context to params.
func (*ServerInterfaceWrapper) GetErrorList ¶
func (w *ServerInterfaceWrapper) GetErrorList(ctx echo.Context) error
GetErrorList converts echo context to params.
func (*ServerInterfaceWrapper) GetOpenapi ¶
func (w *ServerInterfaceWrapper) GetOpenapi(ctx echo.Context) error
GetOpenapi converts echo context to params.
func (*ServerInterfaceWrapper) PostCloneCompose ¶
func (w *ServerInterfaceWrapper) PostCloneCompose(ctx echo.Context) error
PostCloneCompose converts echo context to params.
func (*ServerInterfaceWrapper) PostCompose ¶
func (w *ServerInterfaceWrapper) PostCompose(ctx echo.Context) error
PostCompose converts echo context to params.
func (*ServerInterfaceWrapper) PostDepsolveBlueprint ¶
func (w *ServerInterfaceWrapper) PostDepsolveBlueprint(ctx echo.Context) error
PostDepsolveBlueprint converts echo context to params.
func (*ServerInterfaceWrapper) PostSearchPackages ¶
func (w *ServerInterfaceWrapper) PostSearchPackages(ctx echo.Context) error
PostSearchPackages converts echo context to params.
type ServiceErrorCode ¶
type ServiceErrorCode int
const ( ErrorCodePrefix = "IMAGE-BUILDER-COMPOSER-" ErrorHREF = "/api/image-builder-composer/v2/errors" // ocm-sdk sends ErrorUnauthenticated with id 401 & code COMPOSER-401 ErrorUnauthenticated ServiceErrorCode = 401 ErrorUnsupportedMediaType ServiceErrorCode = 3 ErrorUnsupportedDistribution ServiceErrorCode = 4 ErrorUnsupportedArchitecture ServiceErrorCode = 5 ErrorUnsupportedImageType ServiceErrorCode = 6 ErrorInvalidRepository ServiceErrorCode = 7 ErrorDNFError ServiceErrorCode = 8 ErrorInvalidOSTreeRef ServiceErrorCode = 9 ErrorInvalidOSTreeRepo ServiceErrorCode = 10 ErrorFailedToMakeManifest ServiceErrorCode = 11 ErrorInvalidComposeId ServiceErrorCode = 14 ErrorComposeNotFound ServiceErrorCode = 15 ErrorInvalidErrorId ServiceErrorCode = 16 ErrorErrorNotFound ServiceErrorCode = 17 ErrorInvalidPageParam ServiceErrorCode = 18 ErrorInvalidSizeParam ServiceErrorCode = 19 ErrorBodyDecodingError ServiceErrorCode = 20 ErrorResourceNotFound ServiceErrorCode = 21 ErrorMethodNotAllowed ServiceErrorCode = 22 ErrorNotAcceptable ServiceErrorCode = 23 ErrorNoBaseURLInPayloadRepository ServiceErrorCode = 24 ErrorInvalidNumberOfImageBuilds ServiceErrorCode = 25 ErrorInvalidJobType ServiceErrorCode = 26 ErrorInvalidOSTreeParams ServiceErrorCode = 27 ErrorTenantNotFound ServiceErrorCode = 28 ErrorNoGPGKey ServiceErrorCode = 29 ErrorValidationFailed ServiceErrorCode = 30 ErrorComposeBadState ServiceErrorCode = 31 ErrorUnsupportedImage ServiceErrorCode = 32 ErrorInvalidImageFromComposeId ServiceErrorCode = 33 ErrorImageNotFound ServiceErrorCode = 34 ErrorInvalidCustomization ServiceErrorCode = 35 ErrorLocalSaveNotEnabled ServiceErrorCode = 36 ErrorInvalidPartitioningMode ServiceErrorCode = 37 ErrorInvalidUploadTarget ServiceErrorCode = 38 ErrorBlueprintOrCustomNotBoth ServiceErrorCode = 39 ErrorMismatchedDistribution ServiceErrorCode = 40 ErrorMismatchedArchitecture ServiceErrorCode = 41 ErrorBadRequest ServiceErrorCode = 42 // Internal errors, these are bugs ErrorFailedToInitializeBlueprint ServiceErrorCode = 1000 ErrorFailedToGenerateManifestSeed ServiceErrorCode = 1001 ErrorFailedToDepsolve ServiceErrorCode = 1002 ErrorJSONMarshallingError ServiceErrorCode = 1003 ErrorJSONUnMarshallingError ServiceErrorCode = 1004 ErrorEnqueueingJob ServiceErrorCode = 1005 ErrorSeveralUploadTargets ServiceErrorCode = 1006 ErrorUnknownUploadTarget ServiceErrorCode = 1007 ErrorFailedToLoadOpenAPISpec ServiceErrorCode = 1008 ErrorFailedToParseManifestVersion ServiceErrorCode = 1009 ErrorUnknownManifestVersion ServiceErrorCode = 1010 ErrorUnableToConvertOSTreeCommitStageMetadata ServiceErrorCode = 1011 ErrorMalformedOSBuildJobResult ServiceErrorCode = 1012 ErrorGettingDepsolveJobStatus ServiceErrorCode = 1013 ErrorDepsolveJobCanceled ServiceErrorCode = 1014 ErrorUnexpectedNumberOfImageBuilds ServiceErrorCode = 1015 ErrorGettingBuildDependencyStatus ServiceErrorCode = 1016 ErrorGettingOSBuildJobStatus ServiceErrorCode = 1017 ErrorGettingAWSEC2JobStatus ServiceErrorCode = 1018 ErrorGettingJobType ServiceErrorCode = 1019 ErrorTenantNotInContext ServiceErrorCode = 1020 ErrorGettingComposeList ServiceErrorCode = 1021 ErrorArtifactNotFound ServiceErrorCode = 1022 ErrorDeletingJob ServiceErrorCode = 1023 ErrorDeletingArtifacts ServiceErrorCode = 1024 // Errors contained within this file ErrorUnspecified ServiceErrorCode = 10000 ErrorNotHTTPError ServiceErrorCode = 10001 ErrorServiceErrorNotFound ServiceErrorCode = 10002 ErrorMalformedOperationID ServiceErrorCode = 10003 )
type Services ¶
type Services struct { // Disabled List of services to disable by default Disabled *[]string `json:"disabled,omitempty"` // Enabled List of services to enable by default Enabled *[]string `json:"enabled,omitempty"` // Masked List of services to mask by default Masked *[]string `json:"masked,omitempty"` }
Services defines model for Services.
type SubManConfig ¶
type SubManConfig struct { Rhsm *SubManRHSMConfig `json:"rhsm,omitempty"` Rhsmcertd *SubManRHSMCertdConfig `json:"rhsmcertd,omitempty"` }
SubManConfig defines model for SubManConfig.
type SubManDNFPluginsConfig ¶
type SubManDNFPluginsConfig struct { ProductId *DNFPluginConfig `json:"product_id,omitempty"` SubscriptionManager *DNFPluginConfig `json:"subscription_manager,omitempty"` }
SubManDNFPluginsConfig defines model for SubManDNFPluginsConfig.
type SubManRHSMCertdConfig ¶
type SubManRHSMCertdConfig struct {
AutoRegistration *bool `json:"auto_registration,omitempty"`
}
SubManRHSMCertdConfig defines model for SubManRHSMCertdConfig.
type SubManRHSMConfig ¶
type SubManRHSMConfig struct { AutoEnableYumPlugins *bool `json:"auto_enable_yum_plugins,omitempty"` ManageRepos *bool `json:"manage_repos,omitempty"` }
SubManRHSMConfig defines model for SubManRHSMConfig.
type Subscription ¶
type Subscription struct { ActivationKey string `json:"activation_key"` BaseUrl string `json:"base_url"` Insights bool `json:"insights"` // InsightsClientProxy Optional value to set proxy option when registering the system to Insights InsightsClientProxy *string `json:"insights_client_proxy,omitempty"` Organization string `json:"organization"` // PatchUrl Optional value used to specify the patch host when registering the system with Insights. PatchUrl *string `json:"patch_url,omitempty"` // 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"` // TemplateName Optional value to register with a template when using rhc to register the system with Insights. TemplateName *string `json:"template_name,omitempty"` // TemplateUuid Optional value to register with a template when registering the system with Insights. TemplateUuid *string `json:"template_uuid,omitempty"` }
Subscription defines model for Subscription.
type Timezone ¶
type Timezone struct { // Ntpservers List of ntp servers Ntpservers *[]string `json:"ntpservers,omitempty"` // Timezone Name of the timezone, defaults to UTC Timezone *string `json:"timezone,omitempty"` }
Timezone Timezone configuration
type UploadOptions ¶
type UploadOptions struct {
// contains filtered or unexported fields
}
UploadOptions Options for a given upload destination. This should really be oneOf but AWSS3UploadOptions is a subset of AWSEC2UploadOptions. This means that all AWSEC2UploadOptions objects are also valid AWSS3UploadOptionas objects which violates the oneOf rules. Therefore, we have to use anyOf here but be aware that it isn't possible to mix and match more schemas together.
func (UploadOptions) AsAWSEC2UploadOptions ¶
func (t UploadOptions) AsAWSEC2UploadOptions() (AWSEC2UploadOptions, error)
AsAWSEC2UploadOptions returns the union data inside the UploadOptions as a AWSEC2UploadOptions
func (UploadOptions) AsAWSS3UploadOptions ¶
func (t UploadOptions) AsAWSS3UploadOptions() (AWSS3UploadOptions, error)
AsAWSS3UploadOptions returns the union data inside the UploadOptions as a AWSS3UploadOptions
func (UploadOptions) AsAzureUploadOptions ¶
func (t UploadOptions) AsAzureUploadOptions() (AzureUploadOptions, error)
AsAzureUploadOptions returns the union data inside the UploadOptions as a AzureUploadOptions
func (UploadOptions) AsContainerUploadOptions ¶
func (t UploadOptions) AsContainerUploadOptions() (ContainerUploadOptions, error)
AsContainerUploadOptions returns the union data inside the UploadOptions as a ContainerUploadOptions
func (UploadOptions) AsGCPUploadOptions ¶
func (t UploadOptions) AsGCPUploadOptions() (GCPUploadOptions, error)
AsGCPUploadOptions returns the union data inside the UploadOptions as a GCPUploadOptions
func (UploadOptions) AsLocalUploadOptions ¶
func (t UploadOptions) AsLocalUploadOptions() (LocalUploadOptions, error)
AsLocalUploadOptions returns the union data inside the UploadOptions as a LocalUploadOptions
func (UploadOptions) AsOCIUploadOptions ¶
func (t UploadOptions) AsOCIUploadOptions() (OCIUploadOptions, error)
AsOCIUploadOptions returns the union data inside the UploadOptions as a OCIUploadOptions
func (UploadOptions) AsPulpOSTreeUploadOptions ¶
func (t UploadOptions) AsPulpOSTreeUploadOptions() (PulpOSTreeUploadOptions, error)
AsPulpOSTreeUploadOptions returns the union data inside the UploadOptions as a PulpOSTreeUploadOptions
func (*UploadOptions) FromAWSEC2UploadOptions ¶
func (t *UploadOptions) FromAWSEC2UploadOptions(v AWSEC2UploadOptions) error
FromAWSEC2UploadOptions overwrites any union data inside the UploadOptions as the provided AWSEC2UploadOptions
func (*UploadOptions) FromAWSS3UploadOptions ¶
func (t *UploadOptions) FromAWSS3UploadOptions(v AWSS3UploadOptions) error
FromAWSS3UploadOptions overwrites any union data inside the UploadOptions as the provided AWSS3UploadOptions
func (*UploadOptions) FromAzureUploadOptions ¶
func (t *UploadOptions) FromAzureUploadOptions(v AzureUploadOptions) error
FromAzureUploadOptions overwrites any union data inside the UploadOptions as the provided AzureUploadOptions
func (*UploadOptions) FromContainerUploadOptions ¶
func (t *UploadOptions) FromContainerUploadOptions(v ContainerUploadOptions) error
FromContainerUploadOptions overwrites any union data inside the UploadOptions as the provided ContainerUploadOptions
func (*UploadOptions) FromGCPUploadOptions ¶
func (t *UploadOptions) FromGCPUploadOptions(v GCPUploadOptions) error
FromGCPUploadOptions overwrites any union data inside the UploadOptions as the provided GCPUploadOptions
func (*UploadOptions) FromLocalUploadOptions ¶
func (t *UploadOptions) FromLocalUploadOptions(v LocalUploadOptions) error
FromLocalUploadOptions overwrites any union data inside the UploadOptions as the provided LocalUploadOptions
func (*UploadOptions) FromOCIUploadOptions ¶
func (t *UploadOptions) FromOCIUploadOptions(v OCIUploadOptions) error
FromOCIUploadOptions overwrites any union data inside the UploadOptions as the provided OCIUploadOptions
func (*UploadOptions) FromPulpOSTreeUploadOptions ¶
func (t *UploadOptions) FromPulpOSTreeUploadOptions(v PulpOSTreeUploadOptions) error
FromPulpOSTreeUploadOptions overwrites any union data inside the UploadOptions as the provided PulpOSTreeUploadOptions
func (UploadOptions) MarshalJSON ¶
func (t UploadOptions) MarshalJSON() ([]byte, error)
func (*UploadOptions) MergeAWSEC2UploadOptions ¶
func (t *UploadOptions) MergeAWSEC2UploadOptions(v AWSEC2UploadOptions) error
MergeAWSEC2UploadOptions performs a merge with any union data inside the UploadOptions, using the provided AWSEC2UploadOptions
func (*UploadOptions) MergeAWSS3UploadOptions ¶
func (t *UploadOptions) MergeAWSS3UploadOptions(v AWSS3UploadOptions) error
MergeAWSS3UploadOptions performs a merge with any union data inside the UploadOptions, using the provided AWSS3UploadOptions
func (*UploadOptions) MergeAzureUploadOptions ¶
func (t *UploadOptions) MergeAzureUploadOptions(v AzureUploadOptions) error
MergeAzureUploadOptions performs a merge with any union data inside the UploadOptions, using the provided AzureUploadOptions
func (*UploadOptions) MergeContainerUploadOptions ¶
func (t *UploadOptions) MergeContainerUploadOptions(v ContainerUploadOptions) error
MergeContainerUploadOptions performs a merge with any union data inside the UploadOptions, using the provided ContainerUploadOptions
func (*UploadOptions) MergeGCPUploadOptions ¶
func (t *UploadOptions) MergeGCPUploadOptions(v GCPUploadOptions) error
MergeGCPUploadOptions performs a merge with any union data inside the UploadOptions, using the provided GCPUploadOptions
func (*UploadOptions) MergeLocalUploadOptions ¶
func (t *UploadOptions) MergeLocalUploadOptions(v LocalUploadOptions) error
MergeLocalUploadOptions performs a merge with any union data inside the UploadOptions, using the provided LocalUploadOptions
func (*UploadOptions) MergeOCIUploadOptions ¶
func (t *UploadOptions) MergeOCIUploadOptions(v OCIUploadOptions) error
MergeOCIUploadOptions performs a merge with any union data inside the UploadOptions, using the provided OCIUploadOptions
func (*UploadOptions) MergePulpOSTreeUploadOptions ¶
func (t *UploadOptions) MergePulpOSTreeUploadOptions(v PulpOSTreeUploadOptions) error
MergePulpOSTreeUploadOptions performs a merge with any union data inside the UploadOptions, using the provided PulpOSTreeUploadOptions
func (*UploadOptions) UnmarshalJSON ¶
func (t *UploadOptions) UnmarshalJSON(b []byte) error
type UploadStatus ¶
type UploadStatus struct { Options UploadStatus_Options `json:"options"` Status UploadStatusValue `json:"status"` Type UploadTypes `json:"type"` }
UploadStatus defines model for UploadStatus.
type UploadStatusValue ¶
type UploadStatusValue string
UploadStatusValue defines model for UploadStatusValue.
const ( Failure UploadStatusValue = "failure" Pending UploadStatusValue = "pending" Running UploadStatusValue = "running" Success UploadStatusValue = "success" )
Defines values for UploadStatusValue.
type UploadStatus_Options ¶
type UploadStatus_Options struct {
// contains filtered or unexported fields
}
UploadStatus_Options defines model for UploadStatus.Options.
func (UploadStatus_Options) AsAWSEC2UploadStatus ¶
func (t UploadStatus_Options) AsAWSEC2UploadStatus() (AWSEC2UploadStatus, error)
AsAWSEC2UploadStatus returns the union data inside the UploadStatus_Options as a AWSEC2UploadStatus
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) AsAzureUploadStatus ¶
func (t UploadStatus_Options) AsAzureUploadStatus() (AzureUploadStatus, error)
AsAzureUploadStatus returns the union data inside the UploadStatus_Options as a AzureUploadStatus
func (UploadStatus_Options) AsContainerUploadStatus ¶
func (t UploadStatus_Options) AsContainerUploadStatus() (ContainerUploadStatus, error)
AsContainerUploadStatus returns the union data inside the UploadStatus_Options as a ContainerUploadStatus
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) AsLocalUploadStatus ¶
func (t UploadStatus_Options) AsLocalUploadStatus() (LocalUploadStatus, error)
AsLocalUploadStatus returns the union data inside the UploadStatus_Options as a LocalUploadStatus
func (UploadStatus_Options) AsOCIUploadStatus ¶
func (t UploadStatus_Options) AsOCIUploadStatus() (OCIUploadStatus, error)
AsOCIUploadStatus returns the union data inside the UploadStatus_Options as a OCIUploadStatus
func (UploadStatus_Options) AsPulpOSTreeUploadStatus ¶
func (t UploadStatus_Options) AsPulpOSTreeUploadStatus() (PulpOSTreeUploadStatus, error)
AsPulpOSTreeUploadStatus returns the union data inside the UploadStatus_Options as a PulpOSTreeUploadStatus
func (*UploadStatus_Options) FromAWSEC2UploadStatus ¶
func (t *UploadStatus_Options) FromAWSEC2UploadStatus(v AWSEC2UploadStatus) error
FromAWSEC2UploadStatus overwrites any union data inside the UploadStatus_Options as the provided AWSEC2UploadStatus
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) 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) FromContainerUploadStatus ¶
func (t *UploadStatus_Options) FromContainerUploadStatus(v ContainerUploadStatus) error
FromContainerUploadStatus overwrites any union data inside the UploadStatus_Options as the provided ContainerUploadStatus
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) FromLocalUploadStatus ¶
func (t *UploadStatus_Options) FromLocalUploadStatus(v LocalUploadStatus) error
FromLocalUploadStatus overwrites any union data inside the UploadStatus_Options as the provided LocalUploadStatus
func (*UploadStatus_Options) FromOCIUploadStatus ¶
func (t *UploadStatus_Options) FromOCIUploadStatus(v OCIUploadStatus) error
FromOCIUploadStatus overwrites any union data inside the UploadStatus_Options as the provided OCIUploadStatus
func (*UploadStatus_Options) FromPulpOSTreeUploadStatus ¶
func (t *UploadStatus_Options) FromPulpOSTreeUploadStatus(v PulpOSTreeUploadStatus) error
FromPulpOSTreeUploadStatus overwrites any union data inside the UploadStatus_Options as the provided PulpOSTreeUploadStatus
func (UploadStatus_Options) MarshalJSON ¶
func (t UploadStatus_Options) MarshalJSON() ([]byte, error)
func (*UploadStatus_Options) MergeAWSEC2UploadStatus ¶
func (t *UploadStatus_Options) MergeAWSEC2UploadStatus(v AWSEC2UploadStatus) error
MergeAWSEC2UploadStatus performs a merge with any union data inside the UploadStatus_Options, using the provided AWSEC2UploadStatus
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) 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) MergeContainerUploadStatus ¶
func (t *UploadStatus_Options) MergeContainerUploadStatus(v ContainerUploadStatus) error
MergeContainerUploadStatus performs a merge with any union data inside the UploadStatus_Options, using the provided ContainerUploadStatus
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) MergeLocalUploadStatus ¶
func (t *UploadStatus_Options) MergeLocalUploadStatus(v LocalUploadStatus) error
MergeLocalUploadStatus performs a merge with any union data inside the UploadStatus_Options, using the provided LocalUploadStatus
func (*UploadStatus_Options) MergeOCIUploadStatus ¶
func (t *UploadStatus_Options) MergeOCIUploadStatus(v OCIUploadStatus) error
MergeOCIUploadStatus performs a merge with any union data inside the UploadStatus_Options, using the provided OCIUploadStatus
func (*UploadStatus_Options) MergePulpOSTreeUploadStatus ¶
func (t *UploadStatus_Options) MergePulpOSTreeUploadStatus(v PulpOSTreeUploadStatus) error
MergePulpOSTreeUploadStatus performs a merge with any union data inside the UploadStatus_Options, using the provided PulpOSTreeUploadStatus
func (*UploadStatus_Options) UnmarshalJSON ¶
func (t *UploadStatus_Options) UnmarshalJSON(b []byte) error
type UploadTarget ¶
type UploadTarget struct { Type UploadTypes `json:"type"` // UploadOptions Options for a given upload destination. // This should really be oneOf but AWSS3UploadOptions is a subset of // AWSEC2UploadOptions. This means that all AWSEC2UploadOptions objects // are also valid AWSS3UploadOptionas objects which violates the oneOf // rules. Therefore, we have to use anyOf here but be aware that it isn't // possible to mix and match more schemas together. UploadOptions UploadOptions `json:"upload_options"` }
UploadTarget defines model for UploadTarget.
type UploadTypes ¶
type UploadTypes string
UploadTypes defines model for UploadTypes.
const ( UploadTypesAws UploadTypes = "aws" UploadTypesAwsS3 UploadTypes = "aws.s3" UploadTypesAzure UploadTypes = "azure" UploadTypesContainer UploadTypes = "container" UploadTypesGcp UploadTypes = "gcp" UploadTypesLocal UploadTypes = "local" UploadTypesOciObjectstorage UploadTypes = "oci.objectstorage" )
Defines values for UploadTypes.
type User ¶
type User struct { Groups *[]string `json:"groups,omitempty"` Key *string `json:"key,omitempty"` Name string `json:"name"` // Password If the password starts with $6$, $5$, or $2b$ it will be stored as // an encrypted password. Otherwise it will be treated as a plain text // password. Password *string `json:"password,omitempty"` }
User defines model for User.
type VolumeGroup ¶
type VolumeGroup struct { LogicalVolumes []LogicalVolume `json:"logical_volumes"` // Minsize size with data units Minsize *Minsize `json:"minsize,omitempty"` // Name Volume group name (will be automatically generated if omitted) Name *string `json:"name,omitempty"` // PartType The partition type GUID for GPT partitions. For DOS partitions, this field can be used to set the (2 hex digit) partition type. If not set, the type will be automatically set based on the mountpoint or the payload type. PartType *string `json:"part_type,omitempty"` Type VolumeGroupType `json:"type"` }
VolumeGroup defines model for VolumeGroup.
type VolumeGroupType ¶
type VolumeGroupType string
VolumeGroupType defines model for VolumeGroup.Type.
const (
Lvm VolumeGroupType = "lvm"
)
Defines values for VolumeGroupType.