environments

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_ID = "env_id"
)
View Source
const FREE_TIER_LIMIT_NUMBER_OF_ENVIRONMENTS = 4

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(sg *echo.Group)

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 ValidateInputHandler added in v1.1.11

func ValidateInputHandler(c echo.Context) error

Types

type SyncOptions added in v1.1.8

type SyncOptions struct {
	EventIDs []string          `json:"event_ids,omitempty"`
	Pairs    *keypayload.KPMap `json:"pairs"`
}

type SyncWithPasswordOptions added in v1.1.8

type SyncWithPasswordOptions struct {
	EventIDs []string
	Password string `json:"password" validate:"required"`
	Version  *int   `json:"version,omitempty"`

	// Name of the secret to sync.
	Key string `json:"key,omitempty"`
}

Jump to

Keyboard shortcuts

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