converters

package
v21.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketListFromAbstractToProtocol

func BucketListFromAbstractToProtocol(in []string) *protocol.BucketListResponse

BucketListFromAbstractToProtocol ...

func BucketListToProtocol

func BucketListToProtocol(in []string) *protocol.BucketListResponse

BucketListToProtocol convert a list of string into a *protocol.BucketListResponse

func ClusterCompositeFromPropertyToProtocol

func ClusterCompositeFromPropertyToProtocol(in propertiesv1.ClusterComposite) *protocol.ClusterComposite

ClusterCompositeFromPropertyToProtocol does what the name says

func ClusterControlplaneFromPropertyToProtocol

func ClusterControlplaneFromPropertyToProtocol(in propertiesv1.ClusterControlplane) *protocol.ClusterControlplane

ClusterControlplaneFromPropertyToProtocol does what the name says

func ClusterDefaultsFromPropertyV2ToProtocol added in v21.11.1

func ClusterDefaultsFromPropertyV2ToProtocol(in propertiesv2.ClusterDefaults) *protocol.ClusterDefaults

ClusterDefaultsFromPropertyV2ToProtocol does what the name says

func ClusterDefaultsFromPropertyV3ToProtocol added in v21.11.1

func ClusterDefaultsFromPropertyV3ToProtocol(in propertiesv3.ClusterDefaults) *protocol.ClusterDefaults

ClusterDefaultsFromPropertyV3ToProtocol does what the name says

func ClusterDefaultsPropertyV1ToV2

func ClusterDefaultsPropertyV1ToV2(in *propertiesv1.ClusterDefaults) *propertiesv2.ClusterDefaults

ClusterDefaultsPropertyV1ToV2 converts propertiesv1.ClusterDefaults to propertiesv2.ClusterDefaults

func ClusterFeaturesFromPropertyToProtocol

func ClusterFeaturesFromPropertyToProtocol(in propertiesv1.ClusterFeatures) (*protocol.FeatureListResponse, *protocol.FeatureListResponse)

ClusterFeaturesFromPropertyToProtocol does what the name says

func ClusterIdentityFromAbstractToProtocol

func ClusterIdentityFromAbstractToProtocol(in abstract.ClusterIdentity) *protocol.ClusterIdentity

ClusterIdentityFromAbstractToProtocol converts an abstract.ClusterIdentity to protocol.ClusterIdentity

func ClusterListFromAbstractToProtocol

func ClusterListFromAbstractToProtocol(in []abstract.ClusterIdentity) *protocol.ClusterListResponse

ClusterListFromAbstractToProtocol converts list of cluster identity to protocol.ClusterListResponse

func ClusterNetworkFromPropertyToProtocol

func ClusterNetworkFromPropertyToProtocol(in propertiesv3.ClusterNetwork) *protocol.ClusterNetwork

ClusterNetworkFromPropertyToProtocol does what the name says

func ClusterNodeFromPropertyToProtocol

func ClusterNodeFromPropertyToProtocol(in propertiesv3.ClusterNode) *protocol.Host

ClusterNodeFromPropertyToProtocol converts a propertiesv3.ClusterNode to a protocol.Host

func ClusterRequestFromProtocolToAbstract

func ClusterRequestFromProtocolToAbstract(in *protocol.ClusterCreateRequest) (_ *abstract.ClusterRequest, ferr fail.Error)

ClusterRequestFromProtocolToAbstract ...

func ClusterStateFromAbstractToProtocol

func ClusterStateFromAbstractToProtocol(in clusterstate.Enum) *protocol.ClusterStateResponse

ClusterStateFromAbstractToProtocol ...

func FeatureSettingsFromProtocolToResource

func FeatureSettingsFromProtocolToResource(in *protocol.FeatureSettings) resources.FeatureSettings

FeatureSettingsFromProtocolToResource ...

func FeatureSliceFromResourceToProtocol

func FeatureSliceFromResourceToProtocol(in []resources.Feature) *protocol.FeatureListResponse

func HostCoreFromAbstractToProtocol

func HostCoreFromAbstractToProtocol(in *abstract.HostCore) *protocol.Host

HostCoreFromAbstractToProtocol ...

func HostCoreToHostFull

func HostCoreToHostFull(in abstract.HostCore) *abstract.HostFull

HostCoreToHostFull ...

func HostDescriptionFromAbstractToPropertyV1

func HostDescriptionFromAbstractToPropertyV1(src abstract.HostDescription) *propertiesv1.HostDescription

HostDescriptionFromAbstractToPropertyV1 ...

func HostEffectiveSizingFromAbstractToPropertyV2

func HostEffectiveSizingFromAbstractToPropertyV2(ahes *abstract.HostEffectiveSizing) *propertiesv2.HostEffectiveSizing

HostEffectiveSizingFromAbstractToPropertyV2 ...

func HostEffectiveSizingFromAbstractToProtocol

func HostEffectiveSizingFromAbstractToProtocol(in *abstract.HostEffectiveSizing) *protocol.HostDefinition

HostEffectiveSizingFromAbstractToProtocol ...

func HostFullFromAbstractToProtocol

func HostFullFromAbstractToProtocol(in *abstract.HostFull) *protocol.Host

HostFullFromAbstractToProtocol ...

func HostNetworkingFromAbstractToPropertyV2

func HostNetworkingFromAbstractToPropertyV2(src abstract.HostNetworking) *propertiesv2.HostNetworking

HostNetworkingFromAbstractToPropertyV2 ...

func HostSizingRequirementsFromAbstractToPropertyV2

func HostSizingRequirementsFromAbstractToPropertyV2(src abstract.HostSizingRequirements) *propertiesv2.HostSizingRequirements

HostSizingRequirementsFromAbstractToPropertyV2 ...

func HostSizingRequirementsFromAbstractToProtocol

func HostSizingRequirementsFromAbstractToProtocol(src abstract.HostSizingRequirements) protocol.HostSizing

HostSizingRequirementsFromAbstractToProtocol converts a protobuf HostSizing message to abstract.HostSizingRequirements

func HostSizingRequirementsFromPropertyToProtocol

func HostSizingRequirementsFromPropertyToProtocol(in propertiesv2.HostSizingRequirements) *protocol.HostSizing

HostSizingRequirementsFromPropertyToProtocol ...

func HostSizingRequirementsFromProtocolToAbstract

func HostSizingRequirementsFromProtocolToAbstract(in *protocol.HostSizing) *abstract.HostSizingRequirements

func HostSizingRequirementsFromStringToAbstract

func HostSizingRequirementsFromStringToAbstract(in string) (*abstract.HostSizingRequirements, int, fail.Error)

HostSizingRequirementsFromStringToAbstract HostSizingFromStringToAbstract converts host sizing requirements from string to *abstract.HostSizingRequirements

func HostStateFromAbstractToProtocol

func HostStateFromAbstractToProtocol(in hoststate.Enum) protocol.HostState

HostStateFromAbstractToProtocol ...

func HostStateFromProtocolToEnum

func HostStateFromProtocolToEnum(in protocol.HostState) hoststate.Enum

HostStateFromProtocolToEnum converts a protocol.HostState to hoststate.Enum

func HostStatusFromAbstractToProtocol

func HostStatusFromAbstractToProtocol(name string, status hoststate.Enum) *protocol.HostStatus

HostStatusFromAbstractToProtocol ...

func HostTemplateFromAbstractToProtocol

func HostTemplateFromAbstractToProtocol(in abstract.HostTemplate) *protocol.HostTemplate

HostTemplateFromAbstractToProtocol ...

func HostTemplateToHostEffectiveSizing

func HostTemplateToHostEffectiveSizing(ht abstract.HostTemplate) *abstract.HostEffectiveSizing

HostTemplateToHostEffectiveSizing converts an abstract.HostTemplate to an abstract.HostEffectiveSizing

func ImageFromAbstractToProtocol

func ImageFromAbstractToProtocol(in *abstract.Image) *protocol.Image

ImageFromAbstractToProtocol ...

func NFSExportOptionsFromProtocolToString

func NFSExportOptionsFromProtocolToString(in *protocol.NFSExportOptions) string

func NFSExportOptionsFromStringToProtocol

func NFSExportOptionsFromStringToProtocol(in string) *protocol.NFSExportOptions

NFSExportOptionsFromStringToProtocol converts a string containing NFS export options as string to the (now deprecated) protocol message

func NetworkFromAbstractToProtocol

func NetworkFromAbstractToProtocol(in *abstract.Network) *protocol.Network

NetworkFromAbstractToProtocol ...

func NodeCountFromStringToInteger

func NodeCountFromStringToInteger(in string) (int, fail.Error)

NodeCountFromStringToInteger extracts initial node count from string

func SSHConfigFromAbstractToProtocol

func SSHConfigFromAbstractToProtocol(in system.SSHConfig) *protocol.SshConfig

SSHConfigFromAbstractToProtocol ...

func SSHConfigFromProtocolToSystem

func SSHConfigFromProtocolToSystem(from *protocol.SshConfig) *system.SSHConfig

SSHConfigFromProtocolToSystem converts a protocol.SshConfig into a system.SSHConfig

func SSHConfigFromSystemToProtocol

func SSHConfigFromSystemToProtocol(from *system.SSHConfig) *protocol.SshConfig

SSHConfigFromSystemToProtocol converts a system.SSHConfig into a SshConfig

func SecurityGroupBondsFromPropertyToProtocol

func SecurityGroupBondsFromPropertyToProtocol(in []*propertiesv1.SecurityGroupBond, target string) *protocol.SecurityGroupBondsResponse

SecurityGroupBondsFromPropertyToProtocol does what the name says

func SecurityGroupFromAbstractToProtocol

func SecurityGroupFromAbstractToProtocol(in abstract.SecurityGroup) *protocol.SecurityGroupResponse

SecurityGroupFromAbstractToProtocol converts an abstract.SecurityGroup to a *protocol.SecurityGroup

func SecurityGroupFromProtocolToAbstract

func SecurityGroupFromProtocolToAbstract(in *protocol.SecurityGroupResponse) (*abstract.SecurityGroup, fail.Error)

SecurityGroupFromProtocolToAbstract ...

func SecurityGroupRuleFromAbstractToProtocol

func SecurityGroupRuleFromAbstractToProtocol(in *abstract.SecurityGroupRule) *protocol.SecurityGroupRule

SecurityGroupRuleFromAbstractToProtocol converts an abstract.SecurityGroupRule to a *protocol.SecurityGroupRule

func SecurityGroupRuleFromProtocolToAbstract

func SecurityGroupRuleFromProtocolToAbstract(in *protocol.SecurityGroupRule) (*abstract.SecurityGroupRule, fail.Error)

SecurityGroupRuleFromProtocolToAbstract does what the name says

func SecurityGroupRulesFromAbstractToProtocol

func SecurityGroupRulesFromAbstractToProtocol(in abstract.SecurityGroupRules) []*protocol.SecurityGroupRule

SecurityGroupRulesFromAbstractToProtocol converts a []abstract.SecurityGroupRule to a []*protocol.SecurityGroupRule

func SecurityGroupRulesFromProtocolToAbstract

func SecurityGroupRulesFromProtocolToAbstract(in []*protocol.SecurityGroupRule) (abstract.SecurityGroupRules, fail.Error)

SecurityGroupRulesFromProtocolToAbstract does what the name says

func ShareFromPropertyToProtocol

func ShareFromPropertyToProtocol(hostName string, share *propertiesv1.HostShare) *protocol.ShareDefinition

ShareFromPropertyToProtocol convert a share from host to protocol message

func ShareMountFromPropertyToProtocol

func ShareMountFromPropertyToProtocol(shareName string, hostName string, mount *propertiesv1.HostRemoteMount) *protocol.ShareMountDefinition

ShareMountFromPropertyToProtocol convert share mount on host to protocol message

func ShareMountListFromPropertyToProtocol

func ShareMountListFromPropertyToProtocol(hostName string, share *propertiesv1.HostShare, mounts map[string]*propertiesv1.HostRemoteMount) *protocol.ShareMountList

ShareMountListFromPropertyToProtocol converts share mounts from host to protocol message

func SliceOfSecurityGroupBondFromPropertyToProtocol

func SliceOfSecurityGroupBondFromPropertyToProtocol(in []*propertiesv1.SecurityGroupBond) []*protocol.SecurityGroupBond

SliceOfSecurityGroupBondFromPropertyToProtocol does what the name says

func SubnetFromAbstractToProtocol

func SubnetFromAbstractToProtocol(in *abstract.Subnet) *protocol.Subnet

SubnetFromAbstractToProtocol ...

func VirtualIPFromAbstractToProtocol

func VirtualIPFromAbstractToProtocol(in abstract.VirtualIP) *protocol.VirtualIp

VirtualIPFromAbstractToProtocol converts a *abstract.VirtualIP to a protocol.VirtualIp

func VolumeAttachmentFromAbstractToProtocol

func VolumeAttachmentFromAbstractToProtocol(in *abstract.VolumeAttachment) *protocol.VolumeAttachmentResponse

VolumeAttachmentFromAbstractToProtocol ...

func VolumeSpeedFromAbstractToProtocol

func VolumeSpeedFromAbstractToProtocol(in volumespeed.Enum) protocol.VolumeSpeed

VolumeSpeedFromAbstractToProtocol ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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