Documentation ¶
Index ¶
- func Contains(s []string, el string) bool
- type Client
- func (c *Client) CreateAttachNIC(datacenterId, serverId, name string, dhcp bool, lanId int32, ips *[]string) (*sdkgo.Nic, error)
- func (c *Client) CreateAttachVolume(datacenterId, serverId string, volProperties *ClientVolumeProperties) (*sdkgo.Volume, error)
- func (c *Client) CreateDatacenter(name, location string) (*sdkgo.Datacenter, error)
- func (c *Client) CreateIpBlock(size int32, location string) (*sdkgo.IpBlock, error)
- func (c *Client) CreateLan(datacenterId, name string, public bool) (*sdkgo.LanPost, error)
- func (c *Client) CreateNat(datacenterId, name string, publicIps, flowlogs, natRules []string, ...) (*sdkgo.NatGateway, error)
- func (c *Client) CreateServer(datacenterId string, server sdkgo.Server) (*sdkgo.Server, error)
- func (c *Client) GetDatacenter(datacenterId string) (*sdkgo.Datacenter, error)
- func (c *Client) GetDatacenters() (*sdkgo.Datacenters, error)
- func (c *Client) GetImageById(imageId string) (*sdkgo.Image, error)
- func (c *Client) GetImages() (*sdkgo.Images, error)
- func (c *Client) GetIpBlockIps(ipBlock *sdkgo.IpBlock) (*[]string, error)
- func (c *Client) GetLan(datacenterId, LanId string) (*sdkgo.Lan, error)
- func (c *Client) GetLans(datacenterId string) (*sdkgo.Lans, error)
- func (c *Client) GetLocationById(regionId, locationId string) (*sdkgo.Location, error)
- func (c *Client) GetNat(datacenterId, natId string) (*sdkgo.NatGateway, error)
- func (c *Client) GetNats(datacenterId string) (*sdkgo.NatGateways, error)
- func (c *Client) GetNic(datacenterId, ServerId, NicId string) (*sdkgo.Nic, error)
- func (c *Client) GetServer(datacenterId, serverId string, depth int32) (*sdkgo.Server, error)
- func (c *Client) GetTemplates() (*sdkgo.Templates, error)
- func (c *Client) PatchNat(datacenterId, natId, name string, publicIps []string, ...) (*sdkgo.NatGateway, error)
- func (c *Client) RemoveDatacenter(datacenterId string) error
- func (c *Client) RemoveIpBlock(ipBlockId string) error
- func (c *Client) RemoveLan(datacenterId, lanId string) error
- func (c *Client) RemoveNat(datacenterId, natId string) error
- func (c *Client) RemoveNic(datacenterId, serverId, nicId string) error
- func (c *Client) RemoveServer(datacenterId, serverId string) error
- func (c *Client) RemoveVolume(datacenterId, volumeId string) error
- func (c *Client) RestartServer(datacenterId, serverId string) error
- func (c *Client) ResumeServer(datacenterId, serverId string) error
- func (c *Client) StartServer(datacenterId, serverId string) error
- func (c *Client) StopServer(datacenterId, serverId string) error
- func (c *Client) SuspendServer(datacenterId, serverId string) error
- func (c *Client) UpdateCloudInitFile(cloudInitYAML string, key string, values []interface{}, single_value bool, ...) (string, error)
- func (c *Client) WaitForNicIpChange(datacenterId, serverId, nicId string, timeout int) error
- type ClientService
- type ClientVolumeProperties
- type NatRuleMaker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
func (*Client) CreateAttachNIC ¶
func (*Client) CreateAttachVolume ¶
func (*Client) CreateDatacenter ¶
func (c *Client) CreateDatacenter(name, location string) (*sdkgo.Datacenter, error)
func (*Client) CreateIpBlock ¶
func (*Client) CreateServer ¶
func (*Client) GetDatacenter ¶
func (c *Client) GetDatacenter(datacenterId string) (*sdkgo.Datacenter, error)
func (*Client) GetDatacenters ¶
func (c *Client) GetDatacenters() (*sdkgo.Datacenters, error)
func (*Client) GetIpBlockIps ¶
func (*Client) GetLocationById ¶
func (*Client) GetNat ¶
func (c *Client) GetNat(datacenterId, natId string) (*sdkgo.NatGateway, error)
func (*Client) PatchNat ¶
func (c *Client) PatchNat(datacenterId, natId, name string, publicIps []string, lansToGateways []sdkgo.NatGatewayLanProperties) (*sdkgo.NatGateway, error)
func (*Client) RemoveDatacenter ¶
func (*Client) RemoveIpBlock ¶
func (*Client) RemoveServer ¶
func (*Client) RemoveVolume ¶
func (*Client) RestartServer ¶
func (*Client) ResumeServer ¶
func (*Client) StartServer ¶
func (*Client) StopServer ¶
func (*Client) SuspendServer ¶
func (*Client) UpdateCloudInitFile ¶
type ClientService ¶
type ClientService interface { UpdateCloudInitFile(cloudInitYAML string, key string, value []interface{}, single_value bool, behaviour string) (string, error) CreateIpBlock(size int32, location string) (*ionoscloud.IpBlock, error) GetIpBlockIps(ipBlock *ionoscloud.IpBlock) (*[]string, error) RemoveIpBlock(ipBlockId string) error CreateDatacenter(name, location string) (*ionoscloud.Datacenter, error) GetDatacenter(datacenterId string) (*ionoscloud.Datacenter, error) GetDatacenters() (*ionoscloud.Datacenters, error) RemoveDatacenter(datacenterId string) error CreateLan(datacenterId, name string, public bool) (*ionoscloud.LanPost, error) RemoveLan(datacenterId, lanId string) error CreateNat(datacenterId, name string, publicIps, flowlogs, natRules []string, lansToGateways map[string][]string, sourceSubnet string, skipDefaultRules bool) (*ionoscloud.NatGateway, error) PatchNat(datacenterId, natId, name string, publicIps []string, lansToGateways []ionoscloud.NatGatewayLanProperties) (*ionoscloud.NatGateway, error) GetNat(datacenterId string, natId string) (*ionoscloud.NatGateway, error) GetNats(datacenterId string) (*ionoscloud.NatGateways, error) RemoveNat(datacenterId, natId string) error CreateServer(datacenterId string, server ionoscloud.Server) (*ionoscloud.Server, error) GetServer(datacenterId, serverId string, depth int32) (*ionoscloud.Server, error) GetLan(datacenterId, LanId string) (*ionoscloud.Lan, error) GetLans(datacenterId string) (*ionoscloud.Lans, error) GetNic(datacenterId, ServerId, NicId string) (*ionoscloud.Nic, error) GetTemplates() (*ionoscloud.Templates, error) StartServer(datacenterId, serverId string) error ResumeServer(datacenterId, serverId string) error StopServer(datacenterId, serverId string) error SuspendServer(datacenterId, serverId string) error RestartServer(datacenterId, serverId string) error RemoveServer(datacenterId, serverId string) error RemoveVolume(datacenterId, volumeId string) error RemoveNic(datacenterId, serverId, nicId string) error GetLocationById(regionId, locationId string) (*ionoscloud.Location, error) GetImages() (*ionoscloud.Images, error) GetImageById(imageId string) (*ionoscloud.Image, error) WaitForNicIpChange(datacenterId, ServerId, NicId string, timeout int) error }
type ClientVolumeProperties ¶
type NatRuleMaker ¶
type NatRuleMaker struct {
// contains filtered or unexported fields
}
NatRuleMaker 's objective is to easily create many NatGatewayRules with similar properties but different open ports
func NewNRM ¶
func NewNRM(publicIp, srcSubnet, targetSubnet *string) NatRuleMaker
func (*NatRuleMaker) Make ¶
func (nrm *NatRuleMaker) Make() *[]sdkgo.NatGatewayRule
func (*NatRuleMaker) OpenPort ¶
func (nrm *NatRuleMaker) OpenPort(protocol string, port int32) *NatRuleMaker
func (*NatRuleMaker) OpenPorts ¶
func (nrm *NatRuleMaker) OpenPorts(protocol string, start int32, end int32) *NatRuleMaker
Click to show internal directories.
Click to hide internal directories.