Documentation ¶
Index ¶
- type BadReply
- type ClusterListGoodReply
- type ClustersFile
- type GoodReply
- type Message
- func (m *Message) FindLeftovers() (matches []string, found bool)
- func (m *Message) GetClusterID() string
- func (m *Message) GetClusterUUID() string
- func (m *Message) GetDescription() string
- func (m *Message) GetDocReferences() []string
- func (m *Message) GetEventStreamID() string
- func (m *Message) GetInternalOnly() bool
- func (m *Message) GetServiceName() string
- func (m *Message) GetSeverity() string
- func (m *Message) GetSubscriptionID() string
- func (m *Message) GetSummary() string
- func (m *Message) ReplaceWithFlag(variable, value string)
- func (m *Message) SearchFlag(placeholder string) (found bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterListGoodReply ¶ added in v0.4.2
type ClustersFile ¶ added in v0.8.0
type ClustersFile struct {
Clusters []string `json:"clusters"`
}
type GoodReply ¶
type GoodReply struct { ID string `json:"id"` Kind string `json:"kind"` Href string `json:"href"` Timestamp time.Time `json:"timestamp"` Severity string `json:"severity"` ServiceName string `json:"service_name"` ClusterUUID string `json:"cluster_uuid"` Summary string `json:"summary"` Description string `json:"description"` EventStreamID string `json:"event_stream_id"` CreatedAt time.Time `json:"created_at"` }
type Message ¶
type Message struct { Severity string `json:"severity"` ServiceName string `json:"service_name"` ClusterUUID string `json:"cluster_uuid,omitempty"` ClusterID string `json:"cluster_id,omitempty"` Summary string `json:"summary"` Description string `json:"description"` InternalOnly bool `json:"internal_only"` EventStreamID string `json:"event_stream_id"` SubscriptionID string `json:"subscription_id,omitempty"` DocReferences []string `json:"doc_references"` }
Message is the base template structure
func (*Message) FindLeftovers ¶
func (*Message) GetClusterID ¶ added in v0.9.0
func (*Message) GetClusterUUID ¶
func (*Message) GetDescription ¶
func (*Message) GetDocReferences ¶ added in v0.25.0
func (*Message) GetEventStreamID ¶ added in v0.4.4
func (*Message) GetInternalOnly ¶
func (*Message) GetServiceName ¶
func (*Message) GetSeverity ¶
func (*Message) GetSubscriptionID ¶ added in v0.9.0
func (*Message) GetSummary ¶
func (*Message) ReplaceWithFlag ¶
func (*Message) SearchFlag ¶
Click to show internal directories.
Click to hide internal directories.