Documentation
¶
Index ¶
- Constants
- func SetService(svc Service)
- type ActionsGetOptions
- type DefaultService
- func (*DefaultService) Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*Event, error)
- func (*DefaultService) GetByEnvironment(ctx context.ServiceContext, client *clients.GQLClient, env_id string) (*Events, error)
- func (*DefaultService) GetByEnvironmentAndIntegrationType(ctx context.ServiceContext, client *clients.GQLClient, env_id string, ...) (*Events, error)
- func (*DefaultService) GetByIntegration(ctx context.ServiceContext, client *clients.GQLClient, integration_id string) (*Events, error)
- func (*DefaultService) GetBySecret(ctx context.ServiceContext, client *clients.GQLClient, secret_id string) (*Events, error)
- type Event
- type Events
- type Header
- type Key
- type Service
- type SyncOptions
- type Type
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) Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*Event, error)
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 (*Event) GetEntityLink ¶ added in v1.1.7
Get the link of the entity link by the type of it's integration.
func (*Event) GetEntityTitle ¶ added in v1.1.7
Get the title of the entity by the type of it's integration.
func (*Event) GetEntityType ¶ added in v1.1.7
Get the type of entity by the type of it's integration.
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
}
Click to show internal directories.
Click to hide internal directories.