Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateAPIGateway(ctx context.Context, d *schema.ResourceData) (apigateway.GatewayRead, *apigateway.APIResponse, error)
- func (c *Client) CreateRoute(ctx context.Context, d *schema.ResourceData) (apigateway.RouteRead, *apigateway.APIResponse, error)
- func (c *Client) DeleteAPIGateway(ctx context.Context, id string) (*apigateway.APIResponse, error)
- func (c *Client) DeleteRoute(ctx context.Context, gatewayID string, routeID string) (*apigateway.APIResponse, error)
- func (c *Client) GetAPIGatewayByID(ctx context.Context, id string) (apigateway.GatewayRead, *apigateway.APIResponse, error)
- func (c *Client) GetRouteByID(ctx context.Context, gatewayID string, routeID string) (apigateway.RouteRead, *apigateway.APIResponse, error)
- func (c *Client) IsAPIGatewayRouteAvailable(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) IsAPIGatewayRouteDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) IsGatewayDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) IsGatewayReady(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) ListAPIGateways(ctx context.Context) (apigateway.GatewayReadList, *apigateway.APIResponse, error)
- func (c *Client) ListRoutes(ctx context.Context, gatewayID string) (apigateway.RouteReadList, *apigateway.APIResponse, error)
- func (c *Client) SetAPIGatewayData(d *schema.ResourceData, apiGateway apigateway.GatewayRead) error
- func (c *Client) SetAPIGatewayRouteData(d *schema.ResourceData, route apigateway.RouteRead) error
- func (c *Client) UpdateAPIGateway(ctx context.Context, d *schema.ResourceData) (apigateway.GatewayRead, *apigateway.APIResponse, error)
- func (c *Client) UpdateRoute(ctx context.Context, d *schema.ResourceData) (apigateway.RouteRead, *apigateway.APIResponse, error)
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
}
Client is a wrapper for the API Gateway SDK client
func (*Client) CreateAPIGateway ¶
func (c *Client) CreateAPIGateway(ctx context.Context, d *schema.ResourceData) (apigateway.GatewayRead, *apigateway.APIResponse, error)
CreateAPIGateway creates a new gateway
func (*Client) CreateRoute ¶
func (c *Client) CreateRoute(ctx context.Context, d *schema.ResourceData) (apigateway.RouteRead, *apigateway.APIResponse, error)
CreateRoute sends a POST request with the given data to the API to create a route.
func (*Client) DeleteAPIGateway ¶
func (c *Client) DeleteAPIGateway(ctx context.Context, id string) (*apigateway.APIResponse, error)
DeleteAPIGateway deletes a gateway given an ID
func (*Client) DeleteRoute ¶
func (c *Client) DeleteRoute(ctx context.Context, gatewayID string, routeID string) (*apigateway.APIResponse, error)
DeleteRoute sends a DELETE request to the API to delete a route by ID from a given gateway.
func (*Client) GetAPIGatewayByID ¶
func (c *Client) GetAPIGatewayByID(ctx context.Context, id string) (apigateway.GatewayRead, *apigateway.APIResponse, error)
GetAPIGatewayByID returns a gateway given an ID
func (*Client) GetRouteByID ¶
func (c *Client) GetRouteByID(ctx context.Context, gatewayID string, routeID string) (apigateway.RouteRead, *apigateway.APIResponse, error)
GetRouteByID sends a GET request to the API to retrieve a route by ID from a given gateway.
func (*Client) IsAPIGatewayRouteAvailable ¶
func (c *Client) IsAPIGatewayRouteAvailable(ctx context.Context, d *schema.ResourceData) (bool, error)
IsAPIGatewayRouteAvailable checks if the API Gateway Route is available.
func (*Client) IsAPIGatewayRouteDeleted ¶
func (c *Client) IsAPIGatewayRouteDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
IsAPIGatewayRouteDeleted checks if the API Gateway Route has been deleted.
func (*Client) IsGatewayDeleted ¶
IsGatewayDeleted checks if the gateway is deleted
func (*Client) IsGatewayReady ¶
IsGatewayReady checks if the gateway is ready
func (*Client) ListAPIGateways ¶
func (c *Client) ListAPIGateways(ctx context.Context) (apigateway.GatewayReadList, *apigateway.APIResponse, error)
ListAPIGateways returns a list of all gateways
func (*Client) ListRoutes ¶
func (c *Client) ListRoutes(ctx context.Context, gatewayID string) (apigateway.RouteReadList, *apigateway.APIResponse, error)
ListRoutes sends a GET request to the API to retrieve all routes from a given gateway.
func (*Client) SetAPIGatewayData ¶
func (c *Client) SetAPIGatewayData(d *schema.ResourceData, apiGateway apigateway.GatewayRead) error
SetAPIGatewayData sets the data of the gateway in the terraform resource
func (*Client) SetAPIGatewayRouteData ¶
func (c *Client) SetAPIGatewayRouteData(d *schema.ResourceData, route apigateway.RouteRead) error
SetAPIGatewayRouteData sets the data for the API Gateway Route.
func (*Client) UpdateAPIGateway ¶
func (c *Client) UpdateAPIGateway(ctx context.Context, d *schema.ResourceData) (apigateway.GatewayRead, *apigateway.APIResponse, error)
UpdateAPIGateway updates a gateway given an ID or creates a new one if it doesn't exist
func (*Client) UpdateRoute ¶
func (c *Client) UpdateRoute(ctx context.Context, d *schema.ResourceData) (apigateway.RouteRead, *apigateway.APIResponse, error)
UpdateRoute sends a PUT request with the given data to the API to update the route.