Documentation ¶
Overview ¶
Package transitgateway implements transitgateway code.
Index ¶
- type Service
- func (s *Service) CreateTransitGateway(options *tgapiv1.CreateTransitGatewayOptions) (*tgapiv1.TransitGateway, *core.DetailedResponse, error)
- func (s *Service) CreateTransitGatewayConnection(options *tgapiv1.CreateTransitGatewayConnectionOptions) (*tgapiv1.TransitGatewayConnectionCust, *core.DetailedResponse, error)
- func (s *Service) DeleteTransitGateway(options *tgapiv1.DeleteTransitGatewayOptions) (*core.DetailedResponse, error)
- func (s *Service) DeleteTransitGatewayConnection(options *tgapiv1.DeleteTransitGatewayConnectionOptions) (*core.DetailedResponse, error)
- func (s *Service) GetTransitGateway(options *tgapiv1.GetTransitGatewayOptions) (*tgapiv1.TransitGateway, *core.DetailedResponse, error)
- func (s *Service) GetTransitGatewayByName(name string) (*tgapiv1.TransitGateway, error)
- func (s *Service) GetTransitGatewayConnection(options *tgapiv1.GetTransitGatewayConnectionOptions) (*tgapiv1.TransitGatewayConnectionCust, *core.DetailedResponse, error)
- func (s *Service) ListTransitGatewayConnections(options *tgapiv1.ListTransitGatewayConnectionsOptions) (*tgapiv1.TransitGatewayConnectionCollection, *core.DetailedResponse, error)
- type TransitGateway
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 ¶
func (s *Service) CreateTransitGateway(options *tgapiv1.CreateTransitGatewayOptions) (*tgapiv1.TransitGateway, *core.DetailedResponse, error)
CreateTransitGateway creates a transit gateway.
func (*Service) CreateTransitGatewayConnection ¶
func (s *Service) CreateTransitGatewayConnection(options *tgapiv1.CreateTransitGatewayConnectionOptions) (*tgapiv1.TransitGatewayConnectionCust, *core.DetailedResponse, error)
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 ¶
func (s *Service) GetTransitGateway(options *tgapiv1.GetTransitGatewayOptions) (*tgapiv1.TransitGateway, *core.DetailedResponse, error)
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 ¶
func (s *Service) GetTransitGatewayConnection(options *tgapiv1.GetTransitGatewayConnectionOptions) (*tgapiv1.TransitGatewayConnectionCust, *core.DetailedResponse, error)
GetTransitGatewayConnection returns a transit gateway connection.
func (*Service) ListTransitGatewayConnections ¶
func (s *Service) ListTransitGatewayConnections(options *tgapiv1.ListTransitGatewayConnectionsOptions) (*tgapiv1.TransitGatewayConnectionCollection, *core.DetailedResponse, error)
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 ¶
func NewService(options *tgapiv1.TransitGatewayApisV1Options) (TransitGateway, error)
NewService returns a new service for the IBM Cloud Transit Gateway api client.