Documentation
¶
Index ¶
- func AddRoutes(sg *echo.Group)
- func Create(ctx context.ServiceContext, client *clients.GQLClient, ...) (*commons.Environment, error)
- func CreateWithUserID(ctx context.ServiceContext, client *clients.GQLClient, ...) (*commons.Environment, error)
- func Delete(ctx context.ServiceContext, client *clients.GQLClient, id string) error
- func Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*commons.Environment, error)
- func GetByNameAndProjectID(ctx context.ServiceContext, client *clients.GQLClient, name, project_id string) (*commons.Environment, error)
- func List(ctx context.ServiceContext, client *clients.GQLClient, ...) (*[]commons.Environment, error)
- func Sync(ctx context.ServiceContext, client *clients.GQLClient, ...) error
- func SyncHandler(c echo.Context) error
- func SyncWithPasswordHandler(c echo.Context) error
- func Update(ctx context.ServiceContext, client *clients.GQLClient, id string, ...) (*commons.Environment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.ServiceContext, client *clients.GQLClient, options *commons.CreateOptions) (*commons.Environment, error)
Create a new environment
func CreateWithUserID ¶
func CreateWithUserID(ctx context.ServiceContext, client *clients.GQLClient, options *commons.CreateOptions) (*commons.Environment, error)
func Get ¶
func Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*commons.Environment, error)
Get a environment by ID
func GetByNameAndProjectID ¶
func GetByNameAndProjectID(ctx context.ServiceContext, client *clients.GQLClient, name, project_id string) (*commons.Environment, error)
Get a environment by ID
func List ¶
func List(ctx context.ServiceContext, client *clients.GQLClient, options *commons.ListOptions) (*[]commons.Environment, error)
List environments
func Sync ¶
func Sync(ctx context.ServiceContext, client *clients.GQLClient, options *commons.SyncOptions) error
This function syncs the secrets of an environment with it's connected integrations. This function assumed that the secrets being supplied are already decrypted.
func SyncHandler ¶
func SyncWithPasswordHandler ¶
--- Flow ---
- Get the organisation ID linked to this environment.
- Decrypt the organisation's encryption key.
- Fetch the secrets of this environment. - Fetch the latest version if no version is specified in request payload.
- Decrypt the secrets using organisation's encryption key.
- Fetch the events linked to this environment.
- Call the integration service for each of the events to sync the secrets.
func Update ¶
func Update(ctx context.ServiceContext, client *clients.GQLClient, id string, options *commons.UpdateOptions) (*commons.Environment, error)
Update a environment by ID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.