toalpha

package
v0.0.0-...-cedef19 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

toalpha contains functions that convert stable cloud protos to alpha cloud protos.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceleratorConfig

func AcceleratorConfig(config *compute.AcceleratorConfig) *computealpha.AcceleratorConfig

AcceleratorConfig converts a stable AcceleratorConfig to an alpha AcceleratorConfig.

func AccessConfig

func AccessConfig(config *compute.AccessConfig) *computealpha.AccessConfig

AccessConfig converts a stable AccessConfig to an alpha AccessConfig.

func AdvancedMachineFeatures

func AdvancedMachineFeatures(features *compute.AdvancedMachineFeatures) *computealpha.AdvancedMachineFeatures

AdvancedMachineFeatures converts a stable AdvancedMachineFeatures to an alpha AdvancedMachineFeatures.

func AliasIpRange

func AliasIpRange(rng *compute.AliasIpRange) *computealpha.AliasIpRange

AliasIpRange converts a stable AliasIpRange to an alpha AliasIpRange.

func AttachedDisk

func AttachedDisk(disk *compute.AttachedDisk) *computealpha.AttachedDisk

AttachedDisk converts a stable AttachedDisk to an alpha AttachedDisk.

func AttachedDiskInitializeParams

AttachedDiskInitializeParams converts a stable AttachedDiskInitializeParams to an alpha AttachedDiskInitializeParams.

func CustomerEncryptionKey

CustomerEncryptionKey converts a stable CustomerEncryptionKey to an alpha CustomerEncryptionKey.

func DisplayDevice

func DisplayDevice(device *compute.DisplayDevice) *computealpha.DisplayDevice

DisplayDevice converts a stable DisplayDevice to an alpha DisplayDevice.

func Duration

func Duration(duration *compute.Duration) *computealpha.Duration

Duration converts a stable Duration to an alpha Duration.

func FileContentBuffer

func FileContentBuffer(buffer *compute.FileContentBuffer) *computealpha.FileContentBuffer

FileContentBuffer converts a stable FileContentBuffer to an alpha FileContentBuffer.

func GuestOsFeature

func GuestOsFeature(feature *compute.GuestOsFeature) *computealpha.GuestOsFeature

GuestOsFeature converts a stable GuestOsFeature to an alpha GuestOsFeature.

func InitialStateConfig

func InitialStateConfig(config *compute.InitialStateConfig) *computealpha.InitialStateConfig

InitialStateConfig converts a stable InitialStateConfig to an alpha InitialStateConfig.

func Instance

func Instance(instance *compute.Instance) *computealpha.Instance

Instance converts a stable Instance to an alpha Instance.

func InstanceConfig

InstanceConfig converts a stable ConfidentialInstanceConfig to an alpha ConfidentialInstanceConfig.

func InstanceParams

func InstanceParams(params *compute.InstanceParams) *computealpha.InstanceParams

InstanceParams converts a stable InstanceParams to an alpha InstanceParams.

func MapSlice

func MapSlice[T any, U any](input []T, f func(T) U) []U

MapSlice takes a slice of Ts, applies a function to each T, and returns a slice of Us.

func Metadata

func Metadata(metadata *compute.Metadata) *computealpha.Metadata

Metadata converts a stable Metadata to an alpha Metadata.

func MetadataItems

func MetadataItems(items *compute.MetadataItems) *computealpha.MetadataItems

MetadataItems converts a stable MetadataItems to an alpha MetadataItems.

func NetworkInterface

func NetworkInterface(intf *compute.NetworkInterface) *computealpha.NetworkInterface

NetworkInterface converts a stable NetworkInterface to an alpha NetworkInterface.

func NetworkPerformanceConfig

func NetworkPerformanceConfig(config *compute.NetworkPerformanceConfig) *computealpha.NetworkPerformanceConfig

NetworkPerformanceConfig converts a stable NetworkPerformanceConfig to an alpha NetworkPerformanceConfig.

func ReservationAffinity

func ReservationAffinity(affinity *compute.ReservationAffinity) *computealpha.ReservationAffinity

ReservationAffinity converts a stable ReservationAffinity to an alpha ReservationAffinity.

func ResourceStatus

func ResourceStatus(status *compute.ResourceStatus) *computealpha.ResourceStatus

ResourceStatus converts a stable ResourceStatus to an alpha ResourceStatus.

func Scheduling

func Scheduling(scheduling *compute.Scheduling) *computealpha.Scheduling

Scheduling converts a stable Scheduling to an alpha Scheduling.

func SchedulingNodeAffinity

func SchedulingNodeAffinity(affinity *compute.SchedulingNodeAffinity) *computealpha.SchedulingNodeAffinity

SchedulingNodeAffinity converts a stable SchedulingNodeAffinity to an alpha SchedulingNodeAffinity.

func ServiceAccount

func ServiceAccount(account *compute.ServiceAccount) *computealpha.ServiceAccount

ServiceAccount converts a stable ServiceAccount to an alpha ServiceAccount.

func ShieldedInstanceConfig

func ShieldedInstanceConfig(config *compute.ShieldedInstanceConfig) *computealpha.ShieldedInstanceConfig

ShieldedInstanceConfig converts a sstable ShieldedInstanceConfig to an alpha ShieldedInstanceConfig.

func ShieldedInstanceIntegrityPolicy

ShieldedInstanceIntegrityPolicy converts a stable ShieldedInstanceIntegrityPolicy to an alpha ShieldedInstanceIntegrityPolicy.

func Tags

func Tags(tags *compute.Tags) *computealpha.Tags

Tags converts a stable Tags to an alpha Tags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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