Documentation
¶
Index ¶
- Variables
- type Controller
- func (c *Controller) Create(ctx context.Context, session *auth.Session, in *CreateInput) (*types.Connector, error)
- func (c *Controller) Delete(ctx context.Context, session *auth.Session, spaceRef string, identifier string) error
- func (c *Controller) Find(ctx context.Context, session *auth.Session, spaceRef string, identifier string) (*types.Connector, error)
- func (c *Controller) Test(ctx context.Context, session *auth.Session, spaceRef string, identifier string) (types.ConnectorTestResponse, error)
- func (c *Controller) Update(ctx context.Context, session *auth.Session, spaceRef string, identifier string, ...) (*types.Connector, error)
- type CreateInput
- type UpdateInput
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideController, )
WireSet provides a wire set for this package.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( authorizer authz.Authorizer, connectorStore store.ConnectorStore, connectorService *connector.Service, spaceStore store.SpaceStore, ) *Controller
func ProvideController ¶
func ProvideController( connectorStore store.ConnectorStore, connectorService *connector.Service, authorizer authz.Authorizer, spaceStore store.SpaceStore, ) *Controller
func (*Controller) Create ¶
func (c *Controller) Create( ctx context.Context, session *auth.Session, in *CreateInput, ) (*types.Connector, error)
type CreateInput ¶
type CreateInput struct {
Description string `json:"description"`
SpaceRef string `json:"space_ref"` // Ref of the parent space
Identifier string `json:"identifier"`
Type enum.ConnectorType `json:"type"`
types.ConnectorConfig
}
type UpdateInput ¶
type UpdateInput struct {
Identifier *string `json:"identifier"`
Description *string `json:"description"`
*types.ConnectorConfig
}
UpdateInput is used for updating a connector.
Click to show internal directories.
Click to hide internal directories.