Documentation ¶
Index ¶
- Constants
- Variables
- func Dispatch(w http.ResponseWriter, r *http.Request, server Server, segments []string)
- 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 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 ClusterLogsAddRequest
- func (r *ClusterLogsAddRequest) Body(value *LogEntry) *ClusterLogsAddRequest
- func (r *ClusterLogsAddRequest) Header(name string, value interface{}) *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 ClusterLogsAddServerRequest
- type ClusterLogsAddServerResponse
- type ClusterLogsClient
- type ClusterLogsListRequest
- func (r *ClusterLogsListRequest) Header(name string, value interface{}) *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 ClusterLogsListServerRequest
- func (r *ClusterLogsListServerRequest) GetOrder() (value string, ok bool)
- func (r *ClusterLogsListServerRequest) GetPage() (value int, ok bool)
- func (r *ClusterLogsListServerRequest) GetSearch() (value string, ok bool)
- func (r *ClusterLogsListServerRequest) GetSize() (value int, ok bool)
- func (r *ClusterLogsListServerRequest) Order() string
- func (r *ClusterLogsListServerRequest) Page() int
- func (r *ClusterLogsListServerRequest) Search() string
- func (r *ClusterLogsListServerRequest) Size() int
- type ClusterLogsListServerResponse
- func (r *ClusterLogsListServerResponse) Items(value *LogEntryList) *ClusterLogsListServerResponse
- func (r *ClusterLogsListServerResponse) Page(value int) *ClusterLogsListServerResponse
- func (r *ClusterLogsListServerResponse) Size(value int) *ClusterLogsListServerResponse
- func (r *ClusterLogsListServerResponse) Status(value int) *ClusterLogsListServerResponse
- func (r *ClusterLogsListServerResponse) Total(value int) *ClusterLogsListServerResponse
- type ClusterLogsServer
- type LogEntry
- func (o *LogEntry) ClusterUUID() string
- func (o *LogEntry) Description() string
- func (o *LogEntry) Empty() bool
- func (o *LogEntry) GetClusterUUID() (value string, ok bool)
- func (o *LogEntry) GetDescription() (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) GetServiceName() (value string, ok bool)
- func (o *LogEntry) GetSeverity() (value Severity, ok bool)
- func (o *LogEntry) GetSummary() (value string, ok bool)
- func (o *LogEntry) GetTimestamp() (value time.Time, 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) ServiceName() string
- func (o *LogEntry) Severity() Severity
- func (o *LogEntry) Summary() string
- func (o *LogEntry) Timestamp() time.Time
- type LogEntryBuilder
- func (b *LogEntryBuilder) Build() (object *LogEntry, err error)
- func (b *LogEntryBuilder) ClusterUUID(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) Copy(object *LogEntry) *LogEntryBuilder
- func (b *LogEntryBuilder) Description(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) ServiceName(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) Severity(value Severity) *LogEntryBuilder
- func (b *LogEntryBuilder) Summary(value string) *LogEntryBuilder
- func (b *LogEntryBuilder) Timestamp(value time.Time) *LogEntryBuilder
- type LogEntryClient
- type LogEntryDeleteRequest
- func (r *LogEntryDeleteRequest) Header(name string, value interface{}) *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 LogEntryDeleteServerRequest
- type LogEntryDeleteServerResponse
- type LogEntryGetRequest
- func (r *LogEntryGetRequest) Header(name string, value interface{}) *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 LogEntryGetServerRequest
- type LogEntryGetServerResponse
- 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 LogEntryServer
- 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 Server
- 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{}/* 10585 elements not displayed */
OpenAPI contains the OpenAPI specification of the service in JSON.
Functions ¶
func Dispatch ¶
Dispatch navigates the servers tree rooted at the given server till it finds one that matches the given set of path segments, and then invokes the corresponding server.
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 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, metric 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) Get ¶
func (c *Client) Get() *MetadataRequest
Creates a new request for the method that retrieves the metadata.
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) 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 ClusterLogsAddServerRequest ¶
type ClusterLogsAddServerRequest struct {
// contains filtered or unexported fields
}
ClusterLogsAddServerRequest is the request for the 'add' method.
func (*ClusterLogsAddServerRequest) Body ¶
func (r *ClusterLogsAddServerRequest) Body() *LogEntry
Body returns the value of the 'body' parameter.
Log entry data.
func (*ClusterLogsAddServerRequest) GetBody ¶
func (r *ClusterLogsAddServerRequest) 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.
type ClusterLogsAddServerResponse ¶
type ClusterLogsAddServerResponse struct {
// contains filtered or unexported fields
}
ClusterLogsAddServerResponse is the response for the 'add' method.
func (*ClusterLogsAddServerResponse) Body ¶
func (r *ClusterLogsAddServerResponse) Body(value *LogEntry) *ClusterLogsAddServerResponse
Body sets the value of the 'body' parameter.
Log entry data.
func (*ClusterLogsAddServerResponse) Status ¶
func (r *ClusterLogsAddServerResponse) Status(value int) *ClusterLogsAddServerResponse
Status sets the 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, metric 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.
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) 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:
[source,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:
[source,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 ClusterLogsListServerRequest ¶
type ClusterLogsListServerRequest struct {
// contains filtered or unexported fields
}
ClusterLogsListServerRequest is the request for the 'list' method.
func (*ClusterLogsListServerRequest) GetOrder ¶
func (r *ClusterLogsListServerRequest) GetOrder() (value string, ok bool)
GetOrder returns the value of the 'order' parameter and a flag indicating if the parameter has a value.
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:
[source,sql] ---- name desc ----
If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.
func (*ClusterLogsListServerRequest) GetPage ¶
func (r *ClusterLogsListServerRequest) 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 (*ClusterLogsListServerRequest) GetSearch ¶
func (r *ClusterLogsListServerRequest) GetSearch() (value string, ok bool)
GetSearch returns the value of the 'search' parameter and a flag indicating if the parameter has a value.
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:
[source,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 (*ClusterLogsListServerRequest) GetSize ¶
func (r *ClusterLogsListServerRequest) 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 (*ClusterLogsListServerRequest) Order ¶
func (r *ClusterLogsListServerRequest) Order() string
Order returns 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:
[source,sql] ---- name desc ----
If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.
func (*ClusterLogsListServerRequest) Page ¶
func (r *ClusterLogsListServerRequest) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
func (*ClusterLogsListServerRequest) Search ¶
func (r *ClusterLogsListServerRequest) Search() string
Search returns 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:
[source,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 (*ClusterLogsListServerRequest) Size ¶
func (r *ClusterLogsListServerRequest) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
type ClusterLogsListServerResponse ¶
type ClusterLogsListServerResponse struct {
// contains filtered or unexported fields
}
ClusterLogsListServerResponse is the response for the 'list' method.
func (*ClusterLogsListServerResponse) Items ¶
func (r *ClusterLogsListServerResponse) Items(value *LogEntryList) *ClusterLogsListServerResponse
Items sets the value of the 'items' parameter.
Retrieved list of Cluster logs.
func (*ClusterLogsListServerResponse) Page ¶
func (r *ClusterLogsListServerResponse) Page(value int) *ClusterLogsListServerResponse
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
func (*ClusterLogsListServerResponse) Size ¶
func (r *ClusterLogsListServerResponse) Size(value int) *ClusterLogsListServerResponse
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
func (*ClusterLogsListServerResponse) Status ¶
func (r *ClusterLogsListServerResponse) Status(value int) *ClusterLogsListServerResponse
Status sets the status code.
func (*ClusterLogsListServerResponse) Total ¶
func (r *ClusterLogsListServerResponse) Total(value int) *ClusterLogsListServerResponse
Total sets 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 ClusterLogsServer ¶
type ClusterLogsServer interface { // Add handles a request for the 'add' method. // // Creates a new log entry. Add(ctx context.Context, request *ClusterLogsAddServerRequest, response *ClusterLogsAddServerResponse) error // List handles a request for the 'list' method. // // Retrieves the list of cluster logs. List(ctx context.Context, request *ClusterLogsListServerRequest, response *ClusterLogsListServerResponse) error // LogEntry returns the target 'log_entry' server for the given identifier. // // Reference to the service that manages a specific Log entry. LogEntry(id string) LogEntryServer }
ClusterLogsServer represents the interface the manages the 'cluster_logs' resource.
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) 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) 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) 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) 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) 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) 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) 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) 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) 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.
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) 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) Description ¶
func (b *LogEntryBuilder) Description(value string) *LogEntryBuilder
Description sets the value of the 'description' 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) 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) 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.
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, metric 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) 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 LogEntryDeleteServerRequest ¶
type LogEntryDeleteServerRequest struct { }
LogEntryDeleteServerRequest is the request for the 'delete' method.
type LogEntryDeleteServerResponse ¶
type LogEntryDeleteServerResponse struct {
// contains filtered or unexported fields
}
LogEntryDeleteServerResponse is the response for the 'delete' method.
func (*LogEntryDeleteServerResponse) Status ¶
func (r *LogEntryDeleteServerResponse) Status(value int) *LogEntryDeleteServerResponse
Status sets the 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) 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 LogEntryGetServerRequest ¶
type LogEntryGetServerRequest struct { }
LogEntryGetServerRequest is the request for the 'get' method.
type LogEntryGetServerResponse ¶
type LogEntryGetServerResponse struct {
// contains filtered or unexported fields
}
LogEntryGetServerResponse is the response for the 'get' method.
func (*LogEntryGetServerResponse) Body ¶
func (r *LogEntryGetServerResponse) Body(value *LogEntry) *LogEntryGetServerResponse
Body sets the value of the 'body' parameter.
func (*LogEntryGetServerResponse) Status ¶
func (r *LogEntryGetServerResponse) Status(value int) *LogEntryGetServerResponse
Status sets the 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) 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 LogEntryServer ¶
type LogEntryServer interface { // Delete handles a request for the 'delete' method. // // Deletes the log entry. Delete(ctx context.Context, request *LogEntryDeleteServerRequest, response *LogEntryDeleteServerResponse) error // Get handles a request for the 'get' method. // // Retrieves the details of the log entry. Get(ctx context.Context, request *LogEntryGetServerRequest, response *LogEntryGetServerResponse) error }
LogEntryServer represents the interface the manages the 'log_entry' resource.
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 Server ¶
type Server interface { // ClusterLogs returns the target 'cluster_logs' resource. // // Reference to the resource that manages the collection of cluster logs. ClusterLogs() ClusterLogsServer }
Server represents the interface the manages the 'root' resource.
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_logs_client.go
- cluster_logs_resource_json.go
- cluster_logs_server.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_server.go
- log_entry_type.go
- log_entry_type_json.go
- long_list_type_json.go
- metadata_client.go
- metadata_reader.go
- metadata_type.go
- openapi.go
- root_client.go
- root_resource_json.go
- root_server.go
- severity_list_type_json.go
- severity_type.go
- string_list_type_json.go