Documentation ¶
Index ¶
- Constants
- Variables
- func CleanupExitDescription(exitDescription string) string
- func ExtractExitStatusFromExitDescription(exitDescription string) string
- func FindCountSinceByApp(appGuid string, since time.Duration) int
- func GetCacheTime() *time.Time
- func IsCacheLoaded() bool
- func LoadCrashDataCache(cliConnection plugin.CliConnection)
- type ContainerCrashInfo
- func FindByApp(appGuid string) []*ContainerCrashInfo
- func FindLastCrashByApp(appGuid string) *ContainerCrashInfo
- func FindSinceByApp(appGuid string, since time.Duration) []*ContainerCrashInfo
- func NewContainerCrashInfo(containerIndex int, crashTime *time.Time, exitDescription string) *ContainerCrashInfo
- type ContainerCrashInfoSlice
- type EventData
- type EventDataMetadata
- type EventDataMetadataField
- type EventDataResource
- type EventDataResponse
Constants ¶
View Source
const UnknownName = "unknown"
Variables ¶
View Source
var (
LoadEventsUntilTime *time.Time
)
Functions ¶
func CleanupExitDescription ¶
func GetCacheTime ¶
func IsCacheLoaded ¶
func IsCacheLoaded() bool
func LoadCrashDataCache ¶
func LoadCrashDataCache(cliConnection plugin.CliConnection)
Types ¶
type ContainerCrashInfo ¶
func FindByApp ¶
func FindByApp(appGuid string) []*ContainerCrashInfo
func FindLastCrashByApp ¶
func FindLastCrashByApp(appGuid string) *ContainerCrashInfo
func FindSinceByApp ¶
func FindSinceByApp(appGuid string, since time.Duration) []*ContainerCrashInfo
func NewContainerCrashInfo ¶
func NewContainerCrashInfo(containerIndex int, crashTime *time.Time, exitDescription string) *ContainerCrashInfo
type ContainerCrashInfoSlice ¶
type ContainerCrashInfoSlice []*ContainerCrashInfo
func (ContainerCrashInfoSlice) Len ¶
func (p ContainerCrashInfoSlice) Len() int
func (ContainerCrashInfoSlice) Less ¶
func (p ContainerCrashInfoSlice) Less(i, j int) bool
func (ContainerCrashInfoSlice) Swap ¶
func (p ContainerCrashInfoSlice) Swap(i, j int)
type EventData ¶
type EventData struct { common.EntityCommon Type string `json:"type"` Actor string `json:"actor"` Actor_type string `json:"actor_type"` Actor_name string `json:"actor_name"` Actor_username string `json:"actor_username"` Actee string `json:"actee"` Actee_type string `json:"actee_type"` Actee_name string `json:"actee_name"` Timestamp string `json:"timestamp"` Space_guid string `json:"space_guid"` Organization_guid string `json:"organization_guid"` Metadata EventDataMetadataField `json:"metadata"` }
type EventDataMetadata ¶
func NewEventDataMetadata ¶
func NewEventDataMetadata(EventData EventData) *EventDataMetadata
func NewEventDataMetadataById ¶
func NewEventDataMetadataById(id string) *EventDataMetadata
type EventDataMetadataField ¶
type EventDataResource ¶
type EventDataResponse ¶
type EventDataResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []EventDataResource `json:"resources"` }
Click to show internal directories.
Click to hide internal directories.