Documentation ¶
Index ¶
- Constants
- Variables
- 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 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)
- type Client
- type ClusterClient
- type ClusterLogsAddRequest
- func (r *ClusterLogsAddRequest) Body(value *LogEntry) *ClusterLogsAddRequest
- func (r *ClusterLogsAddRequest) Header(name string, value interface{}) *ClusterLogsAddRequest
- func (r *ClusterLogsAddRequest) Impersonate(user string) *ClusterLogsAddRequest
- func (r *ClusterLogsAddRequest) Parameter(name string, value interface{}) *ClusterLogsAddRequest
- func (r *ClusterLogsAddRequest) Send() (result *ClusterLogsAddResponse, err error)
- func (r *ClusterLogsAddRequest) SendContext(ctx context.Context) (result *ClusterLogsAddResponse, err error)
- type ClusterLogsAddResponse
- type ClusterLogsClient
- type ClusterLogsListRequest
- func (r *ClusterLogsListRequest) Header(name string, value interface{}) *ClusterLogsListRequest
- func (r *ClusterLogsListRequest) Impersonate(user string) *ClusterLogsListRequest
- func (r *ClusterLogsListRequest) Order(value string) *ClusterLogsListRequest
- func (r *ClusterLogsListRequest) Page(value int) *ClusterLogsListRequest
- func (r *ClusterLogsListRequest) Parameter(name string, value interface{}) *ClusterLogsListRequest
- func (r *ClusterLogsListRequest) Search(value string) *ClusterLogsListRequest
- func (r *ClusterLogsListRequest) Send() (result *ClusterLogsListResponse, err error)
- func (r *ClusterLogsListRequest) SendContext(ctx context.Context) (result *ClusterLogsListResponse, err error)
- func (r *ClusterLogsListRequest) Size(value int) *ClusterLogsListRequest
- type ClusterLogsListResponse
- func (r *ClusterLogsListResponse) Error() *errors.Error
- func (r *ClusterLogsListResponse) GetItems() (value *LogEntryList, ok bool)
- func (r *ClusterLogsListResponse) GetPage() (value int, ok bool)
- func (r *ClusterLogsListResponse) GetSize() (value int, ok bool)
- func (r *ClusterLogsListResponse) GetTotal() (value int, ok bool)
- func (r *ClusterLogsListResponse) Header() http.Header
- func (r *ClusterLogsListResponse) Items() *LogEntryList
- func (r *ClusterLogsListResponse) Page() int
- func (r *ClusterLogsListResponse) Size() int
- func (r *ClusterLogsListResponse) Status() int
- func (r *ClusterLogsListResponse) Total() int
- type ClusterLogsUUIDClient
- type ClusterLogsUUIDListRequest
- func (r *ClusterLogsUUIDListRequest) Header(name string, value interface{}) *ClusterLogsUUIDListRequest
- func (r *ClusterLogsUUIDListRequest) Impersonate(user string) *ClusterLogsUUIDListRequest
- func (r *ClusterLogsUUIDListRequest) Order(value string) *ClusterLogsUUIDListRequest
- func (r *ClusterLogsUUIDListRequest) Page(value int) *ClusterLogsUUIDListRequest
- func (r *ClusterLogsUUIDListRequest) Parameter(name string, value interface{}) *ClusterLogsUUIDListRequest
- func (r *ClusterLogsUUIDListRequest) Search(value string) *ClusterLogsUUIDListRequest
- func (r *ClusterLogsUUIDListRequest) Send() (result *ClusterLogsUUIDListResponse, err error)
- func (r *ClusterLogsUUIDListRequest) SendContext(ctx context.Context) (result *ClusterLogsUUIDListResponse, err error)
- func (r *ClusterLogsUUIDListRequest) Size(value int) *ClusterLogsUUIDListRequest
- type ClusterLogsUUIDListResponse
- func (r *ClusterLogsUUIDListResponse) Error() *errors.Error
- func (r *ClusterLogsUUIDListResponse) GetItems() (value *LogEntryList, ok bool)
- func (r *ClusterLogsUUIDListResponse) GetPage() (value int, ok bool)
- func (r *ClusterLogsUUIDListResponse) GetSize() (value int, ok bool)
- func (r *ClusterLogsUUIDListResponse) GetTotal() (value int, ok bool)
- func (r *ClusterLogsUUIDListResponse) Header() http.Header
- func (r *ClusterLogsUUIDListResponse) Items() *LogEntryList
- func (r *ClusterLogsUUIDListResponse) Page() int
- func (r *ClusterLogsUUIDListResponse) Size() int
- func (r *ClusterLogsUUIDListResponse) Status() int
- func (r *ClusterLogsUUIDListResponse) Total() int
- type ClustersClient
- type ClustersClusterLogsClient
- type ClustersClusterLogsListRequest
- func (r *ClustersClusterLogsListRequest) ClusterID(value string) *ClustersClusterLogsListRequest
- func (r *ClustersClusterLogsListRequest) ClusterUUID(value string) *ClustersClusterLogsListRequest
- func (r *ClustersClusterLogsListRequest) Header(name string, value interface{}) *ClustersClusterLogsListRequest
- func (r *ClustersClusterLogsListRequest) Impersonate(user string) *ClustersClusterLogsListRequest
- func (r *ClustersClusterLogsListRequest) Order(value string) *ClustersClusterLogsListRequest
- func (r *ClustersClusterLogsListRequest) Page(value int) *ClustersClusterLogsListRequest
- func (r *ClustersClusterLogsListRequest) Parameter(name string, value interface{}) *ClustersClusterLogsListRequest
- func (r *ClustersClusterLogsListRequest) Search(value string) *ClustersClusterLogsListRequest
- func (r *ClustersClusterLogsListRequest) Send() (result *ClustersClusterLogsListResponse, err error)
- func (r *ClustersClusterLogsListRequest) SendContext(ctx context.Context) (result *ClustersClusterLogsListResponse, err error)
- func (r *ClustersClusterLogsListRequest) Size(value int) *ClustersClusterLogsListRequest
- type ClustersClusterLogsListResponse
- func (r *ClustersClusterLogsListResponse) Error() *errors.Error
- func (r *ClustersClusterLogsListResponse) GetItems() (value *LogEntryList, ok bool)
- func (r *ClustersClusterLogsListResponse) GetPage() (value int, ok bool)
- func (r *ClustersClusterLogsListResponse) GetSize() (value int, ok bool)
- func (r *ClustersClusterLogsListResponse) GetTotal() (value int, ok bool)
- func (r *ClustersClusterLogsListResponse) Header() http.Header
- func (r *ClustersClusterLogsListResponse) Items() *LogEntryList
- func (r *ClustersClusterLogsListResponse) Page() int
- func (r *ClustersClusterLogsListResponse) Size() int
- func (r *ClustersClusterLogsListResponse) Status() int
- func (r *ClustersClusterLogsListResponse) Total() int
- 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) 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) 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) 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 LogEntryClient
- type LogEntryDeleteRequest
- func (r *LogEntryDeleteRequest) Header(name string, value interface{}) *LogEntryDeleteRequest
- func (r *LogEntryDeleteRequest) Impersonate(user string) *LogEntryDeleteRequest
- func (r *LogEntryDeleteRequest) Parameter(name string, value interface{}) *LogEntryDeleteRequest
- func (r *LogEntryDeleteRequest) Send() (result *LogEntryDeleteResponse, err error)
- func (r *LogEntryDeleteRequest) SendContext(ctx context.Context) (result *LogEntryDeleteResponse, err error)
- type LogEntryDeleteResponse
- type LogEntryGetRequest
- func (r *LogEntryGetRequest) Header(name string, value interface{}) *LogEntryGetRequest
- func (r *LogEntryGetRequest) Impersonate(user string) *LogEntryGetRequest
- func (r *LogEntryGetRequest) Parameter(name string, value interface{}) *LogEntryGetRequest
- func (r *LogEntryGetRequest) Send() (result *LogEntryGetResponse, err error)
- func (r *LogEntryGetRequest) SendContext(ctx context.Context) (result *LogEntryGetResponse, err error)
- type LogEntryGetResponse
- 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) 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) Slice() []*LogEntry
- type LogEntryListBuilder
- type LogEntryPollRequest
- func (r *LogEntryPollRequest) Header(name string, value interface{}) *LogEntryPollRequest
- func (r *LogEntryPollRequest) Interval(value time.Duration) *LogEntryPollRequest
- func (r *LogEntryPollRequest) Parameter(name string, value interface{}) *LogEntryPollRequest
- func (r *LogEntryPollRequest) Predicate(value func(*LogEntryGetResponse) bool) *LogEntryPollRequest
- func (r *LogEntryPollRequest) StartContext(ctx context.Context) (response *LogEntryPollResponse, err error)
- func (r *LogEntryPollRequest) Status(value int) *LogEntryPollRequest
- type LogEntryPollResponse
- type LogType
- type Metadata
- type MetadataRequest
- func (r *MetadataRequest) Header(name string, value interface{}) *MetadataRequest
- func (r *MetadataRequest) Parameter(name string, value interface{}) *MetadataRequest
- func (r *MetadataRequest) Send() (result *MetadataResponse, err error)
- func (r *MetadataRequest) SendContext(ctx context.Context) (result *MetadataResponse, err error)
- type MetadataResponse
- 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 ¶
var OpenAPI = []byte{}/* 20155 elements not displayed */
OpenAPI contains the OpenAPI specification of the service in JSON.
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 ¶ added in v0.0.329
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 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.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client of the 'root' resource.
Root of the tree of resources of the service logs service.
func NewClient ¶
func NewClient(transport http.RoundTripper, path string) *Client
NewClient creates a new client for the 'root' resource using the given transport to send the requests and receive the responses.
func (*Client) ClusterLogs ¶
func (c *Client) ClusterLogs() *ClusterLogsClient
ClusterLogs returns the target 'cluster_logs' resource.
Reference to the resource that manages the collection of cluster logs.
func (*Client) Clusters ¶ added in v0.0.329
func (c *Client) Clusters() *ClustersClient
Clusters returns the target 'clusters' resource.
Reference to the resource that manages the collection of clusters for clusters logs.
func (*Client) Get ¶
func (c *Client) Get() *MetadataRequest
Creates a new request for the method that retrieves the metadata.
type ClusterClient ¶ added in v0.0.329
type ClusterClient struct {
// contains filtered or unexported fields
}
ClusterClient is the client of the 'cluster' resource.
Manages a specific Cluster for a cluster log.
func NewClusterClient ¶ added in v0.0.329
func NewClusterClient(transport http.RoundTripper, path string) *ClusterClient
NewClusterClient creates a new client for the 'cluster' resource using the given transport to send the requests and receive the responses.
func (*ClusterClient) ClusterLogs ¶ added in v0.0.329
func (c *ClusterClient) ClusterLogs() *ClusterLogsUUIDClient
ClusterLogs returns the target 'cluster_logs_UUID' resource.
Reference to the list of cluster logs for a specific cluster uuid.
type ClusterLogsAddRequest ¶
type ClusterLogsAddRequest struct {
// contains filtered or unexported fields
}
ClusterLogsAddRequest is the request for the 'add' method.
func (*ClusterLogsAddRequest) Body ¶
func (r *ClusterLogsAddRequest) Body(value *LogEntry) *ClusterLogsAddRequest
Body sets the value of the 'body' parameter.
Log entry data.
func (*ClusterLogsAddRequest) Header ¶
func (r *ClusterLogsAddRequest) Header(name string, value interface{}) *ClusterLogsAddRequest
Header adds a request header.
func (*ClusterLogsAddRequest) Impersonate ¶ added in v0.0.329
func (r *ClusterLogsAddRequest) Impersonate(user string) *ClusterLogsAddRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*ClusterLogsAddRequest) Parameter ¶
func (r *ClusterLogsAddRequest) Parameter(name string, value interface{}) *ClusterLogsAddRequest
Parameter adds a query parameter.
func (*ClusterLogsAddRequest) Send ¶
func (r *ClusterLogsAddRequest) Send() (result *ClusterLogsAddResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ClusterLogsAddRequest) SendContext ¶
func (r *ClusterLogsAddRequest) SendContext(ctx context.Context) (result *ClusterLogsAddResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type ClusterLogsAddResponse ¶
type ClusterLogsAddResponse struct {
// contains filtered or unexported fields
}
ClusterLogsAddResponse is the response for the 'add' method.
func (*ClusterLogsAddResponse) Body ¶
func (r *ClusterLogsAddResponse) Body() *LogEntry
Body returns the value of the 'body' parameter.
Log entry data.
func (*ClusterLogsAddResponse) Error ¶
func (r *ClusterLogsAddResponse) Error() *errors.Error
Error returns the response error.
func (*ClusterLogsAddResponse) GetBody ¶
func (r *ClusterLogsAddResponse) GetBody() (value *LogEntry, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Log entry data.
func (*ClusterLogsAddResponse) Header ¶
func (r *ClusterLogsAddResponse) Header() http.Header
Header returns header of the response.
func (*ClusterLogsAddResponse) Status ¶
func (r *ClusterLogsAddResponse) Status() int
Status returns the response status code.
type ClusterLogsClient ¶
type ClusterLogsClient struct {
// contains filtered or unexported fields
}
ClusterLogsClient is the client of the 'cluster_logs' resource.
Manages the collection of cluster logs.
func NewClusterLogsClient ¶
func NewClusterLogsClient(transport http.RoundTripper, path string) *ClusterLogsClient
NewClusterLogsClient creates a new client for the 'cluster_logs' resource using the given transport to send the requests and receive the responses.
func (*ClusterLogsClient) Add ¶
func (c *ClusterLogsClient) Add() *ClusterLogsAddRequest
Add creates a request for the 'add' method.
Creates a new log entry.
func (*ClusterLogsClient) List ¶
func (c *ClusterLogsClient) List() *ClusterLogsListRequest
List creates a request for the 'list' method.
Retrieves the list of cluster logs. Use this endpoint to list service logs (including private logs). This endpoint is limited to users who allowed to view private logs.
func (*ClusterLogsClient) LogEntry ¶
func (c *ClusterLogsClient) LogEntry(id string) *LogEntryClient
LogEntry returns the target 'log_entry' resource for the given identifier.
Reference to the service that manages a specific Log entry.
type ClusterLogsListRequest ¶
type ClusterLogsListRequest struct {
// contains filtered or unexported fields
}
ClusterLogsListRequest is the request for the 'list' method.
func (*ClusterLogsListRequest) Header ¶
func (r *ClusterLogsListRequest) Header(name string, value interface{}) *ClusterLogsListRequest
Header adds a request header.
func (*ClusterLogsListRequest) Impersonate ¶ added in v0.0.329
func (r *ClusterLogsListRequest) Impersonate(user string) *ClusterLogsListRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*ClusterLogsListRequest) Order ¶
func (r *ClusterLogsListRequest) Order(value string) *ClusterLogsListRequest
Order sets the value of the 'order' parameter.
Order criteria.
The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement. For example, in order to sort the cluster logs descending by name identifier the value should be:
```sql name desc ```
If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.
func (*ClusterLogsListRequest) Page ¶
func (r *ClusterLogsListRequest) Page(value int) *ClusterLogsListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
func (*ClusterLogsListRequest) Parameter ¶
func (r *ClusterLogsListRequest) Parameter(name string, value interface{}) *ClusterLogsListRequest
Parameter adds a query parameter.
func (*ClusterLogsListRequest) Search ¶
func (r *ClusterLogsListRequest) Search(value string) *ClusterLogsListRequest
Search sets the value of the 'search' parameter.
Search criteria.
The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the cluster logs instead of the names of the columns of a table. For example, in order to retrieve cluster logs with service_name starting with my:
```sql service_name like 'my%' ```
If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.
func (*ClusterLogsListRequest) Send ¶
func (r *ClusterLogsListRequest) Send() (result *ClusterLogsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ClusterLogsListRequest) SendContext ¶
func (r *ClusterLogsListRequest) SendContext(ctx context.Context) (result *ClusterLogsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*ClusterLogsListRequest) Size ¶
func (r *ClusterLogsListRequest) Size(value int) *ClusterLogsListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
type ClusterLogsListResponse ¶
type ClusterLogsListResponse struct {
// contains filtered or unexported fields
}
ClusterLogsListResponse is the response for the 'list' method.
func (*ClusterLogsListResponse) Error ¶
func (r *ClusterLogsListResponse) Error() *errors.Error
Error returns the response error.
func (*ClusterLogsListResponse) GetItems ¶
func (r *ClusterLogsListResponse) GetItems() (value *LogEntryList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of Cluster logs.
func (*ClusterLogsListResponse) GetPage ¶
func (r *ClusterLogsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
func (*ClusterLogsListResponse) GetSize ¶
func (r *ClusterLogsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
func (*ClusterLogsListResponse) GetTotal ¶
func (r *ClusterLogsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*ClusterLogsListResponse) Header ¶
func (r *ClusterLogsListResponse) Header() http.Header
Header returns header of the response.
func (*ClusterLogsListResponse) Items ¶
func (r *ClusterLogsListResponse) Items() *LogEntryList
Items returns the value of the 'items' parameter.
Retrieved list of Cluster logs.
func (*ClusterLogsListResponse) Page ¶
func (r *ClusterLogsListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
func (*ClusterLogsListResponse) Size ¶
func (r *ClusterLogsListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
func (*ClusterLogsListResponse) Status ¶
func (r *ClusterLogsListResponse) Status() int
Status returns the response status code.
func (*ClusterLogsListResponse) Total ¶
func (r *ClusterLogsListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type ClusterLogsUUIDClient ¶ added in v0.0.329
type ClusterLogsUUIDClient struct {
// contains filtered or unexported fields
}
ClusterLogsUUIDClient is the client of the 'cluster_logs_UUID' resource.
Manages the collection of cluster logs by custer uuid.
func NewClusterLogsUUIDClient ¶ added in v0.0.329
func NewClusterLogsUUIDClient(transport http.RoundTripper, path string) *ClusterLogsUUIDClient
NewClusterLogsUUIDClient creates a new client for the 'cluster_logs_UUID' resource using the given transport to send the requests and receive the responses.
func (*ClusterLogsUUIDClient) List ¶ added in v0.0.329
func (c *ClusterLogsUUIDClient) List() *ClusterLogsUUIDListRequest
List creates a request for the 'list' method.
Retrieves the list of cluster logs by cluster uuid.
type ClusterLogsUUIDListRequest ¶ added in v0.0.329
type ClusterLogsUUIDListRequest struct {
// contains filtered or unexported fields
}
ClusterLogsUUIDListRequest is the request for the 'list' method.
func (*ClusterLogsUUIDListRequest) Header ¶ added in v0.0.329
func (r *ClusterLogsUUIDListRequest) Header(name string, value interface{}) *ClusterLogsUUIDListRequest
Header adds a request header.
func (*ClusterLogsUUIDListRequest) Impersonate ¶ added in v0.0.329
func (r *ClusterLogsUUIDListRequest) Impersonate(user string) *ClusterLogsUUIDListRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*ClusterLogsUUIDListRequest) Order ¶ added in v0.0.329
func (r *ClusterLogsUUIDListRequest) Order(value string) *ClusterLogsUUIDListRequest
Order sets the value of the 'order' parameter.
Order criteria.
The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement. For example, in order to sort the cluster logs descending by name identifier the value should be:
```sql name desc ```
If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.
func (*ClusterLogsUUIDListRequest) Page ¶ added in v0.0.329
func (r *ClusterLogsUUIDListRequest) Page(value int) *ClusterLogsUUIDListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
func (*ClusterLogsUUIDListRequest) Parameter ¶ added in v0.0.329
func (r *ClusterLogsUUIDListRequest) Parameter(name string, value interface{}) *ClusterLogsUUIDListRequest
Parameter adds a query parameter.
func (*ClusterLogsUUIDListRequest) Search ¶ added in v0.0.329
func (r *ClusterLogsUUIDListRequest) Search(value string) *ClusterLogsUUIDListRequest
Search sets the value of the 'search' parameter.
Search criteria.
The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the cluster logs instead of the names of the columns of a table. For example, in order to retrieve cluster logs with service_name starting with my:
```sql service_name like 'my%' ```
If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.
func (*ClusterLogsUUIDListRequest) Send ¶ added in v0.0.329
func (r *ClusterLogsUUIDListRequest) Send() (result *ClusterLogsUUIDListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ClusterLogsUUIDListRequest) SendContext ¶ added in v0.0.329
func (r *ClusterLogsUUIDListRequest) SendContext(ctx context.Context) (result *ClusterLogsUUIDListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*ClusterLogsUUIDListRequest) Size ¶ added in v0.0.329
func (r *ClusterLogsUUIDListRequest) Size(value int) *ClusterLogsUUIDListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
type ClusterLogsUUIDListResponse ¶ added in v0.0.329
type ClusterLogsUUIDListResponse struct {
// contains filtered or unexported fields
}
ClusterLogsUUIDListResponse is the response for the 'list' method.
func (*ClusterLogsUUIDListResponse) Error ¶ added in v0.0.329
func (r *ClusterLogsUUIDListResponse) Error() *errors.Error
Error returns the response error.
func (*ClusterLogsUUIDListResponse) GetItems ¶ added in v0.0.329
func (r *ClusterLogsUUIDListResponse) GetItems() (value *LogEntryList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of Cluster logs.
func (*ClusterLogsUUIDListResponse) GetPage ¶ added in v0.0.329
func (r *ClusterLogsUUIDListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
func (*ClusterLogsUUIDListResponse) GetSize ¶ added in v0.0.329
func (r *ClusterLogsUUIDListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
func (*ClusterLogsUUIDListResponse) GetTotal ¶ added in v0.0.329
func (r *ClusterLogsUUIDListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*ClusterLogsUUIDListResponse) Header ¶ added in v0.0.329
func (r *ClusterLogsUUIDListResponse) Header() http.Header
Header returns header of the response.
func (*ClusterLogsUUIDListResponse) Items ¶ added in v0.0.329
func (r *ClusterLogsUUIDListResponse) Items() *LogEntryList
Items returns the value of the 'items' parameter.
Retrieved list of Cluster logs.
func (*ClusterLogsUUIDListResponse) Page ¶ added in v0.0.329
func (r *ClusterLogsUUIDListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
func (*ClusterLogsUUIDListResponse) Size ¶ added in v0.0.329
func (r *ClusterLogsUUIDListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
func (*ClusterLogsUUIDListResponse) Status ¶ added in v0.0.329
func (r *ClusterLogsUUIDListResponse) Status() int
Status returns the response status code.
func (*ClusterLogsUUIDListResponse) Total ¶ added in v0.0.329
func (r *ClusterLogsUUIDListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type ClustersClient ¶ added in v0.0.329
type ClustersClient struct {
// contains filtered or unexported fields
}
ClustersClient is the client of the 'clusters' resource.
Manages the collection of clusters for clusters logs.
func NewClustersClient ¶ added in v0.0.329
func NewClustersClient(transport http.RoundTripper, path string) *ClustersClient
NewClustersClient creates a new client for the 'clusters' resource using the given transport to send the requests and receive the responses.
func (*ClustersClient) Cluster ¶ added in v0.0.329
func (c *ClustersClient) Cluster(id string) *ClusterClient
Cluster returns the target 'cluster' resource for the given identifier.
Reference to the service that manages a specific Cluster uuid.
func (*ClustersClient) ClusterLogs ¶ added in v0.1.364
func (c *ClustersClient) ClusterLogs() *ClustersClusterLogsClient
ClusterLogs returns the target 'clusters_cluster_logs' resource.
Reference to the service that manages the cluster logs.
type ClustersClusterLogsClient ¶ added in v0.1.364
type ClustersClusterLogsClient struct {
// contains filtered or unexported fields
}
ClustersClusterLogsClient is the client of the 'clusters_cluster_logs' resource.
Manages the collection of Clusters cluster logs.
func NewClustersClusterLogsClient ¶ added in v0.1.364
func NewClustersClusterLogsClient(transport http.RoundTripper, path string) *ClustersClusterLogsClient
NewClustersClusterLogsClient creates a new client for the 'clusters_cluster_logs' resource using the given transport to send the requests and receive the responses.
func (*ClustersClusterLogsClient) List ¶ added in v0.1.364
func (c *ClustersClusterLogsClient) List() *ClustersClusterLogsListRequest
List creates a request for the 'list' method.
Retrieves the list of cluster logs by the cluster_id and/or cluster_uuid parameters. Use this endpoint to list service logs for a specific cluster (excluding private logs). Any authenticated user is able to use this endpoint without any special permissions.
type ClustersClusterLogsListRequest ¶ added in v0.1.364
type ClustersClusterLogsListRequest struct {
// contains filtered or unexported fields
}
ClustersClusterLogsListRequest is the request for the 'list' method.
func (*ClustersClusterLogsListRequest) ClusterID ¶ added in v0.1.364
func (r *ClustersClusterLogsListRequest) ClusterID(value string) *ClustersClusterLogsListRequest
ClusterID sets the value of the 'cluster_ID' parameter.
cluster_id parameter.
func (*ClustersClusterLogsListRequest) ClusterUUID ¶ added in v0.1.364
func (r *ClustersClusterLogsListRequest) ClusterUUID(value string) *ClustersClusterLogsListRequest
ClusterUUID sets the value of the 'cluster_UUID' parameter.
cluster_uuid parameter.
func (*ClustersClusterLogsListRequest) Header ¶ added in v0.1.364
func (r *ClustersClusterLogsListRequest) Header(name string, value interface{}) *ClustersClusterLogsListRequest
Header adds a request header.
func (*ClustersClusterLogsListRequest) Impersonate ¶ added in v0.1.364
func (r *ClustersClusterLogsListRequest) Impersonate(user string) *ClustersClusterLogsListRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*ClustersClusterLogsListRequest) Order ¶ added in v0.1.364
func (r *ClustersClusterLogsListRequest) Order(value string) *ClustersClusterLogsListRequest
Order sets the value of the 'order' parameter.
Order criteria.
The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement. For example, in order to sort the cluster logs descending by name identifier the value should be:
```sql name desc ```
If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.
func (*ClustersClusterLogsListRequest) Page ¶ added in v0.1.364
func (r *ClustersClusterLogsListRequest) Page(value int) *ClustersClusterLogsListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
func (*ClustersClusterLogsListRequest) Parameter ¶ added in v0.1.364
func (r *ClustersClusterLogsListRequest) Parameter(name string, value interface{}) *ClustersClusterLogsListRequest
Parameter adds a query parameter.
func (*ClustersClusterLogsListRequest) Search ¶ added in v0.1.364
func (r *ClustersClusterLogsListRequest) Search(value string) *ClustersClusterLogsListRequest
Search sets the value of the 'search' parameter.
Search criteria.
The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the cluster logs instead of the names of the columns of a table. For example, in order to retrieve cluster logs with service_name starting with my:
```sql service_name like 'my%' ```
If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.
func (*ClustersClusterLogsListRequest) Send ¶ added in v0.1.364
func (r *ClustersClusterLogsListRequest) Send() (result *ClustersClusterLogsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ClustersClusterLogsListRequest) SendContext ¶ added in v0.1.364
func (r *ClustersClusterLogsListRequest) SendContext(ctx context.Context) (result *ClustersClusterLogsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*ClustersClusterLogsListRequest) Size ¶ added in v0.1.364
func (r *ClustersClusterLogsListRequest) Size(value int) *ClustersClusterLogsListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
type ClustersClusterLogsListResponse ¶ added in v0.1.364
type ClustersClusterLogsListResponse struct {
// contains filtered or unexported fields
}
ClustersClusterLogsListResponse is the response for the 'list' method.
func (*ClustersClusterLogsListResponse) Error ¶ added in v0.1.364
func (r *ClustersClusterLogsListResponse) Error() *errors.Error
Error returns the response error.
func (*ClustersClusterLogsListResponse) GetItems ¶ added in v0.1.364
func (r *ClustersClusterLogsListResponse) GetItems() (value *LogEntryList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of Cluster logs.
func (*ClustersClusterLogsListResponse) GetPage ¶ added in v0.1.364
func (r *ClustersClusterLogsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
func (*ClustersClusterLogsListResponse) GetSize ¶ added in v0.1.364
func (r *ClustersClusterLogsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
func (*ClustersClusterLogsListResponse) GetTotal ¶ added in v0.1.364
func (r *ClustersClusterLogsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*ClustersClusterLogsListResponse) Header ¶ added in v0.1.364
func (r *ClustersClusterLogsListResponse) Header() http.Header
Header returns header of the response.
func (*ClustersClusterLogsListResponse) Items ¶ added in v0.1.364
func (r *ClustersClusterLogsListResponse) Items() *LogEntryList
Items returns the value of the 'items' parameter.
Retrieved list of Cluster logs.
func (*ClustersClusterLogsListResponse) Page ¶ added in v0.1.364
func (r *ClustersClusterLogsListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
func (*ClustersClusterLogsListResponse) Size ¶ added in v0.1.364
func (r *ClustersClusterLogsListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
func (*ClustersClusterLogsListResponse) Status ¶ added in v0.1.364
func (r *ClustersClusterLogsListResponse) Status() int
Status returns the response status code.
func (*ClustersClusterLogsListResponse) Total ¶ added in v0.1.364
func (r *ClustersClusterLogsListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type LogEntry ¶
type LogEntry struct {
// contains filtered or unexported fields
}
LogEntry represents the values of the 'log_entry' type.
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 ¶ added in v0.0.329
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 ¶ added in v0.1.372
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 ¶ added in v0.1.372
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) EventStreamID ¶ added in v0.0.329
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 ¶ added in v0.0.329
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 ¶ added in v0.1.372
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 ¶ added in v0.1.372
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) GetEventStreamID ¶ added in v0.0.329
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 ¶ added in v0.0.329
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 ¶ added in v0.0.329
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 ¶ added in v0.0.329
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 ¶ added in v0.0.329
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 ¶ added in v0.0.329
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
}
LogEntryBuilder contains the data and logic needed to build 'log_entry' objects.
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 ¶ added in v0.0.329
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 ¶ added in v0.1.372
func (b *LogEntryBuilder) CreatedAt(value time.Time) *LogEntryBuilder
CreatedAt sets the value of the 'created_at' attribute to the given value.
func (*LogEntryBuilder) CreatedBy ¶ added in v0.1.372
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) Empty ¶ added in v0.0.329
func (b *LogEntryBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*LogEntryBuilder) EventStreamID ¶ added in v0.0.329
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 ¶ added in v0.0.329
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 ¶ added in v0.0.329
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 ¶ added in v0.0.329
func (b *LogEntryBuilder) Username(value string) *LogEntryBuilder
Username sets the value of the 'username' attribute to the given value.
type LogEntryClient ¶
type LogEntryClient struct {
// contains filtered or unexported fields
}
LogEntryClient is the client of the 'log_entry' resource.
Manages a specific log entry.
func NewLogEntryClient ¶
func NewLogEntryClient(transport http.RoundTripper, path string) *LogEntryClient
NewLogEntryClient creates a new client for the 'log_entry' resource using the given transport to send the requests and receive the responses.
func (*LogEntryClient) Delete ¶
func (c *LogEntryClient) Delete() *LogEntryDeleteRequest
Delete creates a request for the 'delete' method.
Deletes the log entry.
func (*LogEntryClient) Get ¶
func (c *LogEntryClient) Get() *LogEntryGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the log entry.
func (*LogEntryClient) Poll ¶
func (c *LogEntryClient) Poll() *LogEntryPollRequest
Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.
type LogEntryDeleteRequest ¶
type LogEntryDeleteRequest struct {
// contains filtered or unexported fields
}
LogEntryDeleteRequest is the request for the 'delete' method.
func (*LogEntryDeleteRequest) Header ¶
func (r *LogEntryDeleteRequest) Header(name string, value interface{}) *LogEntryDeleteRequest
Header adds a request header.
func (*LogEntryDeleteRequest) Impersonate ¶ added in v0.0.329
func (r *LogEntryDeleteRequest) Impersonate(user string) *LogEntryDeleteRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*LogEntryDeleteRequest) Parameter ¶
func (r *LogEntryDeleteRequest) Parameter(name string, value interface{}) *LogEntryDeleteRequest
Parameter adds a query parameter.
func (*LogEntryDeleteRequest) Send ¶
func (r *LogEntryDeleteRequest) Send() (result *LogEntryDeleteResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*LogEntryDeleteRequest) SendContext ¶
func (r *LogEntryDeleteRequest) SendContext(ctx context.Context) (result *LogEntryDeleteResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type LogEntryDeleteResponse ¶
type LogEntryDeleteResponse struct {
// contains filtered or unexported fields
}
LogEntryDeleteResponse is the response for the 'delete' method.
func (*LogEntryDeleteResponse) Error ¶
func (r *LogEntryDeleteResponse) Error() *errors.Error
Error returns the response error.
func (*LogEntryDeleteResponse) Header ¶
func (r *LogEntryDeleteResponse) Header() http.Header
Header returns header of the response.
func (*LogEntryDeleteResponse) Status ¶
func (r *LogEntryDeleteResponse) Status() int
Status returns the response status code.
type LogEntryGetRequest ¶
type LogEntryGetRequest struct {
// contains filtered or unexported fields
}
LogEntryGetRequest is the request for the 'get' method.
func (*LogEntryGetRequest) Header ¶
func (r *LogEntryGetRequest) Header(name string, value interface{}) *LogEntryGetRequest
Header adds a request header.
func (*LogEntryGetRequest) Impersonate ¶ added in v0.0.329
func (r *LogEntryGetRequest) Impersonate(user string) *LogEntryGetRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*LogEntryGetRequest) Parameter ¶
func (r *LogEntryGetRequest) Parameter(name string, value interface{}) *LogEntryGetRequest
Parameter adds a query parameter.
func (*LogEntryGetRequest) Send ¶
func (r *LogEntryGetRequest) Send() (result *LogEntryGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*LogEntryGetRequest) SendContext ¶
func (r *LogEntryGetRequest) SendContext(ctx context.Context) (result *LogEntryGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type LogEntryGetResponse ¶
type LogEntryGetResponse struct {
// contains filtered or unexported fields
}
LogEntryGetResponse is the response for the 'get' method.
func (*LogEntryGetResponse) Body ¶
func (r *LogEntryGetResponse) Body() *LogEntry
Body returns the value of the 'body' parameter.
func (*LogEntryGetResponse) Error ¶
func (r *LogEntryGetResponse) Error() *errors.Error
Error returns the response error.
func (*LogEntryGetResponse) GetBody ¶
func (r *LogEntryGetResponse) GetBody() (value *LogEntry, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*LogEntryGetResponse) Header ¶
func (r *LogEntryGetResponse) Header() http.Header
Header returns header of the response.
func (*LogEntryGetResponse) Status ¶
func (r *LogEntryGetResponse) Status() int
Status returns the response status code.
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) 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) 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 ¶ added in v0.0.329
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 LogEntryPollRequest ¶
type LogEntryPollRequest struct {
// contains filtered or unexported fields
}
LogEntryPollRequest is the request for the Poll method.
func (*LogEntryPollRequest) Header ¶
func (r *LogEntryPollRequest) Header(name string, value interface{}) *LogEntryPollRequest
Header adds a request header to all the requests that will be used to retrieve the object.
func (*LogEntryPollRequest) Interval ¶
func (r *LogEntryPollRequest) Interval(value time.Duration) *LogEntryPollRequest
Interval sets the polling interval. This parameter is mandatory and must be greater than zero.
func (*LogEntryPollRequest) Parameter ¶
func (r *LogEntryPollRequest) Parameter(name string, value interface{}) *LogEntryPollRequest
Parameter adds a query parameter to all the requests that will be used to retrieve the object.
func (*LogEntryPollRequest) Predicate ¶
func (r *LogEntryPollRequest) Predicate(value func(*LogEntryGetResponse) bool) *LogEntryPollRequest
Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.
func (*LogEntryPollRequest) StartContext ¶
func (r *LogEntryPollRequest) StartContext(ctx context.Context) (response *LogEntryPollResponse, err error)
StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.
The context must have a timeout or deadline, otherwise this method will immediately return an error.
func (*LogEntryPollRequest) Status ¶
func (r *LogEntryPollRequest) Status(value int) *LogEntryPollRequest
Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.
type LogEntryPollResponse ¶
type LogEntryPollResponse struct {
// contains filtered or unexported fields
}
LogEntryPollResponse is the response for the Poll method.
func (*LogEntryPollResponse) Body ¶
func (r *LogEntryPollResponse) Body() *LogEntry
Body returns the value of the 'body' parameter.
func (*LogEntryPollResponse) Error ¶
func (r *LogEntryPollResponse) Error() *errors.Error
Error returns the response error.
func (*LogEntryPollResponse) GetBody ¶
func (r *LogEntryPollResponse) GetBody() (value *LogEntry, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*LogEntryPollResponse) Header ¶
func (r *LogEntryPollResponse) Header() http.Header
Header returns header of the response.
func (*LogEntryPollResponse) Status ¶
func (r *LogEntryPollResponse) Status() int
Status returns the response status code.
type LogType ¶ added in v0.0.329
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 UnmarshalLogTypeList ¶ added in v0.0.329
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 MetadataRequest ¶
type MetadataRequest struct {
// contains filtered or unexported fields
}
MetadataRequest is the request to retrieve the metadata.
func (*MetadataRequest) Header ¶
func (r *MetadataRequest) Header(name string, value interface{}) *MetadataRequest
Header adds a request header.
func (*MetadataRequest) Parameter ¶
func (r *MetadataRequest) Parameter(name string, value interface{}) *MetadataRequest
Parameter adds a query parameter.
func (*MetadataRequest) Send ¶
func (r *MetadataRequest) Send() (result *MetadataResponse, err error)
Send sends the metadata request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*MetadataRequest) SendContext ¶
func (r *MetadataRequest) SendContext(ctx context.Context) (result *MetadataResponse, err error)
SendContext sends the metadata request, waits for the response, and returns it.
type MetadataResponse ¶
type MetadataResponse struct {
// contains filtered or unexported fields
}
MetadataResponse is the response for the metadata request.
func (*MetadataResponse) Body ¶
func (r *MetadataResponse) Body() *Metadata
Body returns the response body.
func (*MetadataResponse) Error ¶
func (r *MetadataResponse) Error() *errors.Error
Error returns the response error.
func (*MetadataResponse) Header ¶
func (r *MetadataResponse) Header() http.Header
Header returns header of the response.
func (*MetadataResponse) Status ¶
func (r *MetadataResponse) Status() int
Status returns the response status code.
type Severity ¶
type Severity string
Severity represents the values of the 'severity' enumerated type.
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
- cluster_client.go
- cluster_logs_client.go
- cluster_logs_resource_json.go
- cluster_logs_uuid_client.go
- cluster_logs_uuid_resource_json.go
- cluster_resource_json.go
- clusters_client.go
- clusters_cluster_logs_client.go
- clusters_cluster_logs_resource_json.go
- clusters_resource_json.go
- date_list_type_json.go
- errors.go
- float_list_type_json.go
- integer_list_type_json.go
- interface_list_type_json.go
- log_entry_builder.go
- log_entry_client.go
- log_entry_list_builder.go
- log_entry_list_type_json.go
- log_entry_resource_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_client.go
- metadata_reader.go
- metadata_type.go
- openapi.go
- root_client.go
- root_resource_json.go
- severity_list_type_json.go
- severity_type.go
- string_list_type_json.go