chronicle

package module
v0.0.0-...-348c9a2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 10 Imported by: 0

README

secops-sdk

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivateParserExtensionRequest

type ActivateParserExtensionRequest struct {
	Path string
}

type ActivateParserRequest

type ActivateParserRequest struct {
	Path string
}

func NewActivateParserExtensionRequest

func NewActivateParserExtensionRequest(project, location, instance, logtype, extension string) *ActivateParserRequest

func NewActivateParserRequest

func NewActivateParserRequest(project, location, instance, logtype, parser string) *ActivateParserRequest

func NewDeactivateParserRequest

func NewDeactivateParserRequest(project, location, instance, logtype, parser string) *ActivateParserRequest

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context) *Client

func (*Client) ListLogTypes

func (c *Client) ListLogTypes(req ListLogTypesRequest) (*ListLogTypesResult, error)

type CreateParserExtensionRequest

type CreateParserExtensionRequest struct {
	Path       string
	CbnSnippet string
}

func NewCreateParserExtensionRequest

func NewCreateParserExtensionRequest(project, location, instance, logtype, cbnsnippet string) *CreateParserExtensionRequest

type CreateParserRequest

type CreateParserRequest struct {
	Path                 string
	Cbn                  string
	ValidatedOnEmptyLogs bool
}

func NewCreateParserRequest

func NewCreateParserRequest(project, location, instance, logtype string, cbn []byte, validatedonemptylogs bool) *CreateParserRequest

type DeactivateParserRequest

type DeactivateParserRequest struct {
	Path string
}

type DeleteParserExtensionRequest

type DeleteParserExtensionRequest struct {
	Path string
}

func NewDeleteParserExtensionRequest

func NewDeleteParserExtensionRequest(project, location, instance, logtype, parser string, force bool) *DeleteParserExtensionRequest

type DeleteParserRequest

type DeleteParserRequest struct {
	Path  string
	Force bool
}

func NewDeleteParserRequest

func NewDeleteParserRequest(project, location, instance, logtype, parser string, force bool) *DeleteParserRequest

type GetParserRequest

type GetParserRequest struct {
	Path string
}

func NewGetParserRequest

func NewGetParserRequest(project, location, instance, logtype, parser string) *GetParserRequest

type Instance

type Instance struct {
	Name string `json:"name,omitempty"`
}

type ListLogTypesRequest

type ListLogTypesRequest struct {
	Path      string
	PageSize  int
	PageToken string
}

func NewListLogTypesRequest

func NewListLogTypesRequest(project, location, instance string) *ListLogTypesRequest

type ListLogTypesResult

type ListLogTypesResult struct {
	LogTypes []LogType `json:"logTypes"`
}

type ListParsersRequest

type ListParsersRequest struct {
	Path      string
	PageSize  int
	PageToken string
	Filter    string
}

func NewListParsersRequest

func NewListParsersRequest(project, location, instance, logtype string) *ListParsersRequest

type ListParsersResult

type ListParsersResult struct {
	Parsers []Parser `json:"parsers"`
}

type LogType

type LogType struct {
	Name        string `json:"name,omitempty"`
	DisplayName string `json:"displayName,omitempty"`
	Golden      bool   `json:"golden,omitempty"`
}

type ParsedEvent

type ParsedEvent struct {
	Event  map[string]any `json:"event,omitempty"`
	Entity map[string]any `json:"entity,omitempty"`
}

type ParsedEvents

type ParsedEvents struct {
	Events []ParsedEvent `json:"events,omitempty"`
}

type Parser

type Parser struct {
	Name                 string            `json:"name,omitempty"`
	Creator              map[string]string `json:"creator,omitempty"`
	CreateTime           string            `json:"createTime,omitempty"`
	Changelogs           map[string]any    `json:"changelogs,omitempty"`
	ParserExtension      string            `json:"parserExtension,omitempty"`
	Type                 string            `json:"type,omitempty"`
	State                string            `json:"state,omitempty"`
	ValidationReport     string            `json:"validationReport,omitempty"`
	ValidatedOnEmptyLogs bool              `json:"validatedOnEmptyLogs,omitempty"`
	Cbn                  string            `json:"cbn,omitempty"`
	LowCode              map[string]any    `json:"lowCode,omitempty"`
	ReleaseStage         string            `json:"releaseStage,omitempty"`
	ValidationStage      string            `json:"validationStage,omitempty"`
}

type ParserExtension

type ParserExtension struct {
	CbnSnippet string `json:"cbnSnippet,omitempty"`
}

type ParserLogResult

type ParserLogResult struct {
	Log              string            `json:"log,omitempty"`
	StatedumpResults []StatedumpResult `json:"statedumpResults,omitempty"`
	ParsedEvents     ParsedEvents      `json:"parsedEvents,omitempty"`
	Error            Status            `json:",omitempty"`
}

type RunParserRequest

type RunParserRequest struct {
	Path             string
	Cbn              string
	CbnSnippet       string
	Log              []string
	StatedumpAllowed bool
}

func NewRunParserRequest

func NewRunParserRequest(project, location, instance, logtype string, cbn, cbnsnippet []byte, logs []string, statedumpallowed bool) *RunParserRequest

type RunParserResult

type RunParserResult struct {
	RunParserResults []ParserLogResult `json:"runParserResults"`
}

type StatedumpResult

type StatedumpResult struct {
	Label           string `json:"label,omitempty"`
	StatedumpResult string `json:"statedumpResult,omitempty"`
}

type Status

type Status struct {
	Code    int                 `json:"code,omitempty"`
	Message string              `json:"message,omitempty"`
	Details []map[string]string `json:"details,omitempty"`
}

Jump to

Keyboard shortcuts

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