Documentation ¶
Index ¶
- type Client
- func (c *Client) AddRouterBGPPeer(ctx context.Context, region, routerID string, bgpPeer CloudRouterBGPPeer) (*CloudRouter, error)
- func (c *Client) AddRouterInterface(ctx context.Context, region, routerID string, iface CloudRouterInterface) (*CloudRouter, error)
- func (c *Client) Close() error
- func (c *Client) CreateExternalVPNGateway(ctx context.Context, gw *ExternalVPNGateway) (*ExternalVPNGateway, error)
- func (c *Client) CreateVPNTunnel(ctx context.Context, tunnel *VPNTunnel, region string) (*VPNTunnel, error)
- func (c *Client) DeleteExternalVPNGateway(ctx context.Context, name string) error
- func (c *Client) DeleteRouterBGPPeer(ctx context.Context, region, routerID, name string) error
- func (c *Client) DeleteRouterInterface(ctx context.Context, region, routerID, name string) error
- func (c *Client) DeleteVPNTunnel(ctx context.Context, region, name string) error
- func (c *Client) FindVPNGatewaysForNetwork(ctx context.Context, region, networkID string) ([]*VPNGateway, error)
- func (c *Client) GetExternalVPNGateway(ctx context.Context, externalVPNGatewayID string) (*ExternalVPNGateway, error)
- func (c *Client) GetName() string
- func (c *Client) GetNetwork(ctx context.Context, networkID string) (*Network, error)
- func (c *Client) GetRouter(ctx context.Context, region, routerID string) (*CloudRouter, error)
- func (c *Client) GetSubnetwork(ctx context.Context, region, subnetworkID string) (*Subnetwork, error)
- func (c *Client) GetVPNGateway(ctx context.Context, region, gatewayID string) (*VPNGateway, error)
- func (c *Client) GetVPNTunnel(ctx context.Context, region, vpnTunnelID string) (*VPNTunnel, error)
- func (c *Client) ListExternalVPNGateway(ctx context.Context) ([]*ExternalVPNGateway, error)
- func (c *Client) ListNetworks(ctx context.Context) ([]*Network, error)
- func (c *Client) ListRouters(ctx context.Context, region string) ([]*CloudRouter, error)
- func (c *Client) ListVPNGateways(ctx context.Context, region string) ([]*VPNGateway, error)
- func (c *Client) ListVPNTunnels(ctx context.Context, region string) ([]*VPNTunnel, error)
- type CloudRouter
- type CloudRouterBGP
- type CloudRouterBGPPeer
- type CloudRouterInterface
- type ExternalVPNGateway
- type ExternalVPNGatewayInterface
- type Network
- type Subnetwork
- type VPNGateway
- type VPNTunnel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
NewClient instantiates a new GCP Client instance and sets an active project. If the project string is empty, the GCP Client will check how many projects are available, if there is only one, it will be picked. Otherwise, an error will be returned that the client does not know which project should be used.
func (*Client) AddRouterBGPPeer ¶
func (c *Client) AddRouterBGPPeer( ctx context.Context, region, routerID string, bgpPeer CloudRouterBGPPeer, ) (*CloudRouter, error)
func (*Client) AddRouterInterface ¶
func (c *Client) AddRouterInterface( ctx context.Context, region, routerID string, iface CloudRouterInterface, ) (*CloudRouter, error)
func (*Client) Close ¶
Close closes all internal clients used by this client.
Call it as soon as your main Client is not in use anymore.
func (*Client) CreateExternalVPNGateway ¶
func (c *Client) CreateExternalVPNGateway( ctx context.Context, gw *ExternalVPNGateway, ) (*ExternalVPNGateway, error)
func (*Client) CreateVPNTunnel ¶
func (*Client) DeleteExternalVPNGateway ¶
func (*Client) DeleteRouterBGPPeer ¶
func (*Client) DeleteRouterInterface ¶
func (*Client) DeleteVPNTunnel ¶
func (*Client) FindVPNGatewaysForNetwork ¶
func (*Client) GetExternalVPNGateway ¶
func (*Client) GetNetwork ¶
func (*Client) GetSubnetwork ¶
func (*Client) GetVPNGateway ¶
func (*Client) GetVPNTunnel ¶
func (*Client) ListExternalVPNGateway ¶
func (c *Client) ListExternalVPNGateway(ctx context.Context) ([]*ExternalVPNGateway, error)
func (*Client) ListNetworks ¶
func (*Client) ListRouters ¶
func (*Client) ListVPNGateways ¶
type CloudRouter ¶
type CloudRouter struct { Name string Network string BGP *CloudRouterBGP BGPPeers []CloudRouterBGPPeer URL string Interfaces []CloudRouterInterface }
func (CloudRouter) String ¶
func (c CloudRouter) String() string
type CloudRouterBGP ¶
func (CloudRouterBGP) String ¶
func (c CloudRouterBGP) String() string
type CloudRouterBGPPeer ¶
func (CloudRouterBGPPeer) String ¶
func (c CloudRouterBGPPeer) String() string
type CloudRouterInterface ¶
func (CloudRouterInterface) String ¶
func (c CloudRouterInterface) String() string
type ExternalVPNGateway ¶
type ExternalVPNGateway struct { Name string URL string Interfaces []ExternalVPNGatewayInterface }
func (ExternalVPNGateway) String ¶
func (e ExternalVPNGateway) String() string
type ExternalVPNGatewayInterface ¶
type ExternalVPNGatewayInterface struct {
IP string
}
func (ExternalVPNGatewayInterface) String ¶
func (e ExternalVPNGatewayInterface) String() string
type Subnetwork ¶
func (Subnetwork) String ¶
func (s Subnetwork) String() string
type VPNGateway ¶
func (VPNGateway) String ¶
func (v VPNGateway) String() string
Click to show internal directories.
Click to hide internal directories.