Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { RetrieveResource(ctx context.Context, region, subaccountID string, resources resources.Resources, resourceMatchParams resources.ResourceMatchParameters) (string, error) RetrieveResourceByID(ctx context.Context, region, subaccountID string, resource resources.Resource) (resources.Resource, error) RetrieveRawResourceByID(ctx context.Context, region, subaccountID string, resource resources.Resource) (json.RawMessage, error) RetrieveMultipleResources(ctx context.Context, region, subaccountID string, resources resources.Resources, resourceMatchParams resources.ResourceMatchParameters) ([]string, error) RetrieveMultipleResourcesIDsByLabels(ctx context.Context, region, subaccountID string, resources resources.Resources, labels map[string][]string) ([]string, error) CreateResource(ctx context.Context, region, subaccountID string, resourceReqBody resources.ResourceRequestBody, resource resources.Resource) (string, error) DeleteResource(ctx context.Context, region, subaccountID string, resource resources.Resource) error DeleteMultipleResources(ctx context.Context, region, subaccountID string, resources resources.Resources, resourceMatchParams resources.ResourceMatchParameters) error DeleteMultipleResourcesByIDs(ctx context.Context, region, subaccountID string, resources resources.Resources, resourceIDs []string) error }
Client is used to call SM
type ErrorResponse ¶
ErrorResponse structure used for JSON encoded error response
type InstanceCreatorHandler ¶
type InstanceCreatorHandler struct { SMClient Client // contains filtered or unexported fields }
InstanceCreatorHandler processes received requests
func NewHandler ¶
func NewHandler(smClient Client, mtlsHTTPClient mtlsHTTPClient, connector persistence.DatabaseConnector) *InstanceCreatorHandler
NewHandler creates an InstanceCreatorHandler
func (*InstanceCreatorHandler) HandlerFunc ¶
func (i *InstanceCreatorHandler) HandlerFunc(w http.ResponseWriter, r *http.Request)
HandlerFunc is the implementation of InstanceCreatorHandler
type SuccessResponse ¶
type SuccessResponse struct { State string `json:"state,omitempty"` Configuration json.RawMessage `json:"configuration"` }
SuccessResponse structure used for JSON encoded success response
Click to show internal directories.
Click to hide internal directories.