v1

package
v0.1.419 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 14

Documentation

Index

Constants

View Source
const LogEntryKind = "LogEntry"

LogEntryKind is the name of the type used to represent objects of type 'log_entry'.

View Source
const LogEntryLinkKind = "LogEntryLink"

LogEntryLinkKind is the name of the type used to represent links to objects of type 'log_entry'.

View Source
const LogEntryListKind = "LogEntryList"

LogEntryListKind is the name of the type used to represent list of objects of type 'log_entry'.

View Source
const LogEntryListLinkKind = "LogEntryListLink"

LogEntryListLinkKind is the name of the type used to represent links to list of objects of type 'log_entry'.

View Source
const LogEntryListNilKind = "LogEntryListNil"

LogEntryNilKind is the name of the type used to nil lists of objects of type 'log_entry'.

View Source
const LogEntryNilKind = "LogEntryNil"

LogEntryNilKind is the name of the type used to nil references to objects of type 'log_entry'.

Variables

View Source
var OpenAPI = []byte{}/* 20398 elements not displayed */

OpenAPI contains the OpenAPI specification of the service in JSON.

Functions

func MarshalBooleanList

func MarshalBooleanList(list []bool, writer io.Writer) error

MarshalBooleanList writes a list of values of the 'boolean' type to the given writer.

func MarshalDateList

func MarshalDateList(list []time.Time, writer io.Writer) error

MarshalDateList writes a list of values of the 'date' type to the given writer.

func MarshalFloatList

func MarshalFloatList(list []float64, writer io.Writer) error

MarshalFloatList writes a list of values of the 'float' type to the given writer.

func MarshalIntegerList

func MarshalIntegerList(list []int, writer io.Writer) error

MarshalIntegerList writes a list of values of the 'integer' type to the given writer.

func MarshalInterfaceList

func MarshalInterfaceList(list []interface{}, writer io.Writer) error

MarshalInterfaceList writes a list of values of the 'interface' type to the given writer.

func MarshalLogEntry

func MarshalLogEntry(object *LogEntry, writer io.Writer) error

MarshalLogEntry writes a value of the 'log_entry' type to the given writer.

func MarshalLogEntryList

func MarshalLogEntryList(list []*LogEntry, writer io.Writer) error

MarshalLogEntryList writes a list of values of the 'log_entry' type to the given writer.

func MarshalLogTypeList added in v0.0.329

func MarshalLogTypeList(list []LogType, writer io.Writer) error

MarshalLogTypeList writes a list of values of the 'log_type' type to the given writer.

func MarshalLongList

func MarshalLongList(list []int64, writer io.Writer) error

MarshalLongList writes a list of values of the 'long' type to the given writer.

func MarshalMetadata

func MarshalMetadata(object *Metadata, writer io.Writer) error

MarshalMetadata writes a value of the metadata type to the given target, which can be a writer or a JSON encoder.

func MarshalSeverityList

func MarshalSeverityList(list []Severity, writer io.Writer) error

MarshalSeverityList writes a list of values of the 'severity' type to the given writer.

func MarshalStringList

func MarshalStringList(list []string, writer io.Writer) error

MarshalStringList writes a list of values of the 'string' type to the given writer.

func UnmarshalBooleanList

func UnmarshalBooleanList(source interface{}) (items []bool, err error)

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

func UnmarshalDateList(source interface{}) (items []time.Time, err error)

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

func UnmarshalFloatList(source interface{}) (items []float64, err error)

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

func UnmarshalIntegerList(source interface{}) (items []int, err error)

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

func UnmarshalLongList(source interface{}) (items []int64, err error)

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

func UnmarshalStringList(source interface{}) (items []string, err error)

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

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

Add creates a request for the 'add' method.

Creates a new log entry.

func (*ClusterLogsClient) List

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

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*ClusterLogsListRequest) Order

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

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

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

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

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

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

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

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

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

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

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

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

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

Header returns header of the response.

func (*ClusterLogsUUIDListResponse) Items added in v0.0.329

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

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

ClusterID sets the value of the 'cluster_ID' parameter.

cluster_id parameter.

func (*ClustersClusterLogsListRequest) ClusterUUID added in v0.1.364

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

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

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

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

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

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

SendContext sends this request, waits for the response, and returns it.

func (*ClustersClusterLogsListRequest) Size added in v0.1.364

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

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

Header returns header of the response.

func (*ClustersClusterLogsListResponse) Items added in v0.1.364

Items returns the value of the 'items' parameter.

Retrieved list of Cluster logs.

func (*ClustersClusterLogsListResponse) Page added in v0.1.364

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

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

Status returns the response status code.

func (*ClustersClusterLogsListResponse) Total added in v0.1.364

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

func UnmarshalLogEntry(source interface{}) (object *LogEntry, err error)

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

func UnmarshalLogEntryList(source interface{}) (items []*LogEntry, err error)

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

func (o *LogEntry) ClusterID() string

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

func (o *LogEntry) ClusterUUID() string

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

func (o *LogEntry) CreatedAt() time.Time

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

func (o *LogEntry) CreatedBy() string

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

func (o *LogEntry) Description() string

Description returns the value of the 'description' attribute, or the zero value of the type if the attribute doesn't have a value.

Full description of the log entry content (supports Markdown format as well).

func (*LogEntry) DocReferences added in v0.1.382

func (o *LogEntry) DocReferences() []string

DocReferences returns the value of the 'doc_references' attribute, or the zero value of the type if the attribute doesn't have a value.

The list of documentation references (i.e links) contained in the event.

func (*LogEntry) Empty

func (o *LogEntry) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*LogEntry) EventStreamID added in v0.0.329

func (o *LogEntry) EventStreamID() string

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

func (o *LogEntry) GetClusterID() (value string, ok bool)

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

func (o *LogEntry) GetClusterUUID() (value string, ok bool)

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

func (o *LogEntry) GetCreatedAt() (value time.Time, ok bool)

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

func (o *LogEntry) GetCreatedBy() (value string, ok bool)

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

func (o *LogEntry) GetDescription() (value string, ok bool)

GetDescription returns the value of the 'description' attribute and a flag indicating if the attribute has a value.

Full description of the log entry content (supports Markdown format as well).

func (*LogEntry) GetDocReferences added in v0.1.382

func (o *LogEntry) GetDocReferences() (value []string, ok bool)

GetDocReferences returns the value of the 'doc_references' attribute and a flag indicating if the attribute has a value.

The list of documentation references (i.e links) contained in the event.

func (*LogEntry) GetEventStreamID added in v0.0.329

func (o *LogEntry) GetEventStreamID() (value string, ok bool)

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

func (o *LogEntry) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*LogEntry) GetID

func (o *LogEntry) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*LogEntry) GetInternalOnly

func (o *LogEntry) GetInternalOnly() (value bool, ok bool)

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

func (o *LogEntry) GetLogType() (value LogType, ok bool)

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

func (o *LogEntry) GetServiceName() (value string, ok bool)

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

func (o *LogEntry) GetSeverity() (value Severity, ok bool)

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

func (o *LogEntry) GetSubscriptionID() (value string, ok bool)

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

func (o *LogEntry) GetSummary() (value string, ok bool)

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

func (o *LogEntry) GetTimestamp() (value time.Time, ok bool)

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

func (o *LogEntry) GetUsername() (value string, ok bool)

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) HREF

func (o *LogEntry) HREF() string

HREF returns the link to the object.

func (*LogEntry) ID

func (o *LogEntry) ID() string

ID returns the identifier of the object.

func (*LogEntry) InternalOnly

func (o *LogEntry) InternalOnly() bool

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) Kind

func (o *LogEntry) Kind() string

Kind returns the name of the type of the object.

func (o *LogEntry) Link() bool

Link returns true iif this is a link.

func (*LogEntry) LogType added in v0.0.329

func (o *LogEntry) LogType() LogType

LogType returns the value of the 'log_type' attribute, or the zero value of the type if the attribute doesn't have a value.

Type of the service log entry.

func (*LogEntry) ServiceName

func (o *LogEntry) ServiceName() string

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

func (o *LogEntry) Severity() 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

func (o *LogEntry) SubscriptionID() string

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

func (o *LogEntry) Summary() string

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.

func (*LogEntry) Timestamp

func (o *LogEntry) Timestamp() time.Time

Timestamp returns the value of the 'timestamp' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*LogEntry) Username added in v0.0.329

func (o *LogEntry) Username() string

Username returns the value of the 'username' attribute, or the zero value of the type if the attribute doesn't have a value.

The username that triggered the event (if available).

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) DocReferences added in v0.1.382

func (b *LogEntryBuilder) DocReferences(values ...string) *LogEntryBuilder

DocReferences sets the value of the 'doc_references' attribute to the given values.

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 (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

Delete creates a request for the 'delete' method.

Deletes the log entry.

func (*LogEntryClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the log entry.

func (*LogEntryClient) Poll

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) HREF

func (l *LogEntryList) HREF() string

HREF returns the link to the list.

func (*LogEntryList) Kind

func (l *LogEntryList) Kind() string

Kind returns the name of the type of the object.

func (*LogEntryList) Len

func (l *LogEntryList) Len() int

Len returns the length of the list.

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

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

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

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

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

func UnmarshalLogTypeList(source interface{}) (items []LogType, err error)

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

func UnmarshalMetadata(source interface{}) (object *Metadata, err error)

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

func (m *Metadata) GetServerVersion() (value string, ok bool)

GetServerVersion returns the value of the server version and a flag indicating if the attribute has a value.

func (*Metadata) ServerVersion

func (m *Metadata) ServerVersion() string

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.

const (
	//
	SeverityDebug Severity = "Debug"
	//
	SeverityError Severity = "Error"
	//
	SeverityFatal Severity = "Fatal"
	//
	SeverityInfo Severity = "Info"
	//
	SeverityWarning Severity = "Warning"
)

func UnmarshalSeverityList

func UnmarshalSeverityList(source interface{}) (items []Severity, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL