v1

package
v0.1.155 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 12 Imported by: 17

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{}/* 10585 elements not displayed */

OpenAPI contains the OpenAPI specification of the service in JSON.

Functions

func Dispatch

func Dispatch(w http.ResponseWriter, r *http.Request, server Server, segments []string)

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

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

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

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

Body sets the value of the 'body' parameter.

Log entry data.

func (*ClusterLogsAddServerResponse) Status

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

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.

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

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

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:

[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

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

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

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*ClusterLogsListServerRequest) Search

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

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

Items sets the value of the 'items' parameter.

Retrieved list of Cluster logs.

func (*ClusterLogsListServerResponse) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*ClusterLogsListServerResponse) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*ClusterLogsListServerResponse) Status

Status sets the status code.

func (*ClusterLogsListServerResponse) Total

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

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

func (o *LogEntry) Empty() bool

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

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

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

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

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

Body sets the value of the 'body' parameter.

func (*LogEntryGetServerResponse) Status

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

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

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