commons

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_ID = "env_id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOptions

type CreateOptions struct {
	Name      string `json:"name"`
	ProjectID string `json:"project_id"`
	UserID    string `json:"user_id"`
}

type Environment

type Environment struct {
	ID        string    `json:"id,omitempty" graphql:"id,omitempty"`
	CreatedAt time.Time `json:"created_at,omitempty" graphql:"created_at,omitempty"`
	UpdatedAt time.Time `json:"updated_at,omitempty" graphql:"updated_at,omitempty"`
	Name      string    `json:"name,omitempty" graphql:"name,omitempty"`
	ProjectID string    `json:"project_id,omitempty" graphql:"project_id"`
	UserID    string    `json:"user_id"`
}

type ListOptions

type ListOptions struct {
	ProjectID string `json:"project_id"`
}

type SyncOptions

type SyncOptions struct {
	EnvID           string
	IntegrationType integrations.Type
	Secrets         *keypayload.KPMap
}

type SyncRequestOptions

type SyncRequestOptions struct {
	IntegrationType integrations.Type `json:"integration_type,omitempty"`
	Data            *keypayload.KPMap `json:"data"`
}

type SyncWithPasswordRequestOptions

type SyncWithPasswordRequestOptions struct {
	IntegrationType integrations.Type `json:"integration_type,omitempty"`
	Password        string            `json:"password" validate:"required"`
	Version         *int              `json:"version,omitempty"`

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

type UpdateOptions

type UpdateOptions struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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