converter

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package converter provides conversion methods for AWS models.

Package converter provides conversion methods for AWS models.

Package converter provides conversion methods for AWS models.

Package converter provides conversion methods for ec2 models.

Package converter provides conversion methods for ec2 models.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAddress

func DecodeAddress(data *ec2.Address) *provider.Address

DecodeAddress converts an ec2 Address to an Address.

func DecodeCommonError

func DecodeCommonError(msg string, err error) error

DecodeCommonError converts an AWS common client Error to a QXError.

func DecodeEC2Error

func DecodeEC2Error(msg string, err error) error

DecodeEC2Error converts an ec2 specific Error to a QXError.

func DecodeInstance

func DecodeInstance(data *ec2.Instance) *provider.Instance

DecodeInstance converts an ec2 Instance to an Instance.

func DecodeIpPermission

func DecodeIpPermission(data *ec2.IpPermission) *provider.IPPermission

DecodeIpPermission converts an ec2 IpPermission to an IPPermission.

func DecodeIpPermissions

func DecodeIpPermissions(data []*ec2.IpPermission) []*provider.IPPermission

DecodeIpPermissions converts an ec2 IpPermission slice to an IPPermission slice.

func DecodeIpRange

func DecodeIpRange(data *ec2.IpRange) *provider.IPRange

DecodeIpRange converts an ec2 IpRange to an IPRange.

func DecodeIpRanges

func DecodeIpRanges(data []*ec2.IpRange) []*provider.IPRange

DecodeIpRanges converts an ec2 IpRange slice to an IPRange slice.

func DecodeNetworkInterface

func DecodeNetworkInterface(data *ec2.InstanceNetworkInterface) *provider.NetworkInterface

DecodeNetworkInterface converts an ec2 InstanceNetworkInterface to a NetworkInterface.

func DecodeNetworkInterfaces

func DecodeNetworkInterfaces(data []*ec2.InstanceNetworkInterface) []*provider.NetworkInterface

DecodeNetworkInterfaces converts an ec2 InstanceNetworkInterface slice to a NetworkInterface slice.

func DecodeSecurityGroup

func DecodeSecurityGroup(data *ec2.SecurityGroup) *provider.FirewallRule

DecodeSecurityGroup converts an ec2 SecurityGroup to a Firewall.

func DecodeSecurityGroups

func DecodeSecurityGroups(data []*ec2.SecurityGroup) []*provider.FirewallRule

DecodeSecurityGroups converts an ec2 SecurityGroup slice to a Firewall slice.

func EncodeIPPermission

func EncodeIPPermission(req provider.IPPermission) *ec2.IpPermission

EncodeIPPermission converts an IPPermission to an ec2 IpPermission.

func EncodeIpRange

func EncodeIpRange(data *provider.IPRange) *ec2.IpRange

EncodeIpRange converts an IPRange to an ec2 IpRange.

func EncodeIpRanges

func EncodeIpRanges(data []*provider.IPRange) []*ec2.IpRange

EncodeIpRanges converts an IPRange slice to an ec2 IpRange slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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