common

package
v0.0.0-...-f1d8a81 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvServices      = "SERVICES"
	EnvAwsRegion     = "AWS_REGION" // reserved env
	EnvCustomGroups  = "CUSTOM_GROUPS"
	EnvSecretEnabled = "SECRET_ENABLED"
)

Variables

This section is empty.

Functions

func GetSession

func GetSession() (*session.Session, error)

Types

type ActionType

type ActionType string
const (
	AddSF    ActionType = "add"
	UpdateSF ActionType = "update"
	DeleteSF ActionType = "delete"
)

type Detail

type Detail struct {
	EventName         string            `json:"eventName"`
	RequestParameters RequestParameters `json:"requestParameters"`
}

type RequestParameters

type RequestParameters struct {
	Action      ActionType
	NewServices string `json:"newServices,omitempty"`
	OldServices string `json:"oldServices,omitempty"`
	NewCustom   string `json:"newCustom,omitempty"`
	OldCustom   string `json:"oldCustom,omitempty"`
	NewIsSecret string `json:"newIsSecret,omitempty"`
	OldIsSecret string `json:"oldIsSecret,omitempty"`
}

func ConvertToRequestParameters

func ConvertToRequestParameters(obj interface{}) (RequestParameters, error)

type SubscriptionFilterEvent

type SubscriptionFilterEvent struct {
	Detail Detail `json:"detail"`
}

func NewSubscriptionFilterEvent

func NewSubscriptionFilterEvent(params RequestParameters) SubscriptionFilterEvent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳