Documentation
¶
Index ¶
Constants ¶
View Source
const ( EVENT_TYPE_STATE string = "state" EventTypeChange string = "change" EventActionCreated string = "created" EventActionUpdated string = "updated" EventActionDeleted string = "deleted" EventClassNamespace string = "discoveryItem/service/kubernetes/namespace" EventClassWorkload string = "discoveryItem/service/kubernetes/workload" EventScopeFormat string = "workspace/%s/configuration/%s" )
Variables ¶
This section is empty.
Functions ¶
func GenerateRunId ¶
func GenerateRunId() string
Types ¶
type CommandBody ¶
type CommandBody struct{}
type CommandBuilder ¶
type CommandBuilder interface { Header(header CommandProperties) CommandBuilder Body(body CommandBody) CommandBuilder Build() CommandEvent }
type CommandEvent ¶
type CommandEvent struct { Properties CommandProperties `json:"properties"` Body CommandBody `json:"body"` }
func CreateEndReplay ¶
func CreateEndReplay(workspaceId string, config KubernetesConfig) CommandEvent
func CreateStartReplay ¶
func CreateStartReplay(workspaceId string, config KubernetesConfig) CommandEvent
Command Events
type CommandProperties ¶
type DiscoveryBody ¶
type DiscoveryBody struct {
State State `json:"state"`
}
type DiscoveryEvent ¶
type DiscoveryEvent struct { HeaderProperties HeaderProperties `json:"properties"` Body DiscoveryBody `json:"body"` }
type HeaderProperties ¶
type KubernetesConfig ¶
type StatusItem ¶
type StatusItem struct { ID string `json:"id"` Scope string `json:"scope"` Type string `json:"type"` Source string `json:"source"` Time string `json:"time"` DataContentType string `json:"datacontenttype"` DataSchema string `json:"dataschema"` Subject string `json:"subject"` Data interface{} `json:"data"` }
func NewAdminLogEvent ¶
func NewStatusEvent ¶
Click to show internal directories.
Click to hide internal directories.