Documentation ¶
Index ¶
- func NewConnector(ctx context.Context, logger *logrus.Entry, config string) (provider.Provider, error)
- type AzureConnector
- func (c *AzureConnector) AddBGPAddressesToVnetGateway(ctx context.Context, cidrPools []*cidrpool.CIDRV4Pool, gatewayName string, ...) error
- func (c *AzureConnector) AttachToExternalGatewayWithBGP(ctx context.Context, gateway types.Gateway, peerGateway types.Gateway, ...) (types.OutputForConnectionWithBGP, error)
- func (c *AzureConnector) AttachToExternalGatewayWithStaticRouting() error
- func (c *AzureConnector) Close() error
- func (c *AzureConnector) DeleteConnectionResources(ctx context.Context, gateway types.Gateway, peerGateway types.Gateway) error
- func (c *AzureConnector) GenerateName(id string) string
- func (c *AzureConnector) GetCIDRs(ctx context.Context, gateway types.Gateway) ([]string, error)
- func (c *AzureConnector) GetGateway(ctx context.Context, gateway types.GatewayIdentifier) (*types.Gateway, error)
- func (c *AzureConnector) GetGatewayConnectionSettings(ctx context.Context, gateway types.Gateway) (types.GatewayConnectionSettings, error)
- func (c *AzureConnector) GetVPCForGateway(ctx context.Context, gateway types.Gateway) (string, error)
- func (c *AzureConnector) InitializeASN(ctx context.Context, gateway types.Gateway, peerGateway types.Gateway) (uint64, error)
- func (c *AzureConnector) InitializeCreation(ctx context.Context, gateway types.Gateway, peerGateway types.Gateway) error
- func (c *AzureConnector) InitializeGatewayInterfaces(ctx context.Context, gateway types.Gateway, peerGateway types.Gateway) ([]string, error)
- func (c *AzureConnector) IsNameOwnedByConnection(name string) bool
- func (c *AzureConnector) ListGateways(ctx context.Context) ([]types.Gateway, error)
- func (c *AzureConnector) Name() string
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AzureConnector ¶
type AzureConnector struct {
// contains filtered or unexported fields
}
func (*AzureConnector) AddBGPAddressesToVnetGateway ¶
func (c *AzureConnector) AddBGPAddressesToVnetGateway( ctx context.Context, cidrPools []*cidrpool.CIDRV4Pool, gatewayName string, numberOfTunnels uint8, ) error
func (*AzureConnector) AttachToExternalGatewayWithBGP ¶
func (c *AzureConnector) AttachToExternalGatewayWithBGP( ctx context.Context, gateway types.Gateway, peerGateway types.Gateway, attachMode types.AttachBGPConnectionMode, config types.CreateBGPConnectionConfig, ) (types.OutputForConnectionWithBGP, error)
func (*AzureConnector) AttachToExternalGatewayWithStaticRouting ¶
func (c *AzureConnector) AttachToExternalGatewayWithStaticRouting() error
NOT IMPLEMENTED
Just a placeholder for future CSP improvements.
func (*AzureConnector) Close ¶
func (c *AzureConnector) Close() error
func (*AzureConnector) DeleteConnectionResources ¶
func (*AzureConnector) GenerateName ¶
func (c *AzureConnector) GenerateName(id string) string
GenerateName generates a name for the resource in a specific manner, which allows to connect that particular resource with the connection it was created for.
Generate method adds a prefix with encoded string taken from names of both gateways that take place in the connection.
TODO: Design a way to handle possible name collisions with hashing algorithm being used here.
func (*AzureConnector) GetGateway ¶
func (c *AzureConnector) GetGateway(ctx context.Context, gateway types.GatewayIdentifier) (*types.Gateway, error)
func (*AzureConnector) GetGatewayConnectionSettings ¶
func (c *AzureConnector) GetGatewayConnectionSettings( ctx context.Context, gateway types.Gateway, ) (types.GatewayConnectionSettings, error)
func (*AzureConnector) GetVPCForGateway ¶
func (*AzureConnector) InitializeASN ¶
func (*AzureConnector) InitializeCreation ¶
func (*AzureConnector) InitializeGatewayInterfaces ¶
func (*AzureConnector) IsNameOwnedByConnection ¶
func (c *AzureConnector) IsNameOwnedByConnection(name string) bool
Returns true if the name, provided as an argument, indicates that the resource was created while creating a connection between GCP Cloud Router and AWS Transit Gateway from the configuration.
func (*AzureConnector) ListGateways ¶
func (*AzureConnector) Name ¶
func (c *AzureConnector) Name() string
Click to show internal directories.
Click to hide internal directories.