Documentation
¶
Index ¶
- type BeginContainerLogsSessionCommand
- type BeginContainerLogsSessionResponse
- type BeginResourceEventsSessionRequest
- type BeginResourceEventsSessionResponse
- type ContainerLogLineResource
- type ContainerLogSessionId
- type GetContainerLogsRequest
- type GetContainerLogsResponse
- type GetLiveStatusRequest
- type GetLiveStatusResponse
- type GetResourceEventsRequest
- type GetResourceEventsResponse
- type GetResourceManifestRequest
- type GetResourceManifestResponse
- type GetResourceRequest
- type GetResourceResponse
- type KubernetesEventResource
- type KubernetesLiveStatusDetailedResource
- type KubernetesLiveStatusResource
- type KubernetesMachineLiveStatusResource
- type LiveResourceDiff
- type LiveStatusSummaryResource
- type ManifestSummary
- type ManifestSummaryResource
- type MonitorErrorResource
- type PodManifestSummary
- type ResourceEventsSessionId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeginContainerLogsSessionCommand ¶ added in v2.80.0
type BeginContainerLogsSessionCommand struct {
SpaceID string `json:"spaceId" validate:"required"`
ProjectID string `json:"projectId" validate:"required"`
EnvironmentID string `json:"environmentId" validate:"required"`
TenantID *string `json:"tenantId,omitempty"`
MachineID string `json:"machineId" validate:"required"`
DesiredOrKubernetesMonitoredResourceID string `json:"desiredOrKubernetesMonitoredResourceId" validate:"required"`
PodName string `json:"podName" validate:"required"`
ContainerName string `json:"containerName" validate:"required"`
ShowPreviousContainer bool `json:"showPreviousContainer"`
}
BeginContainerLogsSessionCommand represents a request to begin a container logs session Command to request the Kubernetes monitor to start sending logs for the specified container
func NewBeginContainerLogsSessionCommand ¶ added in v2.80.0
func NewBeginContainerLogsSessionCommand( spaceID, projectID, environmentID, machineID, desiredOrKubernetesMonitoredResourceID, podName, containerName string, showPreviousContainer bool, ) *BeginContainerLogsSessionCommand
NewBeginContainerLogsSessionCommand creates a new BeginContainerLogsSessionCommand
func (*BeginContainerLogsSessionCommand) Validate ¶ added in v2.80.0
func (c *BeginContainerLogsSessionCommand) Validate() error
Validate checks the state of the command and returns an error if invalid
type BeginContainerLogsSessionResponse ¶ added in v2.80.0
type BeginContainerLogsSessionResponse struct {
SessionID ContainerLogSessionId `json:"sessionId" validate:"required"`
Error *MonitorErrorResource `json:"error,omitempty"`
}
BeginContainerLogsSessionResponse represents the response from beginning a container logs session Response containing the session ID for a new container logs session
func BeginContainerLogsSessionWithClient ¶ added in v2.80.0
func BeginContainerLogsSessionWithClient(client newclient.Client, command *BeginContainerLogsSessionCommand) (*BeginContainerLogsSessionResponse, error)
BeginContainerLogsSessionWithClient begins a container logs session using the new client implementation
func NewBeginContainerLogsSessionResponse ¶ added in v2.80.0
func NewBeginContainerLogsSessionResponse(sessionID ContainerLogSessionId) *BeginContainerLogsSessionResponse
NewBeginContainerLogsSessionResponse creates a new BeginContainerLogsSessionResponse
func (*BeginContainerLogsSessionResponse) Validate ¶ added in v2.80.0
func (r *BeginContainerLogsSessionResponse) Validate() error
Validate checks the state of the response and returns an error if invalid
type BeginResourceEventsSessionRequest ¶ added in v2.80.0
type BeginResourceEventsSessionRequest struct {
SpaceID string `json:"spaceId" validate:"required"`
ProjectID string `json:"projectId" validate:"required"`
EnvironmentID string `json:"environmentId" validate:"required"`
TenantID *string `json:"tenantId,omitempty"`
MachineID string `json:"machineId" validate:"required"`
DesiredOrKubernetesMonitoredResourceID string `json:"desiredOrKubernetesMonitoredResourceId" validate:"required"`
}
BeginResourceEventsSessionRequest represents a request to begin a resource events session Request to start monitoring events for a specific Kubernetes resource
func NewBeginResourceEventsSessionRequest ¶ added in v2.80.0
func NewBeginResourceEventsSessionRequest(spaceID, projectID, environmentID, machineID, desiredOrKubernetesMonitoredResourceID string) *BeginResourceEventsSessionRequest
NewBeginResourceEventsSessionRequest creates a new BeginResourceEventsSessionRequest
func (*BeginResourceEventsSessionRequest) Validate ¶ added in v2.80.0
func (r *BeginResourceEventsSessionRequest) Validate() error
Validate checks the state of the request and returns an error if invalid
type BeginResourceEventsSessionResponse ¶ added in v2.80.0
type BeginResourceEventsSessionResponse struct {
SessionID ResourceEventsSessionId `json:"sessionId" validate:"required"`
}
BeginResourceEventsSessionResponse represents the response for beginning a resource events session Response containing a session ID for the event monitoring session
func BeginResourceEventsSessionWithClient ¶ added in v2.80.0
func BeginResourceEventsSessionWithClient(client newclient.Client, request *BeginResourceEventsSessionRequest) (*BeginResourceEventsSessionResponse, error)
BeginResourceEventsSessionWithClient begins a resource events session using the new client implementation
func NewBeginResourceEventsSessionResponse ¶ added in v2.80.0
func NewBeginResourceEventsSessionResponse(sessionID ResourceEventsSessionId) *BeginResourceEventsSessionResponse
NewBeginResourceEventsSessionResponse creates a new BeginResourceEventsSessionResponse
func (*BeginResourceEventsSessionResponse) Validate ¶ added in v2.80.0
func (r *BeginResourceEventsSessionResponse) Validate() error
Validate checks the state of the response and returns an error if invalid
type ContainerLogLineResource ¶
type ContainerLogLineResource struct {
Timestamp time.Time `json:"timestamp" validate:"required"`
Message string `json:"message" validate:"required"`
}
ContainerLogLineResource represents a single container log line
func NewContainerLogLineResource ¶
func NewContainerLogLineResource(timestamp time.Time, message string) *ContainerLogLineResource
NewContainerLogLineResource creates a new ContainerLogLineResource
func (*ContainerLogLineResource) Validate ¶
func (c *ContainerLogLineResource) Validate() error
Validate checks the state of the log line resource and returns an error if invalid
type ContainerLogSessionId ¶
type ContainerLogSessionId string
ContainerLogSessionId represents a container logs session identifier
type GetContainerLogsRequest ¶
type GetContainerLogsRequest struct {
SpaceID string `json:"spaceId" validate:"required"`
SessionID ContainerLogSessionId `json:"sessionId" validate:"required" uri:"sessionId" url:"sessionId"`
}
GetContainerLogsRequest represents a request to get container logs for a session Request for retrieving all the logs for the specified session
func NewGetContainerLogsRequest ¶
func NewGetContainerLogsRequest(spaceID string, sessionID ContainerLogSessionId) *GetContainerLogsRequest
NewGetContainerLogsRequest creates a new GetContainerLogsRequest
func (*GetContainerLogsRequest) Validate ¶
func (r *GetContainerLogsRequest) Validate() error
Validate checks the state of the request and returns an error if invalid
type GetContainerLogsResponse ¶
type GetContainerLogsResponse struct {
Logs []ContainerLogLineResource `json:"logs" validate:"required"`
IsSessionCompleted bool `json:"isSessionCompleted"`
Error *MonitorErrorResource `json:"error,omitempty"`
}
GetContainerLogsResponse represents the response containing logs for a sessionID Response containing the logs for a sessionID
func GetContainerLogsWithClient ¶
func GetContainerLogsWithClient(client newclient.Client, request *GetContainerLogsRequest) (*GetContainerLogsResponse, error)
GetContainerLogsWithClient retrieves container logs using the new client implementation
func NewGetContainerLogsResponse ¶
func NewGetContainerLogsResponse(logs []ContainerLogLineResource, isSessionCompleted bool) *GetContainerLogsResponse
NewGetContainerLogsResponse creates a new GetContainerLogsResponse
func (*GetContainerLogsResponse) Validate ¶
func (r *GetContainerLogsResponse) Validate() error
Validate checks the state of the response and returns an error if invalid
type GetLiveStatusRequest ¶ added in v2.80.0
type GetLiveStatusRequest struct {
SpaceID string `json:"spaceId" validate:"required"`
ProjectID string `json:"projectId" validate:"required" uri:"projectId" url:"projectId"`
EnvironmentID string `json:"environmentId" validate:"required" uri:"environmentId" url:"environmentId"`
TenantID *string `json:"tenantId,omitempty" uri:"tenantId" url:"tenantId"`
SummaryOnly bool `json:"summaryOnly"`
}
GetLiveStatusRequest represents a request to get live statuses for a Project/Environment/Tenant Request the live statuses for a Project/Environment/Tenant
func NewGetLiveStatusRequest ¶ added in v2.80.0
func NewGetLiveStatusRequest(spaceID, projectID, environmentID string) *GetLiveStatusRequest
NewGetLiveStatusRequest creates a new GetLiveStatusRequest
func NewGetLiveStatusRequestWithTenant ¶ added in v2.80.0
func NewGetLiveStatusRequestWithTenant(spaceID, projectID, environmentID, tenantID string) *GetLiveStatusRequest
NewGetLiveStatusRequestWithTenant creates a new GetLiveStatusRequest with tenant
func (*GetLiveStatusRequest) Validate ¶ added in v2.80.0
func (r *GetLiveStatusRequest) Validate() error
Validate checks the state of the request and returns an error if invalid
type GetLiveStatusResponse ¶ added in v2.80.0
type GetLiveStatusResponse struct {
MachineStatuses []KubernetesMachineLiveStatusResource `json:"machineStatuses" validate:"required"`
Summary LiveStatusSummaryResource `json:"summary" validate:"required"`
Error *MonitorErrorResource `json:"error,omitempty"`
}
GetLiveStatusResponse represents the live statuses for a given Project/Environment/Tenant Live statuses for a given Project/Environment/Tenant
func GetLiveStatusWithClient ¶ added in v2.80.0
func GetLiveStatusWithClient(client newclient.Client, request *GetLiveStatusRequest) (*GetLiveStatusResponse, error)
GetLiveStatusWithClient retrieves live status using the new client implementation
func NewGetLiveStatusResponse ¶ added in v2.80.0
func NewGetLiveStatusResponse(machineStatuses []KubernetesMachineLiveStatusResource, summary LiveStatusSummaryResource) *GetLiveStatusResponse
NewGetLiveStatusResponse creates a new GetLiveStatusResponse
func (*GetLiveStatusResponse) Validate ¶ added in v2.80.0
func (r *GetLiveStatusResponse) Validate() error
Validate checks the state of the response and returns an error if invalid
type GetResourceEventsRequest ¶
type GetResourceEventsRequest struct {
SpaceID string `json:"spaceId" validate:"required"`
SessionID ResourceEventsSessionId `json:"sessionId" validate:"required" uri:"sessionId" url:"sessionId"`
}
GetResourceEventsRequest represents a request to get resource events for a session Request for retrieving all the events for the specified session
func NewGetResourceEventsRequest ¶
func NewGetResourceEventsRequest(spaceID string, sessionID ResourceEventsSessionId) *GetResourceEventsRequest
NewGetResourceEventsRequest creates a new GetResourceEventsRequest
func (*GetResourceEventsRequest) Validate ¶
func (r *GetResourceEventsRequest) Validate() error
Validate checks the state of the request and returns an error if invalid
type GetResourceEventsResponse ¶
type GetResourceEventsResponse struct {
Events []KubernetesEventResource `json:"events" validate:"required"`
IsSessionCompleted bool `json:"isSessionCompleted"`
Error *MonitorErrorResource `json:"error,omitempty"`
}
GetResourceEventsResponse represents the response containing events for a sessionID Response containing the events for a sessionID
func GetResourceEventsWithClient ¶
func GetResourceEventsWithClient(client newclient.Client, request *GetResourceEventsRequest) (*GetResourceEventsResponse, error)
GetResourceEventsWithClient retrieves resource events using the new client implementation
func NewGetResourceEventsResponse ¶
func NewGetResourceEventsResponse(events []KubernetesEventResource, isSessionCompleted bool) *GetResourceEventsResponse
NewGetResourceEventsResponse creates a new GetResourceEventsResponse
func (*GetResourceEventsResponse) Validate ¶
func (r *GetResourceEventsResponse) Validate() error
Validate checks the state of the response and returns an error if invalid
type GetResourceManifestRequest ¶
type GetResourceManifestRequest struct {
SpaceID string `json:"spaceId" validate:"required"`
ProjectID string `json:"projectId" validate:"required" uri:"projectId" url:"projectId"`
EnvironmentID string `json:"environmentId" validate:"required" uri:"environmentId" url:"environmentId"`
MachineID string `json:"machineId" validate:"required" uri:"machineId" url:"machineId"`
DesiredOrKubernetesMonitoredResourceID string `` /* 155-byte string literal not displayed */
TenantID string `json:"tenantId,omitempty" uri:"tenantId,omitempty" url:"tenantId,omitempty"`
}
GetResourceManifestRequest represents a request to get a resource manifest Request for retrieving the manifest for a live kubernetes resource
func NewGetResourceManifestRequest ¶
func NewGetResourceManifestRequest(spaceID, projectID, environmentID, machineID, resourceID string) *GetResourceManifestRequest
NewGetResourceManifestRequest creates a new GetResourceManifestRequest for untenanted resources
func NewGetResourceManifestRequestWithTenant ¶
func NewGetResourceManifestRequestWithTenant(spaceID, projectID, environmentID, tenantID, machineID, resourceID string) *GetResourceManifestRequest
NewGetResourceManifestRequestWithTenant creates a new GetResourceManifestRequest for tenanted resources
func (*GetResourceManifestRequest) IsTenanted ¶
func (r *GetResourceManifestRequest) IsTenanted() bool
IsTenanted returns true if the request is for a tenanted resource
func (*GetResourceManifestRequest) Validate ¶
func (r *GetResourceManifestRequest) Validate() error
Validate checks the state of the request and returns an error if invalid
type GetResourceManifestResponse ¶
type GetResourceManifestResponse struct {
LiveManifest string `json:"liveManifest" validate:"required"`
DesiredManifest string `json:"desiredManifest,omitempty"`
Diff *LiveResourceDiff `json:"diff,omitempty"`
}
GetResourceManifestResponse represents the response from getting a resource manifest Contains the manifest for a live resource
func GetResourceManifestWithClient ¶
func GetResourceManifestWithClient(client newclient.Client, request *GetResourceManifestRequest) (*GetResourceManifestResponse, error)
GetResourceManifestWithClient retrieves a resource manifest using the new client implementation
func NewGetResourceManifestResponse ¶
func NewGetResourceManifestResponse(liveManifest string) *GetResourceManifestResponse
NewGetResourceManifestResponse creates a new GetResourceManifestResponse with required LiveManifest
func (*GetResourceManifestResponse) Validate ¶
func (r *GetResourceManifestResponse) Validate() error
Validate checks the state of the response and returns an error if invalid
type GetResourceRequest ¶ added in v2.80.0
type GetResourceRequest struct {
SpaceID string `json:"spaceId" validate:"required"`
ProjectID string `json:"projectId" validate:"required" uri:"projectId" url:"projectId"`
EnvironmentID string `json:"environmentId" validate:"required" uri:"environmentId" url:"environmentId"`
MachineID string `json:"machineId" validate:"required" uri:"machineId" url:"machineId"`
DesiredOrKubernetesMonitoredResourceID string `` /* 155-byte string literal not displayed */
TenantID string `json:"tenantId,omitempty" uri:"tenantId,omitempty" url:"tenantId,omitempty"`
}
GetResourceRequest represents a request to get a detailed summary of a live Kubernetes resource Request for retrieving detailed information about either a top-level resource or a child resource
func NewGetResourceRequest ¶ added in v2.80.0
func NewGetResourceRequest(spaceID, projectID, environmentID, machineID, resourceID string) *GetResourceRequest
NewGetResourceRequest creates a new GetResourceRequest for untenanted resources
func NewGetResourceRequestWithTenant ¶ added in v2.80.0
func NewGetResourceRequestWithTenant(spaceID, projectID, environmentID, tenantID, machineID, resourceID string) *GetResourceRequest
NewGetResourceRequestWithTenant creates a new GetResourceRequest for tenanted resources
func (*GetResourceRequest) IsTenanted ¶ added in v2.80.0
func (r *GetResourceRequest) IsTenanted() bool
IsTenanted returns true if the request is for a tenanted resource
func (*GetResourceRequest) Validate ¶ added in v2.80.0
func (r *GetResourceRequest) Validate() error
Validate checks the state of the request and returns an error if invalid
type GetResourceResponse ¶ added in v2.80.0
type GetResourceResponse struct {
Resource *KubernetesLiveStatusDetailedResource `json:"resource" validate:"required"`
}
GetResourceResponse represents the response containing detailed summary of a live kubernetes resource Contains detailed information about either a top-level resource or a child resource
func GetResourceWithClient ¶ added in v2.80.0
func GetResourceWithClient(client newclient.Client, request *GetResourceRequest) (*GetResourceResponse, error)
GetResourceWithClient retrieves detailed summary of a live kubernetes resource using the new client implementation
func NewGetResourceResponse ¶ added in v2.80.0
func NewGetResourceResponse(resource *KubernetesLiveStatusDetailedResource) *GetResourceResponse
NewGetResourceResponse creates a new GetResourceResponse with the provided resource
func (*GetResourceResponse) Validate ¶ added in v2.80.0
func (r *GetResourceResponse) Validate() error
Validate checks the state of the response and returns an error if invalid
type KubernetesEventResource ¶
type KubernetesEventResource struct {
FirstObservedTime time.Time `json:"firstObservedTime" validate:"required"`
LastObservedTime time.Time `json:"lastObservedTime" validate:"required"`
Count int `json:"count" validate:"required"`
Action string `json:"action" validate:"required"`
Reason string `json:"reason" validate:"required"`
Note string `json:"note" validate:"required"`
ReportingController string `json:"reportingController" validate:"required"`
ReportingInstance string `json:"reportingInstance" validate:"required"`
Type string `json:"type" validate:"required"`
Manifest string `json:"manifest" validate:"required"`
}
KubernetesEventResource represents a Kubernetes event resource
func NewKubernetesEventResource ¶
func NewKubernetesEventResource( firstObservedTime time.Time, lastObservedTime time.Time, count int, action string, reason string, note string, reportingController string, reportingInstance string, eventType string, manifest string, ) *KubernetesEventResource
NewKubernetesEventResource creates a new KubernetesEventResource
func (*KubernetesEventResource) Validate ¶
func (k *KubernetesEventResource) Validate() error
Validate checks the state of the event resource and returns an error if invalid
type KubernetesLiveStatusDetailedResource ¶ added in v2.80.0
type KubernetesLiveStatusDetailedResource struct {
Name string `json:"Name,omitempty"`
Namespace string `json:"Namespace,omitempty"`
Kind string `json:"Kind,omitempty"`
HealthStatus string `json:"HealthStatus,omitempty"`
SyncStatus *string `json:"SyncStatus,omitempty"`
MachineID string `json:"MachineId,omitempty"`
LastUpdated string `json:"LastUpdated,omitempty"`
ManifestSummary ManifestSummaryResource `json:"ManifestSummary,omitempty"`
Children []KubernetesLiveStatusDetailedResource `json:"Children,omitempty"`
DesiredResourceID *string `json:"DesiredResourceId,omitempty"`
ResourceID string `json:"ResourceId,omitempty"`
}
KubernetesLiveStatusDetailedResource represents detailed information about a live kubernetes resource
func (*KubernetesLiveStatusDetailedResource) UnmarshalJSON ¶ added in v2.80.0
func (r *KubernetesLiveStatusDetailedResource) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaling for KubernetesLiveStatusDetailedResource
func (*KubernetesLiveStatusDetailedResource) Validate ¶ added in v2.80.0
func (r *KubernetesLiveStatusDetailedResource) Validate() error
Validate checks the state of the detailed resource and returns an error if invalid
type KubernetesLiveStatusResource ¶ added in v2.80.0
type KubernetesLiveStatusResource struct {
Name string `json:"name" validate:"required"`
Namespace *string `json:"namespace,omitempty"`
Kind string `json:"kind" validate:"required"`
HealthStatus string `json:"healthStatus" validate:"required"`
SyncStatus *string `json:"syncStatus,omitempty"`
MachineID string `json:"machineId" validate:"required"`
Children []KubernetesLiveStatusResource `json:"children" validate:"required"`
DesiredResourceID *string `json:"desiredResourceId,omitempty"`
MonitoredResourceID *string `json:"monitoredResourceId,omitempty"`
}
KubernetesLiveStatusResource represents a Kubernetes resource live status
func NewKubernetesLiveStatusResource ¶ added in v2.80.0
func NewKubernetesLiveStatusResource( name string, kind string, healthStatus string, machineID string, children []KubernetesLiveStatusResource, ) *KubernetesLiveStatusResource
NewKubernetesLiveStatusResource creates a new KubernetesLiveStatusResource
func (*KubernetesLiveStatusResource) Validate ¶ added in v2.80.0
func (k *KubernetesLiveStatusResource) Validate() error
Validate checks the state of the live status resource and returns an error if invalid
type KubernetesMachineLiveStatusResource ¶ added in v2.80.0
type KubernetesMachineLiveStatusResource struct {
MachineID string `json:"machineId" validate:"required"`
Status string `json:"status" validate:"required"`
Resources []KubernetesLiveStatusResource `json:"resources" validate:"required"`
}
KubernetesMachineLiveStatusResource represents the live status for a specific machine
func NewKubernetesMachineLiveStatusResource ¶ added in v2.80.0
func NewKubernetesMachineLiveStatusResource(machineID, status string, resources []KubernetesLiveStatusResource) *KubernetesMachineLiveStatusResource
NewKubernetesMachineLiveStatusResource creates a new KubernetesMachineLiveStatusResource
func (*KubernetesMachineLiveStatusResource) Validate ¶ added in v2.80.0
func (k *KubernetesMachineLiveStatusResource) Validate() error
Validate checks the state of the machine status resource and returns an error if invalid
type LiveResourceDiff ¶
type LiveResourceDiff struct {
Left string `json:"left" validate:"required"`
Right string `json:"right" validate:"required"`
Diff string `json:"diff" validate:"required"`
}
LiveResourceDiff represents the diff between desired and live resource manifests
func NewLiveResourceDiff ¶
func NewLiveResourceDiff(left, right, diff string) *LiveResourceDiff
NewLiveResourceDiff creates a new LiveResourceDiff
func (*LiveResourceDiff) Validate ¶
func (d *LiveResourceDiff) Validate() error
Validate checks the state of the diff and returns an error if invalid
type LiveStatusSummaryResource ¶ added in v2.80.0
type LiveStatusSummaryResource struct {
Status string `json:"status" validate:"required"`
LastUpdated time.Time `json:"lastUpdated" validate:"required"`
}
LiveStatusSummaryResource represents a summary of the live status
func NewLiveStatusSummaryResource ¶ added in v2.80.0
func NewLiveStatusSummaryResource(status string, lastUpdated time.Time) *LiveStatusSummaryResource
NewLiveStatusSummaryResource creates a new LiveStatusSummaryResource
func (*LiveStatusSummaryResource) Validate ¶ added in v2.80.0
func (s *LiveStatusSummaryResource) Validate() error
Validate checks the state of the summary resource and returns an error if invalid
type ManifestSummary ¶ added in v2.80.0
type ManifestSummary struct {
Labels map[string]string `json:"Labels,omitempty"`
Annotations map[string]string `json:"Annotations,omitempty"`
CreationTimestamp time.Time `json:"CreationTimestamp,omitempty"`
}
ManifestSummary represents the detailed information about a kubernetes resource
func (*ManifestSummary) GetAnnotations ¶ added in v2.80.0
func (m *ManifestSummary) GetAnnotations() map[string]string
GetAnnotations returns the annotations map
func (*ManifestSummary) GetCreationTimestamp ¶ added in v2.80.0
func (m *ManifestSummary) GetCreationTimestamp() time.Time
GetCreationTimestamp returns the creation timestamp
func (*ManifestSummary) GetLabels ¶ added in v2.80.0
func (m *ManifestSummary) GetLabels() map[string]string
GetLabels returns the labels map
func (*ManifestSummary) Validate ¶ added in v2.80.0
func (r *ManifestSummary) Validate() error
Validate checks the state of the resource details and returns an error if invalid
type ManifestSummaryResource ¶ added in v2.80.0
type ManifestSummaryResource interface {
GetLabels() map[string]string
GetAnnotations() map[string]string
GetCreationTimestamp() time.Time
Validate() error
}
ManifestSummaryResource defines the interface for manifest summary resources
type MonitorErrorResource ¶
type MonitorErrorResource struct {
Message string `json:"message" validate:"required"`
Code string `json:"code,omitempty"`
}
MonitorErrorResource represents an error resource for monitoring operations
func NewMonitorErrorResource ¶
func NewMonitorErrorResource(message string, code string) *MonitorErrorResource
NewMonitorErrorResource creates a new MonitorErrorResource
func (*MonitorErrorResource) Validate ¶
func (e *MonitorErrorResource) Validate() error
Validate checks the state of the error resource and returns an error if invalid
type PodManifestSummary ¶ added in v2.80.0
type PodManifestSummary struct {
ManifestSummary
Containers []string `json:"Containers,omitempty"`
}
PodManifestSummary represents the detailed information about a kubernetes pod resource
func (*PodManifestSummary) GetContainers ¶ added in v2.80.0
func (p *PodManifestSummary) GetContainers() []string
GetContainers returns the list of container names
func (*PodManifestSummary) Validate ¶ added in v2.80.0
func (p *PodManifestSummary) Validate() error
Validate checks the state of the pod manifest summary and returns an error if invalid
type ResourceEventsSessionId ¶
type ResourceEventsSessionId string
ResourceEventsSessionId represents a resource events session identifier