Documentation
¶
Index ¶
- Constants
- func MarshalBooleanList(list []bool, writer io.Writer) error
- func MarshalDateList(list []time.Time, writer io.Writer) error
- func MarshalFloatList(list []float64, writer io.Writer) error
- func MarshalIntegerList(list []int, writer io.Writer) error
- func MarshalInterfaceList(list []interface{}, writer io.Writer) error
- func MarshalLogEntry(object *LogEntry, writer io.Writer) error
- func MarshalLogEntryList(list []*LogEntry, writer io.Writer) error
- func MarshalLogTypeList(list []LogType, writer io.Writer) error
- func MarshalLongList(list []int64, writer io.Writer) error
- func MarshalMetadata(object *Metadata, writer io.Writer) error
- func MarshalSeverityList(list []Severity, writer io.Writer) error
- func MarshalStringList(list []string, writer io.Writer) error
- func ReadBooleanList(iterator *jsoniter.Iterator) []bool
- func ReadDateList(iterator *jsoniter.Iterator) []time.Time
- func ReadFloatList(iterator *jsoniter.Iterator) []float64
- func ReadIntegerList(iterator *jsoniter.Iterator) []int
- func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{}
- func ReadLongList(iterator *jsoniter.Iterator) []int64
- func ReadStringList(iterator *jsoniter.Iterator) []string
- func UnmarshalBooleanList(source interface{}) (items []bool, err error)
- func UnmarshalDateList(source interface{}) (items []time.Time, err error)
- func UnmarshalFloatList(source interface{}) (items []float64, err error)
- func UnmarshalIntegerList(source interface{}) (items []int, err error)
- func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error)
- func UnmarshalLongList(source interface{}) (items []int64, err error)
- func UnmarshalStringList(source interface{}) (items []string, err error)
- func WriteBooleanList(list []bool, stream *jsoniter.Stream)
- func WriteDateList(list []time.Time, stream *jsoniter.Stream)
- func WriteFloatList(list []float64, stream *jsoniter.Stream)
- func WriteIntegerList(list []int, stream *jsoniter.Stream)
- func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream)
- func WriteLogEntry(object *LogEntry, stream *jsoniter.Stream)
- func WriteLogEntryList(list []*LogEntry, stream *jsoniter.Stream)
- func WriteLogTypeList(list []LogType, stream *jsoniter.Stream)
- func WriteLongList(list []int64, stream *jsoniter.Stream)
- func WriteSeverityList(list []Severity, stream *jsoniter.Stream)
- func WriteStringList(list []string, stream *jsoniter.Stream)
- type LogEntry
- func (o *LogEntry) ClusterID() string
- func (o *LogEntry) ClusterUUID() string
- func (o *LogEntry) CreatedAt() time.Time
- func (o *LogEntry) CreatedBy() string
- func (o *LogEntry) Description() string
- func (o *LogEntry) DocReferences() []string
- func (o *LogEntry) Empty() bool
- func (o *LogEntry) EventStreamID() string
- func (o *LogEntry) GetClusterID() (value string, ok bool)
- func (o *LogEntry) GetClusterUUID() (value string, ok bool)
- func (o *LogEntry) GetCreatedAt() (value time.Time, ok bool)
- func (o *LogEntry) GetCreatedBy() (value string, ok bool)
- func (o *LogEntry) GetDescription() (value string, ok bool)
- func (o *LogEntry) GetDocReferences() (value []string, ok bool)
- func (o *LogEntry) GetEventStreamID() (value string, ok bool)
- func (o *LogEntry) GetHREF() (value string, ok bool)
- func (o *LogEntry) GetID() (value string, ok bool)
- func (o *LogEntry) GetInternalOnly() (value bool, ok bool)
- func (o *LogEntry) GetLogType() (value LogType, ok bool)
- func (o *LogEntry) GetServiceName() (value string, ok bool)
- func (o *LogEntry) GetSeverity() (value Severity, ok bool)
- func (o *LogEntry) GetSubscriptionID() (value string, ok bool)
- func (o *LogEntry) GetSummary() (value string, ok bool)
- func (o *LogEntry) GetTimestamp() (value time.Time, ok bool)
- func (o *LogEntry) GetUsername() (value string, ok bool)
- func (o *LogEntry) HREF() string
- func (o *LogEntry) ID() string
- func (o *LogEntry) InternalOnly() bool
- func (o *LogEntry) Kind() string
- func (o *LogEntry) Link() bool
- func (o *LogEntry) LogType() LogType
- func (o *LogEntry) ServiceName() string
- func (o *LogEntry) Severity() Severity
- func (o *LogEntry) SubscriptionID() string
- func (o *LogEntry) Summary() string
- func (o *LogEntry) Timestamp() time.Time
- func (o *LogEntry) Username() string
- type LogEntryBuilder
- func (b *LogEntryBuilder) Build() (object *LogEntry, err error)
- func (b *LogEntryBuilder) ClusterID(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) ClusterUUID(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) Copy(object *LogEntry) *LogEntryBuilder
- func (b *LogEntryBuilder) CreatedAt(value time.Time) *LogEntryBuilder
- func (b *LogEntryBuilder) CreatedBy(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) Description(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) DocReferences(values ...string) *LogEntryBuilder
- func (b *LogEntryBuilder) Empty() bool
- func (b *LogEntryBuilder) EventStreamID(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) HREF(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) ID(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) InternalOnly(value bool) *LogEntryBuilder
- func (b *LogEntryBuilder) Link(value bool) *LogEntryBuilder
- func (b *LogEntryBuilder) LogType(value LogType) *LogEntryBuilder
- func (b *LogEntryBuilder) ServiceName(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) Severity(value Severity) *LogEntryBuilder
- func (b *LogEntryBuilder) SubscriptionID(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) Summary(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) Timestamp(value time.Time) *LogEntryBuilder
- func (b *LogEntryBuilder) Username(value string) *LogEntryBuilder
- type LogEntryList
- func (l *LogEntryList) Each(f func(item *LogEntry) bool)
- func (l *LogEntryList) Empty() bool
- func (l *LogEntryList) Get(i int) *LogEntry
- func (l *LogEntryList) GetHREF() (value string, ok bool)
- func (l *LogEntryList) HREF() string
- func (l *LogEntryList) Items() []*LogEntry
- func (l *LogEntryList) Kind() string
- func (l *LogEntryList) Len() int
- func (l *LogEntryList) Link() bool
- func (l *LogEntryList) Range(f func(index int, item *LogEntry) bool)
- func (l *LogEntryList) SetHREF(href string)
- func (l *LogEntryList) SetItems(items []*LogEntry)
- func (l *LogEntryList) SetLink(link bool)
- func (l *LogEntryList) Slice() []*LogEntry
- type LogEntryListBuilder
- type LogType
- type Metadata
- type Severity
Constants ¶
const LogEntryKind = "LogEntry"
LogEntryKind is the name of the type used to represent objects of type 'log_entry'.
const LogEntryLinkKind = "LogEntryLink"
LogEntryLinkKind is the name of the type used to represent links to objects of type 'log_entry'.
const LogEntryListKind = "LogEntryList"
LogEntryListKind is the name of the type used to represent list of objects of type 'log_entry'.
const LogEntryListLinkKind = "LogEntryListLink"
LogEntryListLinkKind is the name of the type used to represent links to list of objects of type 'log_entry'.
const LogEntryListNilKind = "LogEntryListNil"
LogEntryNilKind is the name of the type used to nil lists of objects of type 'log_entry'.
const LogEntryNilKind = "LogEntryNil"
LogEntryNilKind is the name of the type used to nil references to objects of type 'log_entry'.
Variables ¶
This section is empty.
Functions ¶
func MarshalBooleanList ¶
MarshalBooleanList writes a list of values of the 'boolean' type to the given writer.
func MarshalDateList ¶
MarshalDateList writes a list of values of the 'date' type to the given writer.
func MarshalFloatList ¶
MarshalFloatList writes a list of values of the 'float' type to the given writer.
func MarshalIntegerList ¶
MarshalIntegerList writes a list of values of the 'integer' type to the given writer.
func MarshalInterfaceList ¶
MarshalInterfaceList writes a list of values of the 'interface' type to the given writer.
func MarshalLogEntry ¶
MarshalLogEntry writes a value of the 'log_entry' type to the given writer.
func MarshalLogEntryList ¶
MarshalLogEntryList writes a list of values of the 'log_entry' type to the given writer.
func MarshalLogTypeList ¶
MarshalLogTypeList writes a list of values of the 'log_type' type to the given writer.
func MarshalLongList ¶
MarshalLongList writes a list of values of the 'long' type to the given writer.
func MarshalMetadata ¶
MarshalMetadata writes a value of the metadata type to the given target, which can be a writer or a JSON encoder.
func MarshalSeverityList ¶
MarshalSeverityList writes a list of values of the 'severity' type to the given writer.
func MarshalStringList ¶
MarshalStringList writes a list of values of the 'string' type to the given writer.
func ReadBooleanList ¶
ReadBooleanList reads list of values of the ”boolean' type from the given iterator.
func ReadDateList ¶
ReadDateList reads list of values of the ”date' type from the given iterator.
func ReadFloatList ¶
ReadFloatList reads list of values of the ”float' type from the given iterator.
func ReadIntegerList ¶
ReadIntegerList reads list of values of the ”integer' type from the given iterator.
func ReadInterfaceList ¶
ReadInterfaceList reads list of values of the ”interface' type from the given iterator.
func ReadLongList ¶
ReadLongList reads list of values of the ”long' type from the given iterator.
func ReadStringList ¶
ReadStringList reads list of values of the ”string' type from the given iterator.
func UnmarshalBooleanList ¶
UnmarshalBooleanList reads a list of values of the 'boolean' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalDateList ¶
UnmarshalDateList reads a list of values of the 'date' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalFloatList ¶
UnmarshalFloatList reads a list of values of the 'float' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalIntegerList ¶
UnmarshalIntegerList reads a list of values of the 'integer' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalInterfaceList ¶
func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error)
UnmarshalInterfaceList reads a list of values of the 'interface' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalLongList ¶
UnmarshalLongList reads a list of values of the 'long' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalStringList ¶
UnmarshalStringList reads a list of values of the 'string' type from the given source, which can be a slice of bytes, a string or a reader.
func WriteBooleanList ¶
WriteBooleanList writes a list of value of the 'boolean' type to the given stream.
func WriteDateList ¶
WriteDateList writes a list of value of the 'date' type to the given stream.
func WriteFloatList ¶
WriteFloatList writes a list of value of the 'float' type to the given stream.
func WriteIntegerList ¶
WriteIntegerList writes a list of value of the 'integer' type to the given stream.
func WriteInterfaceList ¶
WriteInterfaceList writes a list of value of the 'interface' type to the given stream.
func WriteLogEntry ¶
WriteLogEntry writes a value of the 'log_entry' type to the given stream.
func WriteLogEntryList ¶
WriteLogEntryList writes a list of value of the 'log_entry' type to the given stream.
func WriteLogTypeList ¶
WriteLogTypeList writes a list of value of the 'log_type' type to the given stream.
func WriteLongList ¶
WriteLongList writes a list of value of the 'long' type to the given stream.
func WriteSeverityList ¶
WriteSeverityList writes a list of value of the 'severity' type to the given stream.
func WriteStringList ¶
WriteStringList writes a list of value of the 'string' type to the given stream.
Types ¶
type LogEntry ¶
type LogEntry struct {
// contains filtered or unexported fields
}
LogEntry represents the values of the 'log_entry' type.
func ReadLogEntry ¶
ReadLogEntry reads a value of the 'log_entry' type from the given iterator.
func ReadLogEntryList ¶
ReadLogEntryList reads list of values of the ”log_entry' type from the given iterator.
func UnmarshalLogEntry ¶
UnmarshalLogEntry reads a value of the 'log_entry' type from the given source, which can be an slice of bytes, a string or a reader.
func UnmarshalLogEntryList ¶
UnmarshalLogEntryList reads a list of values of the 'log_entry' type from the given source, which can be a slice of bytes, a string or a reader.
func (*LogEntry) ClusterID ¶
ClusterID returns the value of the 'cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
Internal cluster ID.
func (*LogEntry) ClusterUUID ¶
ClusterUUID returns the value of the 'cluster_UUID' attribute, or the zero value of the type if the attribute doesn't have a value.
External cluster ID.
func (*LogEntry) CreatedAt ¶
CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.
The time at which the cluster log was created.
func (*LogEntry) CreatedBy ¶
CreatedBy returns the value of the 'created_by' attribute, or the zero value of the type if the attribute doesn't have a value.
The name of the user who created the cluster log.
func (*LogEntry) Description ¶
Description returns the value of the 'description' attribute, or the zero value of the type if the attribute doesn't have a value.
Full description of the log entry content (supports Markdown format as well).
func (*LogEntry) DocReferences ¶
DocReferences returns the value of the 'doc_references' attribute, or the zero value of the type if the attribute doesn't have a value.
The list of documentation references (i.e links) contained in the event.
func (*LogEntry) EventStreamID ¶
EventStreamID returns the value of the 'event_stream_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
Log custom event id for a simple search of related cluster logs.
func (*LogEntry) GetClusterID ¶
GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.
Internal cluster ID.
func (*LogEntry) GetClusterUUID ¶
GetClusterUUID returns the value of the 'cluster_UUID' attribute and a flag indicating if the attribute has a value.
External cluster ID.
func (*LogEntry) GetCreatedAt ¶
GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.
The time at which the cluster log was created.
func (*LogEntry) GetCreatedBy ¶
GetCreatedBy returns the value of the 'created_by' attribute and a flag indicating if the attribute has a value.
The name of the user who created the cluster log.
func (*LogEntry) GetDescription ¶
GetDescription returns the value of the 'description' attribute and a flag indicating if the attribute has a value.
Full description of the log entry content (supports Markdown format as well).
func (*LogEntry) GetDocReferences ¶
GetDocReferences returns the value of the 'doc_references' attribute and a flag indicating if the attribute has a value.
The list of documentation references (i.e links) contained in the event.
func (*LogEntry) GetEventStreamID ¶
GetEventStreamID returns the value of the 'event_stream_ID' attribute and a flag indicating if the attribute has a value.
Log custom event id for a simple search of related cluster logs.
func (*LogEntry) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*LogEntry) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*LogEntry) GetInternalOnly ¶
GetInternalOnly returns the value of the 'internal_only' attribute and a flag indicating if the attribute has a value.
A flag that indicates whether the log entry should be internal/private only.
func (*LogEntry) GetLogType ¶
GetLogType returns the value of the 'log_type' attribute and a flag indicating if the attribute has a value.
Type of the service log entry.
func (*LogEntry) GetServiceName ¶
GetServiceName returns the value of the 'service_name' attribute and a flag indicating if the attribute has a value.
The name of the service who created the log.
func (*LogEntry) GetSeverity ¶
GetSeverity returns the value of the 'severity' attribute and a flag indicating if the attribute has a value.
Log severity for the specific log entry.
func (*LogEntry) GetSubscriptionID ¶
GetSubscriptionID returns the value of the 'subscription_ID' attribute and a flag indicating if the attribute has a value.
The related subscription id of the cluster.
func (*LogEntry) GetSummary ¶
GetSummary returns the value of the 'summary' attribute and a flag indicating if the attribute has a value.
Title of the log entry.
func (*LogEntry) GetTimestamp ¶
GetTimestamp returns the value of the 'timestamp' attribute and a flag indicating if the attribute has a value.
func (*LogEntry) GetUsername ¶
GetUsername returns the value of the 'username' attribute and a flag indicating if the attribute has a value.
The username that triggered the event (if available).
func (*LogEntry) InternalOnly ¶
InternalOnly returns the value of the 'internal_only' attribute, or the zero value of the type if the attribute doesn't have a value.
A flag that indicates whether the log entry should be internal/private only.
func (*LogEntry) LogType ¶
LogType returns the value of the 'log_type' attribute, or the zero value of the type if the attribute doesn't have a value.
Type of the service log entry.
func (*LogEntry) ServiceName ¶
ServiceName returns the value of the 'service_name' attribute, or the zero value of the type if the attribute doesn't have a value.
The name of the service who created the log.
func (*LogEntry) Severity ¶
Severity returns the value of the 'severity' attribute, or the zero value of the type if the attribute doesn't have a value.
Log severity for the specific log entry.
func (*LogEntry) SubscriptionID ¶
SubscriptionID returns the value of the 'subscription_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
The related subscription id of the cluster.
func (*LogEntry) Summary ¶
Summary returns the value of the 'summary' attribute, or the zero value of the type if the attribute doesn't have a value.
Title of the log entry.
type LogEntryBuilder ¶
type LogEntryBuilder struct {
// contains filtered or unexported fields
}
func NewLogEntry ¶
func NewLogEntry() *LogEntryBuilder
NewLogEntry creates a new builder of 'log_entry' objects.
func (*LogEntryBuilder) Build ¶
func (b *LogEntryBuilder) Build() (object *LogEntry, err error)
Build creates a 'log_entry' object using the configuration stored in the builder.
func (*LogEntryBuilder) ClusterID ¶
func (b *LogEntryBuilder) ClusterID(value string) *LogEntryBuilder
ClusterID sets the value of the 'cluster_ID' attribute to the given value.
func (*LogEntryBuilder) ClusterUUID ¶
func (b *LogEntryBuilder) ClusterUUID(value string) *LogEntryBuilder
ClusterUUID sets the value of the 'cluster_UUID' attribute to the given value.
func (*LogEntryBuilder) Copy ¶
func (b *LogEntryBuilder) Copy(object *LogEntry) *LogEntryBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*LogEntryBuilder) CreatedAt ¶
func (b *LogEntryBuilder) CreatedAt(value time.Time) *LogEntryBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*LogEntryBuilder) CreatedBy ¶
func (b *LogEntryBuilder) CreatedBy(value string) *LogEntryBuilder
CreatedBy sets the value of the 'created_by' attribute to the given value.
func (*LogEntryBuilder) Description ¶
func (b *LogEntryBuilder) Description(value string) *LogEntryBuilder
Description sets the value of the 'description' attribute to the given value.
func (*LogEntryBuilder) DocReferences ¶
func (b *LogEntryBuilder) DocReferences(values ...string) *LogEntryBuilder
DocReferences sets the value of the 'doc_references' attribute to the given values.
func (*LogEntryBuilder) Empty ¶
func (b *LogEntryBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*LogEntryBuilder) EventStreamID ¶
func (b *LogEntryBuilder) EventStreamID(value string) *LogEntryBuilder
EventStreamID sets the value of the 'event_stream_ID' attribute to the given value.
func (*LogEntryBuilder) HREF ¶
func (b *LogEntryBuilder) HREF(value string) *LogEntryBuilder
HREF sets the link to the object.
func (*LogEntryBuilder) ID ¶
func (b *LogEntryBuilder) ID(value string) *LogEntryBuilder
ID sets the identifier of the object.
func (*LogEntryBuilder) InternalOnly ¶
func (b *LogEntryBuilder) InternalOnly(value bool) *LogEntryBuilder
InternalOnly sets the value of the 'internal_only' attribute to the given value.
func (*LogEntryBuilder) Link ¶
func (b *LogEntryBuilder) Link(value bool) *LogEntryBuilder
Link sets the flag that indicates if this is a link.
func (*LogEntryBuilder) LogType ¶
func (b *LogEntryBuilder) LogType(value LogType) *LogEntryBuilder
LogType sets the value of the 'log_type' attribute to the given value.
Representation of the log type field used in cluster log type model.
func (*LogEntryBuilder) ServiceName ¶
func (b *LogEntryBuilder) ServiceName(value string) *LogEntryBuilder
ServiceName sets the value of the 'service_name' attribute to the given value.
func (*LogEntryBuilder) Severity ¶
func (b *LogEntryBuilder) Severity(value Severity) *LogEntryBuilder
Severity sets the value of the 'severity' attribute to the given value.
func (*LogEntryBuilder) SubscriptionID ¶
func (b *LogEntryBuilder) SubscriptionID(value string) *LogEntryBuilder
SubscriptionID sets the value of the 'subscription_ID' attribute to the given value.
func (*LogEntryBuilder) Summary ¶
func (b *LogEntryBuilder) Summary(value string) *LogEntryBuilder
Summary sets the value of the 'summary' attribute to the given value.
func (*LogEntryBuilder) Timestamp ¶
func (b *LogEntryBuilder) Timestamp(value time.Time) *LogEntryBuilder
Timestamp sets the value of the 'timestamp' attribute to the given value.
func (*LogEntryBuilder) Username ¶
func (b *LogEntryBuilder) Username(value string) *LogEntryBuilder
Username sets the value of the 'username' attribute to the given value.
type LogEntryList ¶
type LogEntryList struct {
// contains filtered or unexported fields
}
LogEntryList is a list of values of the 'log_entry' type.
func (*LogEntryList) Each ¶
func (l *LogEntryList) Each(f func(item *LogEntry) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*LogEntryList) Empty ¶
func (l *LogEntryList) Empty() bool
Empty returns true if the list is empty.
func (*LogEntryList) Get ¶
func (l *LogEntryList) Get(i int) *LogEntry
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*LogEntryList) GetHREF ¶
func (l *LogEntryList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*LogEntryList) Items ¶
func (l *LogEntryList) Items() []*LogEntry
Items returns the items of the list.
func (*LogEntryList) Kind ¶
func (l *LogEntryList) Kind() string
Kind returns the name of the type of the object.
func (*LogEntryList) Link ¶
func (l *LogEntryList) Link() bool
Link returns true iif this is a link.
func (*LogEntryList) Range ¶
func (l *LogEntryList) Range(f func(index int, item *LogEntry) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*LogEntryList) SetHREF ¶
func (l *LogEntryList) SetHREF(href string)
Items sets the items of the list.
func (*LogEntryList) SetItems ¶
func (l *LogEntryList) SetItems(items []*LogEntry)
Items sets the items of the list.
func (*LogEntryList) SetLink ¶
func (l *LogEntryList) SetLink(link bool)
Items sets the items of the list.
func (*LogEntryList) Slice ¶
func (l *LogEntryList) Slice() []*LogEntry
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type LogEntryListBuilder ¶
type LogEntryListBuilder struct {
// contains filtered or unexported fields
}
LogEntryListBuilder contains the data and logic needed to build 'log_entry' objects.
func NewLogEntryList ¶
func NewLogEntryList() *LogEntryListBuilder
NewLogEntryList creates a new builder of 'log_entry' objects.
func (*LogEntryListBuilder) Build ¶
func (b *LogEntryListBuilder) Build() (list *LogEntryList, err error)
Build creates a list of 'log_entry' objects using the configuration stored in the builder.
func (*LogEntryListBuilder) Copy ¶
func (b *LogEntryListBuilder) Copy(list *LogEntryList) *LogEntryListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*LogEntryListBuilder) Empty ¶
func (b *LogEntryListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*LogEntryListBuilder) Items ¶
func (b *LogEntryListBuilder) Items(values ...*LogEntryBuilder) *LogEntryListBuilder
Items sets the items of the list.
type LogType ¶
type LogType string
LogType represents the values of the 'log_type' enumerated type.
const ( // LogTypeClusterCreateDetails LogType = "clustercreate-details" // LogTypeClusterCreateHighLevel LogType = "clustercreate-high-level" // LogTypeClusterRemoveDetails LogType = "clusterremove-details" // LogTypeClusterRemoveHighLevel LogType = "clusterremove-high-level" // LogTypeClusterStateUpdates LogType = "cluster-state-updates" )
func ReadLogTypeList ¶
ReadLogTypeList reads list of values of the ”log_type' type from the given iterator.
func UnmarshalLogTypeList ¶
UnmarshalLogTypeList reads a list of values of the 'log_type' type from the given source, which can be a slice of bytes, a string or a reader.
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
Metadata contains the version metadata.
func UnmarshalMetadata ¶
UnmarshalMetadata reads a value of the metadata type from the given source, which which can be a reader, a slice of byte or a string.
func (*Metadata) GetServerVersion ¶
GetServerVersion returns the value of the server version and a flag indicating if the attribute has a value.
func (*Metadata) ServerVersion ¶
ServerVersion returns the version of the server.
type Severity ¶
type Severity string
Severity represents the values of the 'severity' enumerated type.
func ReadSeverityList ¶
ReadSeverityList reads list of values of the ”severity' type from the given iterator.
func UnmarshalSeverityList ¶
UnmarshalSeverityList reads a list of values of the 'severity' type from the given source, which can be a slice of bytes, a string or a reader.
Source Files
¶
- boolean_list_type_json.go
- date_list_type_json.go
- float_list_type_json.go
- integer_list_type_json.go
- interface_list_type_json.go
- log_entry_builder.go
- log_entry_list_builder.go
- log_entry_list_type_json.go
- log_entry_type.go
- log_entry_type_json.go
- log_type_list_type_json.go
- log_type_type.go
- long_list_type_json.go
- metadata_reader.go
- metadata_type.go
- severity_list_type_json.go
- severity_type.go
- string_list_type_json.go