transitgateway

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Overview

Package transitgateway implements transitgateway code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service holds the IBM Cloud Resource Controller Service specific information.

func (*Service) CreateTransitGateway

CreateTransitGateway creates a transit gateway.

func (*Service) CreateTransitGatewayConnection

CreateTransitGatewayConnection creates a transit gateway connection.

func (*Service) DeleteTransitGateway

func (s *Service) DeleteTransitGateway(options *tgapiv1.DeleteTransitGatewayOptions) (*core.DetailedResponse, error)

DeleteTransitGateway deletes a transit gateway.

func (*Service) DeleteTransitGatewayConnection

func (s *Service) DeleteTransitGatewayConnection(options *tgapiv1.DeleteTransitGatewayConnectionOptions) (*core.DetailedResponse, error)

DeleteTransitGatewayConnection deletes a transit gateway connection.

func (*Service) GetTransitGateway

GetTransitGateway returns the specified transit gateway. If not found, returns error.

func (*Service) GetTransitGatewayByName

func (s *Service) GetTransitGatewayByName(name string) (*tgapiv1.TransitGateway, error)

GetTransitGatewayByName returns tranit gateway with given name. If not found, returns nil.

func (*Service) GetTransitGatewayConnection

GetTransitGatewayConnection returns a transit gateway connection.

func (*Service) ListTransitGatewayConnections

ListTransitGatewayConnections lists the transit gateway connections.

type TransitGateway

type TransitGateway interface {
	GetTransitGateway(*tgapiv1.GetTransitGatewayOptions) (*tgapiv1.TransitGateway, *core.DetailedResponse, error)
	GetTransitGatewayByName(name string) (*tgapiv1.TransitGateway, error)
	ListTransitGatewayConnections(*tgapiv1.ListTransitGatewayConnectionsOptions) (*tgapiv1.TransitGatewayConnectionCollection, *core.DetailedResponse, error)
	CreateTransitGateway(*tgapiv1.CreateTransitGatewayOptions) (*tgapiv1.TransitGateway, *core.DetailedResponse, error)
	CreateTransitGatewayConnection(*tgapiv1.CreateTransitGatewayConnectionOptions) (*tgapiv1.TransitGatewayConnectionCust, *core.DetailedResponse, error)
	GetTransitGatewayConnection(*tgapiv1.GetTransitGatewayConnectionOptions) (*tgapiv1.TransitGatewayConnectionCust, *core.DetailedResponse, error)
	DeleteTransitGateway(deleteTransitGatewayOptions *tgapiv1.DeleteTransitGatewayOptions) (response *core.DetailedResponse, err error)
	DeleteTransitGatewayConnection(deleteTransitGatewayConnectionOptions *tgapiv1.DeleteTransitGatewayConnectionOptions) (response *core.DetailedResponse, err error)
}

TransitGateway interface defines a method that a IBMCLOUD service object should implement in order to use the transitgateway package for listing resource instances.

func NewService

NewService returns a new service for the IBM Cloud Transit Gateway api client.

Jump to

Keyboard shortcuts

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