environments

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(sg *echo.Group)

func Create

Create a new environment

func CreateWithUserID

func CreateWithUserID(ctx context.ServiceContext, client *clients.GQLClient, options *commons.CreateOptions) (*commons.Environment, error)

func Delete

func Delete(ctx context.ServiceContext, client *clients.GQLClient, id string) error

Delete a environment by ID

func Get

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

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 SyncHandler(c echo.Context) error

func SyncWithPasswordHandler

func SyncWithPasswordHandler(c echo.Context) error

--- Flow ---

  1. Get the organisation ID linked to this environment.
  2. Decrypt the organisation's encryption key.
  3. Fetch the secrets of this environment. - Fetch the latest version if no version is specified in request payload.
  4. Decrypt the secrets using organisation's encryption key.
  5. Fetch the events linked to this environment.
  6. Call the integration service for each of the events to sync the secrets.

func Update

Update a environment by ID

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL