Documentation ¶
Index ¶
Constants ¶
View Source
const ( PluginReviewName = "review" PluginAuditName = "audit" PluginEditorName = "editor" PluginRunbooksName = "runbooks" PluginSlackName = "slack" PluginAccessControlName = "access_control" PluginIndexName = "indexer" PluginDLPName = "dlp" PluginDatabaseCredentialsManagerName = "database-credentials-manager" PluginWebhookName = "webhooks" )
Variables ¶
View Source
var ( // AuditPath is the filesystem path where wal logs are stored. // The env PLUGIN_AUDIT_PATH should be used to set a new path AuditPath = os.Getenv("PLUGIN_AUDIT_PATH") // IndexPath is the filesytem path where index wal logs are stored IndexPath = os.Getenv("PLUGIN_INDEX_PATH") // registered at gateway/main.go RegisteredPlugins []Plugin )
Functions ¶
This section is empty.
Types ¶
type ConnectResponse ¶
type ConnectResponse struct { // The new context to propagate to the client transport layer Context context.Context // When this attribute is set, the packet will be sent to the client. // The transport layer must stop processing any further logic and // just wait for new client packets to arrive. // // This is useful when a plugin needs to intercept the current flow and // send a packet back to client. ClientPacket *pb.Packet }
type Context ¶
type Context struct { Context context.Context // Session ID SID string // Use Attributes OrgID string OrgName string OrgLicenseType string UserID string UserName string UserEmail string UserSlackID string UserGroups []string // Connection attributes ConnectionID string ConnectionName string ConnectionType string ConnectionSubType string ConnectionCommand []string ConnectionSecret map[string]any // Agent attributes AgentID string AgentName string AgentMode string // Plugin attributes PluginConnectionConfig []string // Gateway client attributes ClientVerb string ClientOrigin string Script string Labels map[string]string Metadata map[string]any ParamsData GenericMap }
func (Context) GetUserGroups ¶
type GenericMap ¶
func (GenericMap) Get ¶
func (m GenericMap) Get(key string) any
func (GenericMap) GetString ¶
func (m GenericMap) GetString(key string) string
func (GenericMap) Int64 ¶
func (m GenericMap) Int64(key string) int64
type InternalError ¶
type InternalError struct {
// contains filtered or unexported fields
}
func InternalErr ¶
func InternalErr(msg string, internalErr error) *InternalError
func (*InternalError) FullErr ¶
func (e *InternalError) FullErr() string
func (*InternalError) HasInternalErr ¶
func (e *InternalError) HasInternalErr() bool
type InvalidArgErr ¶
type InvalidArgErr struct {
// contains filtered or unexported fields
}
func InvalidArgument ¶
func InvalidArgument(format string, a ...any) *InvalidArgErr
Click to show internal directories.
Click to hide internal directories.