events

package
v1.1.15 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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VAULT_ROOT_TOKEN = "VAULT_ROOT_TOKEN"
)

Variables

This section is empty.

Functions

func SetService added in v1.1.8

func SetService(svc Service)

Types

type ActionsGetOptions added in v1.1.7

type ActionsGetOptions struct {
	EnvID string `json:"env_id,omitempty"`
}

type DefaultService added in v1.1.8

type DefaultService struct{}

func (*DefaultService) Get added in v1.1.8

func (*DefaultService) GetByEnvironment added in v1.1.8

func (*DefaultService) GetByEnvironment(ctx context.ServiceContext, client *clients.GQLClient, env_id string) (*Events, error)

func (*DefaultService) GetByEnvironmentAndIntegrationType added in v1.1.8

func (*DefaultService) GetByEnvironmentAndIntegrationType(ctx context.ServiceContext, client *clients.GQLClient, env_id string, integration_type integrations.Type) (*Events, error)

func (*DefaultService) GetByIntegration added in v1.1.8

func (*DefaultService) GetByIntegration(ctx context.ServiceContext, client *clients.GQLClient, integration_id string) (*Events, error)

func (*DefaultService) GetBySecret added in v1.1.8

func (*DefaultService) GetBySecret(ctx context.ServiceContext, client *clients.GQLClient, secret_id string) (*Events, error)

type Event added in v1.1.7

type Event struct {
	ID            string                   `json:"id,omitempty"`
	CreatedAt     time.Time                `json:"created_at,omitempty"`
	UpdatedAt     time.Time                `json:"updated_at,omitempty"`
	Name          string                   `json:"name,omitempty"`
	IntegrationID string                   `json:"integration_id,omitempty"`
	EnvID         string                   `json:"env_id,omitempty"`
	EntityDetails map[string]interface{}   `json:"entity_details,omitempty"`
	Integration   integrations.Integration `json:"integration,omitempty"`
}
func (e *Event) GetEntityLink() string

Get the link of the entity link by the type of it's integration.

func (*Event) GetEntityTitle added in v1.1.7

func (e *Event) GetEntityTitle() string

Get the title of the entity by the type of it's integration.

func (*Event) GetEntityType added in v1.1.7

func (e *Event) GetEntityType() string

Get the type of entity by the type of it's integration.

type Events added in v1.1.7

type Events []Event
type Header string
const (
	VAULT_TOKEN Header = "X-Vault-Token"
)

type Key added in v1.1.7

type Key string
const (
	ECDSA_P256   Key = "ecdsa-p256"
	AES256_GCM96 Key = "aes256-gcm96"
)

type Service added in v1.1.8

type Service interface {
	Get(context.ServiceContext, *clients.GQLClient, string) (*Event, error)
	GetBySecret(context.ServiceContext, *clients.GQLClient, string) (*Events, error)
	GetByEnvironment(context.ServiceContext, *clients.GQLClient, string) (*Events, error)
	GetByEnvironmentAndIntegrationType(context.ServiceContext, *clients.GQLClient, string, integrations.Type) (*Events, error)
	GetByIntegration(context.ServiceContext, *clients.GQLClient, string) (*Events, error)
}

func GetService added in v1.1.8

func GetService() Service

type SyncOptions added in v1.1.8

type SyncOptions struct {
	ID string
	KP *keypayload.KPMap
}

type Type added in v1.1.7

type Type string
const (
	Plaintext  Type = "plaintext"
	Ciphertext Type = "ciphertext"
)

Jump to

Keyboard shortcuts

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