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

Documentation

Index

Constants

View Source
const ApplicationDependencyKind = "ApplicationDependency"

ApplicationDependencyKind is the name of the type used to represent objects of type 'application_dependency'.

View Source
const ApplicationDependencyLinkKind = "ApplicationDependencyLink"

ApplicationDependencyLinkKind is the name of the type used to represent links to objects of type 'application_dependency'.

View Source
const ApplicationDependencyListKind = "ApplicationDependencyList"

ApplicationDependencyListKind is the name of the type used to represent list of objects of type 'application_dependency'.

View Source
const ApplicationDependencyListLinkKind = "ApplicationDependencyListLink"

ApplicationDependencyListLinkKind is the name of the type used to represent links to list of objects of type 'application_dependency'.

View Source
const ApplicationDependencyListNilKind = "ApplicationDependencyListNil"

ApplicationDependencyNilKind is the name of the type used to nil lists of objects of type 'application_dependency'.

View Source
const ApplicationDependencyNilKind = "ApplicationDependencyNil"

ApplicationDependencyNilKind is the name of the type used to nil references to objects of type 'application_dependency'.

View Source
const ApplicationKind = "Application"

ApplicationKind is the name of the type used to represent objects of type 'application'.

View Source
const ApplicationLinkKind = "ApplicationLink"

ApplicationLinkKind is the name of the type used to represent links to objects of type 'application'.

View Source
const ApplicationListKind = "ApplicationList"

ApplicationListKind is the name of the type used to represent list of objects of type 'application'.

View Source
const ApplicationListLinkKind = "ApplicationListLink"

ApplicationListLinkKind is the name of the type used to represent links to list of objects of type 'application'.

View Source
const ApplicationListNilKind = "ApplicationListNil"

ApplicationNilKind is the name of the type used to nil lists of objects of type 'application'.

View Source
const ApplicationNilKind = "ApplicationNil"

ApplicationNilKind is the name of the type used to nil references to objects of type 'application'.

View Source
const ErrorKind = "Error"

ErrorKind is the name of the type used to represent objects of type 'error'.

View Source
const ErrorLinkKind = "ErrorLink"

ErrorLinkKind is the name of the type used to represent links to objects of type 'error'.

View Source
const ErrorListKind = "ErrorList"

ErrorListKind is the name of the type used to represent list of objects of type 'error'.

View Source
const ErrorListLinkKind = "ErrorListLink"

ErrorListLinkKind is the name of the type used to represent links to list of objects of type 'error'.

View Source
const ErrorListNilKind = "ErrorListNil"

ErrorNilKind is the name of the type used to nil lists of objects of type 'error'.

View Source
const ErrorNilKind = "ErrorNil"

ErrorNilKind is the name of the type used to nil references to objects of type 'error'.

View Source
const OwnerKind = "Owner"

OwnerKind is the name of the type used to represent objects of type 'owner'.

View Source
const OwnerLinkKind = "OwnerLink"

OwnerLinkKind is the name of the type used to represent links to objects of type 'owner'.

View Source
const OwnerListKind = "OwnerList"

OwnerListKind is the name of the type used to represent list of objects of type 'owner'.

View Source
const OwnerListLinkKind = "OwnerListLink"

OwnerListLinkKind is the name of the type used to represent links to list of objects of type 'owner'.

View Source
const OwnerListNilKind = "OwnerListNil"

OwnerNilKind is the name of the type used to nil lists of objects of type 'owner'.

View Source
const OwnerNilKind = "OwnerNil"

OwnerNilKind is the name of the type used to nil references to objects of type 'owner'.

View Source
const PeerDependencyKind = "PeerDependency"

PeerDependencyKind is the name of the type used to represent objects of type 'peer_dependency'.

View Source
const PeerDependencyLinkKind = "PeerDependencyLink"

PeerDependencyLinkKind is the name of the type used to represent links to objects of type 'peer_dependency'.

View Source
const PeerDependencyListKind = "PeerDependencyList"

PeerDependencyListKind is the name of the type used to represent list of objects of type 'peer_dependency'.

View Source
const PeerDependencyListLinkKind = "PeerDependencyListLink"

PeerDependencyListLinkKind is the name of the type used to represent links to list of objects of type 'peer_dependency'.

View Source
const PeerDependencyListNilKind = "PeerDependencyListNil"

PeerDependencyNilKind is the name of the type used to nil lists of objects of type 'peer_dependency'.

View Source
const PeerDependencyNilKind = "PeerDependencyNil"

PeerDependencyNilKind is the name of the type used to nil references to objects of type 'peer_dependency'.

View Source
const ProductKind = "Product"

ProductKind is the name of the type used to represent objects of type 'product'.

View Source
const ProductLinkKind = "ProductLink"

ProductLinkKind is the name of the type used to represent links to objects of type 'product'.

View Source
const ProductListKind = "ProductList"

ProductListKind is the name of the type used to represent list of objects of type 'product'.

View Source
const ProductListLinkKind = "ProductListLink"

ProductListLinkKind is the name of the type used to represent links to list of objects of type 'product'.

View Source
const ProductListNilKind = "ProductListNil"

ProductNilKind is the name of the type used to nil lists of objects of type 'product'.

View Source
const ProductNilKind = "ProductNil"

ProductNilKind is the name of the type used to nil references to objects of type 'product'.

View Source
const ServiceDependencyKind = "ServiceDependency"

ServiceDependencyKind is the name of the type used to represent objects of type 'service_dependency'.

View Source
const ServiceDependencyLinkKind = "ServiceDependencyLink"

ServiceDependencyLinkKind is the name of the type used to represent links to objects of type 'service_dependency'.

View Source
const ServiceDependencyListKind = "ServiceDependencyList"

ServiceDependencyListKind is the name of the type used to represent list of objects of type 'service_dependency'.

View Source
const ServiceDependencyListLinkKind = "ServiceDependencyListLink"

ServiceDependencyListLinkKind is the name of the type used to represent links to list of objects of type 'service_dependency'.

View Source
const ServiceDependencyListNilKind = "ServiceDependencyListNil"

ServiceDependencyNilKind is the name of the type used to nil lists of objects of type 'service_dependency'.

View Source
const ServiceDependencyNilKind = "ServiceDependencyNil"

ServiceDependencyNilKind is the name of the type used to nil references to objects of type 'service_dependency'.

View Source
const ServiceInfoListKind = "ServiceInfoList"

ServiceInfoListKind is the name of the type used to represent list of objects of type 'service_info'.

View Source
const ServiceInfoListLinkKind = "ServiceInfoListLink"

ServiceInfoListLinkKind is the name of the type used to represent links to list of objects of type 'service_info'.

View Source
const ServiceInfoListNilKind = "ServiceInfoListNil"

ServiceInfoNilKind is the name of the type used to nil lists of objects of type 'service_info'.

View Source
const ServiceKind = "Service"

ServiceKind is the name of the type used to represent objects of type 'service'.

View Source
const ServiceLinkKind = "ServiceLink"

ServiceLinkKind is the name of the type used to represent links to objects of type 'service'.

View Source
const ServiceListKind = "ServiceList"

ServiceListKind is the name of the type used to represent list of objects of type 'service'.

View Source
const ServiceListLinkKind = "ServiceListLink"

ServiceListLinkKind is the name of the type used to represent links to list of objects of type 'service'.

View Source
const ServiceListNilKind = "ServiceListNil"

ServiceNilKind is the name of the type used to nil lists of objects of type 'service'.

View Source
const ServiceNilKind = "ServiceNil"

ServiceNilKind is the name of the type used to nil references to objects of type 'service'.

View Source
const StatusKind = "Status"

StatusKind is the name of the type used to represent objects of type 'status'.

View Source
const StatusLinkKind = "StatusLink"

StatusLinkKind is the name of the type used to represent links to objects of type 'status'.

View Source
const StatusListKind = "StatusList"

StatusListKind is the name of the type used to represent list of objects of type 'status'.

View Source
const StatusListLinkKind = "StatusListLink"

StatusListLinkKind is the name of the type used to represent links to list of objects of type 'status'.

View Source
const StatusListNilKind = "StatusListNil"

StatusNilKind is the name of the type used to nil lists of objects of type 'status'.

View Source
const StatusNilKind = "StatusNil"

StatusNilKind is the name of the type used to nil references to objects of type 'status'.

View Source
const StatusUpdateKind = "StatusUpdate"

StatusUpdateKind is the name of the type used to represent objects of type 'status_update'.

View Source
const StatusUpdateLinkKind = "StatusUpdateLink"

StatusUpdateLinkKind is the name of the type used to represent links to objects of type 'status_update'.

View Source
const StatusUpdateListKind = "StatusUpdateList"

StatusUpdateListKind is the name of the type used to represent list of objects of type 'status_update'.

View Source
const StatusUpdateListLinkKind = "StatusUpdateListLink"

StatusUpdateListLinkKind is the name of the type used to represent links to list of objects of type 'status_update'.

View Source
const StatusUpdateListNilKind = "StatusUpdateListNil"

StatusUpdateNilKind is the name of the type used to nil lists of objects of type 'status_update'.

View Source
const StatusUpdateNilKind = "StatusUpdateNil"

StatusUpdateNilKind is the name of the type used to nil references to objects of type 'status_update'.

Variables

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

OpenAPI contains the OpenAPI specification of the service in JSON.

Functions

func MarshalApplication

func MarshalApplication(object *Application, writer io.Writer) error

MarshalApplication writes a value of the 'application' type to the given writer.

func MarshalApplicationDependency

func MarshalApplicationDependency(object *ApplicationDependency, writer io.Writer) error

MarshalApplicationDependency writes a value of the 'application_dependency' type to the given writer.

func MarshalApplicationDependencyList

func MarshalApplicationDependencyList(list []*ApplicationDependency, writer io.Writer) error

MarshalApplicationDependencyList writes a list of values of the 'application_dependency' type to the given writer.

func MarshalApplicationList

func MarshalApplicationList(list []*Application, writer io.Writer) error

MarshalApplicationList writes a list of values of the 'application' type to the given writer.

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 MarshalError

func MarshalError(object *Error, writer io.Writer) error

MarshalError writes a value of the 'error' type to the given writer.

func MarshalErrorList

func MarshalErrorList(list []*Error, writer io.Writer) error

MarshalErrorList writes a list of values of the 'error' 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 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 MarshalOwner

func MarshalOwner(object *Owner, writer io.Writer) error

MarshalOwner writes a value of the 'owner' type to the given writer.

func MarshalOwnerList

func MarshalOwnerList(list []*Owner, writer io.Writer) error

MarshalOwnerList writes a list of values of the 'owner' type to the given writer.

func MarshalPeerDependency

func MarshalPeerDependency(object *PeerDependency, writer io.Writer) error

MarshalPeerDependency writes a value of the 'peer_dependency' type to the given writer.

func MarshalPeerDependencyList

func MarshalPeerDependencyList(list []*PeerDependency, writer io.Writer) error

MarshalPeerDependencyList writes a list of values of the 'peer_dependency' type to the given writer.

func MarshalProduct

func MarshalProduct(object *Product, writer io.Writer) error

MarshalProduct writes a value of the 'product' type to the given writer.

func MarshalProductList

func MarshalProductList(list []*Product, writer io.Writer) error

MarshalProductList writes a list of values of the 'product' type to the given writer.

func MarshalService

func MarshalService(object *Service, writer io.Writer) error

MarshalService writes a value of the 'service' type to the given writer.

func MarshalServiceDependency

func MarshalServiceDependency(object *ServiceDependency, writer io.Writer) error

MarshalServiceDependency writes a value of the 'service_dependency' type to the given writer.

func MarshalServiceDependencyList

func MarshalServiceDependencyList(list []*ServiceDependency, writer io.Writer) error

MarshalServiceDependencyList writes a list of values of the 'service_dependency' type to the given writer.

func MarshalServiceInfo

func MarshalServiceInfo(object *ServiceInfo, writer io.Writer) error

MarshalServiceInfo writes a value of the 'service_info' type to the given writer.

func MarshalServiceInfoList

func MarshalServiceInfoList(list []*ServiceInfo, writer io.Writer) error

MarshalServiceInfoList writes a list of values of the 'service_info' type to the given writer.

func MarshalServiceList

func MarshalServiceList(list []*Service, writer io.Writer) error

MarshalServiceList writes a list of values of the 'service' type to the given writer.

func MarshalStatus

func MarshalStatus(object *Status, writer io.Writer) error

MarshalStatus writes a value of the 'status' type to the given writer.

func MarshalStatusList

func MarshalStatusList(list []*Status, writer io.Writer) error

MarshalStatusList writes a list of values of the 'status' type to the given writer.

func MarshalStatusUpdate

func MarshalStatusUpdate(object *StatusUpdate, writer io.Writer) error

MarshalStatusUpdate writes a value of the 'status_update' type to the given writer.

func MarshalStatusUpdateList

func MarshalStatusUpdateList(list []*StatusUpdate, writer io.Writer) error

MarshalStatusUpdateList writes a list of values of the 'status_update' 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 Application

type Application struct {
	// contains filtered or unexported fields
}

Application represents the values of the 'application' type.

Definition of a Status Board application.

func UnmarshalApplication

func UnmarshalApplication(source interface{}) (object *Application, err error)

UnmarshalApplication reads a value of the 'application' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalApplicationList

func UnmarshalApplicationList(source interface{}) (items []*Application, err error)

UnmarshalApplicationList reads a list of values of the 'application' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Application) CreatedAt

func (o *Application) 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.

Object creation timestamp.

func (*Application) Empty

func (o *Application) Empty() bool

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

func (*Application) Fullname

func (o *Application) Fullname() string

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

The full name of the application.

func (*Application) GetCreatedAt

func (o *Application) 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.

Object creation timestamp.

func (*Application) GetFullname

func (o *Application) GetFullname() (value string, ok bool)

GetFullname returns the value of the 'fullname' attribute and a flag indicating if the attribute has a value.

The full name of the application.

func (*Application) GetHREF

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

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

func (*Application) GetID

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

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

func (*Application) GetMetadata

func (o *Application) GetMetadata() (value interface{}, ok bool)

GetMetadata returns the value of the 'metadata' attribute and a flag indicating if the attribute has a value.

Miscellaneous metadata about the application.

func (*Application) GetName

func (o *Application) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

The name of the application.

func (*Application) GetOwners

func (o *Application) GetOwners() (value []*Owner, ok bool)

GetOwners returns the value of the 'owners' attribute and a flag indicating if the attribute has a value.

The application owners (name and email)

func (*Application) GetProduct

func (o *Application) GetProduct() (value *Product, ok bool)

GetProduct returns the value of the 'product' attribute and a flag indicating if the attribute has a value.

The group ID that the application belongs to.

func (*Application) GetUpdatedAt

func (o *Application) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*Application) HREF

func (o *Application) HREF() string

HREF returns the link to the object.

func (*Application) ID

func (o *Application) ID() string

ID returns the identifier of the object.

func (*Application) Kind

func (o *Application) Kind() string

Kind returns the name of the type of the object.

func (o *Application) Link() bool

Link returns true iif this is a link.

func (*Application) Metadata

func (o *Application) Metadata() interface{}

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

Miscellaneous metadata about the application.

func (*Application) Name

func (o *Application) Name() string

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

The name of the application.

func (*Application) Owners

func (o *Application) Owners() []*Owner

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

The application owners (name and email)

func (*Application) Product

func (o *Application) Product() *Product

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

The group ID that the application belongs to.

func (*Application) UpdatedAt

func (o *Application) UpdatedAt() time.Time

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

Object modification timestamp.

type ApplicationBuilder

type ApplicationBuilder struct {
	// contains filtered or unexported fields
}

ApplicationBuilder contains the data and logic needed to build 'application' objects.

Definition of a Status Board application.

func NewApplication

func NewApplication() *ApplicationBuilder

NewApplication creates a new builder of 'application' objects.

func (*ApplicationBuilder) Build

func (b *ApplicationBuilder) Build() (object *Application, err error)

Build creates a 'application' object using the configuration stored in the builder.

func (*ApplicationBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ApplicationBuilder) CreatedAt

func (b *ApplicationBuilder) CreatedAt(value time.Time) *ApplicationBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*ApplicationBuilder) Empty

func (b *ApplicationBuilder) Empty() bool

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

func (*ApplicationBuilder) Fullname

func (b *ApplicationBuilder) Fullname(value string) *ApplicationBuilder

Fullname sets the value of the 'fullname' attribute to the given value.

func (*ApplicationBuilder) HREF

HREF sets the link to the object.

func (*ApplicationBuilder) ID

ID sets the identifier of the object.

func (b *ApplicationBuilder) Link(value bool) *ApplicationBuilder

Link sets the flag that indicates if this is a link.

func (*ApplicationBuilder) Metadata

func (b *ApplicationBuilder) Metadata(value interface{}) *ApplicationBuilder

Metadata sets the value of the 'metadata' attribute to the given value.

func (*ApplicationBuilder) Name

Name sets the value of the 'name' attribute to the given value.

func (*ApplicationBuilder) Owners

func (b *ApplicationBuilder) Owners(values ...*OwnerBuilder) *ApplicationBuilder

Owners sets the value of the 'owners' attribute to the given values.

func (*ApplicationBuilder) Product

Product sets the value of the 'product' attribute to the given value.

Definition of a Status Board product.

func (*ApplicationBuilder) UpdatedAt

func (b *ApplicationBuilder) UpdatedAt(value time.Time) *ApplicationBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type ApplicationClient

type ApplicationClient struct {
	// contains filtered or unexported fields
}

ApplicationClient is the client of the 'application' resource.

Provides detailed information about the specified application.

func NewApplicationClient

func NewApplicationClient(transport http.RoundTripper, path string) *ApplicationClient

NewApplicationClient creates a new client for the 'application' resource using the given transport to send the requests and receive the responses.

func (*ApplicationClient) Delete

Delete creates a request for the 'delete' method.

func (*ApplicationClient) Get

Get creates a request for the 'get' method.

func (*ApplicationClient) 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.

func (*ApplicationClient) Services

func (c *ApplicationClient) Services() *ServicesClient

Services returns the target 'services' resource.

func (*ApplicationClient) Update

Update creates a request for the 'update' method.

type ApplicationDeleteRequest

type ApplicationDeleteRequest struct {
	// contains filtered or unexported fields
}

ApplicationDeleteRequest is the request for the 'delete' method.

func (*ApplicationDeleteRequest) Header

func (r *ApplicationDeleteRequest) Header(name string, value interface{}) *ApplicationDeleteRequest

Header adds a request header.

func (*ApplicationDeleteRequest) Impersonate

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

func (*ApplicationDeleteRequest) Parameter

func (r *ApplicationDeleteRequest) Parameter(name string, value interface{}) *ApplicationDeleteRequest

Parameter adds a query parameter.

func (*ApplicationDeleteRequest) Send

func (r *ApplicationDeleteRequest) Send() (result *ApplicationDeleteResponse, 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 (*ApplicationDeleteRequest) SendContext

func (r *ApplicationDeleteRequest) SendContext(ctx context.Context) (result *ApplicationDeleteResponse, err error)

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

type ApplicationDeleteResponse

type ApplicationDeleteResponse struct {
	// contains filtered or unexported fields
}

ApplicationDeleteResponse is the response for the 'delete' method.

func (*ApplicationDeleteResponse) Error

Error returns the response error.

func (*ApplicationDeleteResponse) Header

Header returns header of the response.

func (*ApplicationDeleteResponse) Status

func (r *ApplicationDeleteResponse) Status() int

Status returns the response status code.

type ApplicationDependenciesAddRequest

type ApplicationDependenciesAddRequest struct {
	// contains filtered or unexported fields
}

ApplicationDependenciesAddRequest is the request for the 'add' method.

func (*ApplicationDependenciesAddRequest) Body

Body sets the value of the 'body' parameter.

func (*ApplicationDependenciesAddRequest) Header

Header adds a request header.

func (*ApplicationDependenciesAddRequest) Impersonate

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

func (*ApplicationDependenciesAddRequest) Parameter

func (r *ApplicationDependenciesAddRequest) Parameter(name string, value interface{}) *ApplicationDependenciesAddRequest

Parameter adds a query parameter.

func (*ApplicationDependenciesAddRequest) Send

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 (*ApplicationDependenciesAddRequest) SendContext

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

type ApplicationDependenciesAddResponse

type ApplicationDependenciesAddResponse struct {
	// contains filtered or unexported fields
}

ApplicationDependenciesAddResponse is the response for the 'add' method.

func (*ApplicationDependenciesAddResponse) Body

Body returns the value of the 'body' parameter.

func (*ApplicationDependenciesAddResponse) Error

Error returns the response error.

func (*ApplicationDependenciesAddResponse) GetBody

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ApplicationDependenciesAddResponse) Header

Header returns header of the response.

func (*ApplicationDependenciesAddResponse) Status

Status returns the response status code.

type ApplicationDependenciesClient

type ApplicationDependenciesClient struct {
	// contains filtered or unexported fields
}

ApplicationDependenciesClient is the client of the 'application_dependencies' resource.

Manages the collection of applications.

func NewApplicationDependenciesClient

func NewApplicationDependenciesClient(transport http.RoundTripper, path string) *ApplicationDependenciesClient

NewApplicationDependenciesClient creates a new client for the 'application_dependencies' resource using the given transport to send the requests and receive the responses.

func (*ApplicationDependenciesClient) Add

Add creates a request for the 'add' method.

func (*ApplicationDependenciesClient) ApplicationDependency

ApplicationDependency returns the target 'application_dependency' resource for the given identifier.

func (*ApplicationDependenciesClient) List

List creates a request for the 'list' method.

Retrieves the list of application dependencies.

type ApplicationDependenciesListRequest

type ApplicationDependenciesListRequest struct {
	// contains filtered or unexported fields
}

ApplicationDependenciesListRequest is the request for the 'list' method.

func (*ApplicationDependenciesListRequest) Header

Header adds a request header.

func (*ApplicationDependenciesListRequest) Impersonate

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

func (*ApplicationDependenciesListRequest) OrderBy

OrderBy sets the value of the 'order_by' parameter.

func (*ApplicationDependenciesListRequest) Page

Page sets the value of the 'page' parameter.

func (*ApplicationDependenciesListRequest) Parameter

func (r *ApplicationDependenciesListRequest) Parameter(name string, value interface{}) *ApplicationDependenciesListRequest

Parameter adds a query parameter.

func (*ApplicationDependenciesListRequest) Send

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 (*ApplicationDependenciesListRequest) SendContext

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

func (*ApplicationDependenciesListRequest) Size

Size sets the value of the 'size' parameter.

type ApplicationDependenciesListResponse

type ApplicationDependenciesListResponse struct {
	// contains filtered or unexported fields
}

ApplicationDependenciesListResponse is the response for the 'list' method.

func (*ApplicationDependenciesListResponse) Error

Error returns the response error.

func (*ApplicationDependenciesListResponse) GetItems

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

func (*ApplicationDependenciesListResponse) GetPage

func (r *ApplicationDependenciesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

func (*ApplicationDependenciesListResponse) GetSize

func (r *ApplicationDependenciesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

func (*ApplicationDependenciesListResponse) GetTotal

func (r *ApplicationDependenciesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

func (*ApplicationDependenciesListResponse) Header

Header returns header of the response.

func (*ApplicationDependenciesListResponse) Items

Items returns the value of the 'items' parameter.

func (*ApplicationDependenciesListResponse) Page

Page returns the value of the 'page' parameter.

func (*ApplicationDependenciesListResponse) Size

Size returns the value of the 'size' parameter.

func (*ApplicationDependenciesListResponse) Status

Status returns the response status code.

func (*ApplicationDependenciesListResponse) Total

Total returns the value of the 'total' parameter.

type ApplicationDependency

type ApplicationDependency struct {
	// contains filtered or unexported fields
}

ApplicationDependency represents the values of the 'application_dependency' type.

Definition of a Status Board application dependency.

func UnmarshalApplicationDependency

func UnmarshalApplicationDependency(source interface{}) (object *ApplicationDependency, err error)

UnmarshalApplicationDependency reads a value of the 'application_dependency' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalApplicationDependencyList

func UnmarshalApplicationDependencyList(source interface{}) (items []*ApplicationDependency, err error)

UnmarshalApplicationDependencyList reads a list of values of the 'application_dependency' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ApplicationDependency) Application

func (o *ApplicationDependency) Application() *Application

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

The parent Application of the dependency.

func (*ApplicationDependency) CreatedAt

func (o *ApplicationDependency) 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.

Object creation timestamp.

func (*ApplicationDependency) Empty

func (o *ApplicationDependency) Empty() bool

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

func (*ApplicationDependency) GetApplication

func (o *ApplicationDependency) GetApplication() (value *Application, ok bool)

GetApplication returns the value of the 'application' attribute and a flag indicating if the attribute has a value.

The parent Application of the dependency.

func (*ApplicationDependency) GetCreatedAt

func (o *ApplicationDependency) 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.

Object creation timestamp.

func (*ApplicationDependency) GetHREF

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

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

func (*ApplicationDependency) GetID

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

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

func (*ApplicationDependency) GetMetadata

func (o *ApplicationDependency) GetMetadata() (value interface{}, ok bool)

GetMetadata returns the value of the 'metadata' attribute and a flag indicating if the attribute has a value.

Miscellaneous metadata about the application.

func (*ApplicationDependency) GetName

func (o *ApplicationDependency) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

The name of the application.

func (*ApplicationDependency) GetOwners

func (o *ApplicationDependency) GetOwners() (value []*Owner, ok bool)

GetOwners returns the value of the 'owners' attribute and a flag indicating if the attribute has a value.

The application dependency owners (name and email)

func (*ApplicationDependency) GetService

func (o *ApplicationDependency) GetService() (value *Service, ok bool)

GetService returns the value of the 'service' attribute and a flag indicating if the attribute has a value.

The Service associated with the dependency.

func (*ApplicationDependency) GetType

func (o *ApplicationDependency) GetType() (value string, ok bool)

GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.

The type of application dependency, e.g. soft or hard.

func (*ApplicationDependency) GetUpdatedAt

func (o *ApplicationDependency) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*ApplicationDependency) HREF

func (o *ApplicationDependency) HREF() string

HREF returns the link to the object.

func (*ApplicationDependency) ID

func (o *ApplicationDependency) ID() string

ID returns the identifier of the object.

func (*ApplicationDependency) Kind

func (o *ApplicationDependency) Kind() string

Kind returns the name of the type of the object.

func (o *ApplicationDependency) Link() bool

Link returns true iif this is a link.

func (*ApplicationDependency) Metadata

func (o *ApplicationDependency) Metadata() interface{}

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

Miscellaneous metadata about the application.

func (*ApplicationDependency) Name

func (o *ApplicationDependency) Name() string

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

The name of the application.

func (*ApplicationDependency) Owners

func (o *ApplicationDependency) Owners() []*Owner

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

The application dependency owners (name and email)

func (*ApplicationDependency) Service

func (o *ApplicationDependency) Service() *Service

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

The Service associated with the dependency.

func (*ApplicationDependency) Type

func (o *ApplicationDependency) Type() string

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

The type of application dependency, e.g. soft or hard.

func (*ApplicationDependency) UpdatedAt

func (o *ApplicationDependency) UpdatedAt() time.Time

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

Object modification timestamp.

type ApplicationDependencyBuilder

type ApplicationDependencyBuilder struct {
	// contains filtered or unexported fields
}

ApplicationDependencyBuilder contains the data and logic needed to build 'application_dependency' objects.

Definition of a Status Board application dependency.

func NewApplicationDependency

func NewApplicationDependency() *ApplicationDependencyBuilder

NewApplicationDependency creates a new builder of 'application_dependency' objects.

func (*ApplicationDependencyBuilder) Application

Application sets the value of the 'application' attribute to the given value.

Definition of a Status Board application.

func (*ApplicationDependencyBuilder) Build

func (b *ApplicationDependencyBuilder) Build() (object *ApplicationDependency, err error)

Build creates a 'application_dependency' object using the configuration stored in the builder.

func (*ApplicationDependencyBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ApplicationDependencyBuilder) CreatedAt

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*ApplicationDependencyBuilder) Empty

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

func (*ApplicationDependencyBuilder) HREF

HREF sets the link to the object.

func (*ApplicationDependencyBuilder) ID

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*ApplicationDependencyBuilder) Metadata

func (b *ApplicationDependencyBuilder) Metadata(value interface{}) *ApplicationDependencyBuilder

Metadata sets the value of the 'metadata' attribute to the given value.

func (*ApplicationDependencyBuilder) Name

Name sets the value of the 'name' attribute to the given value.

func (*ApplicationDependencyBuilder) Owners

Owners sets the value of the 'owners' attribute to the given values.

func (*ApplicationDependencyBuilder) Service

Service sets the value of the 'service' attribute to the given value.

Definition of a Status Board Service.

func (*ApplicationDependencyBuilder) Type

Type sets the value of the 'type' attribute to the given value.

func (*ApplicationDependencyBuilder) UpdatedAt

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type ApplicationDependencyClient

type ApplicationDependencyClient struct {
	// contains filtered or unexported fields
}

ApplicationDependencyClient is the client of the 'application_dependency' resource.

Provides detailed information about the specified application dependency.

func NewApplicationDependencyClient

func NewApplicationDependencyClient(transport http.RoundTripper, path string) *ApplicationDependencyClient

NewApplicationDependencyClient creates a new client for the 'application_dependency' resource using the given transport to send the requests and receive the responses.

func (*ApplicationDependencyClient) Delete

Delete creates a request for the 'delete' method.

func (*ApplicationDependencyClient) Get

Get creates a request for the 'get' method.

func (*ApplicationDependencyClient) 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.

func (*ApplicationDependencyClient) Update

Update creates a request for the 'update' method.

type ApplicationDependencyDeleteRequest

type ApplicationDependencyDeleteRequest struct {
	// contains filtered or unexported fields
}

ApplicationDependencyDeleteRequest is the request for the 'delete' method.

func (*ApplicationDependencyDeleteRequest) Header

Header adds a request header.

func (*ApplicationDependencyDeleteRequest) Impersonate

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

func (*ApplicationDependencyDeleteRequest) Parameter

func (r *ApplicationDependencyDeleteRequest) Parameter(name string, value interface{}) *ApplicationDependencyDeleteRequest

Parameter adds a query parameter.

func (*ApplicationDependencyDeleteRequest) Send

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 (*ApplicationDependencyDeleteRequest) SendContext

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

type ApplicationDependencyDeleteResponse

type ApplicationDependencyDeleteResponse struct {
	// contains filtered or unexported fields
}

ApplicationDependencyDeleteResponse is the response for the 'delete' method.

func (*ApplicationDependencyDeleteResponse) Error

Error returns the response error.

func (*ApplicationDependencyDeleteResponse) Header

Header returns header of the response.

func (*ApplicationDependencyDeleteResponse) Status

Status returns the response status code.

type ApplicationDependencyGetRequest

type ApplicationDependencyGetRequest struct {
	// contains filtered or unexported fields
}

ApplicationDependencyGetRequest is the request for the 'get' method.

func (*ApplicationDependencyGetRequest) Header

func (r *ApplicationDependencyGetRequest) Header(name string, value interface{}) *ApplicationDependencyGetRequest

Header adds a request header.

func (*ApplicationDependencyGetRequest) Impersonate

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

func (*ApplicationDependencyGetRequest) Parameter

func (r *ApplicationDependencyGetRequest) Parameter(name string, value interface{}) *ApplicationDependencyGetRequest

Parameter adds a query parameter.

func (*ApplicationDependencyGetRequest) Send

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 (*ApplicationDependencyGetRequest) SendContext

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

type ApplicationDependencyGetResponse

type ApplicationDependencyGetResponse struct {
	// contains filtered or unexported fields
}

ApplicationDependencyGetResponse is the response for the 'get' method.

func (*ApplicationDependencyGetResponse) Body

Body returns the value of the 'body' parameter.

func (*ApplicationDependencyGetResponse) Error

Error returns the response error.

func (*ApplicationDependencyGetResponse) GetBody

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ApplicationDependencyGetResponse) Header

Header returns header of the response.

func (*ApplicationDependencyGetResponse) Status

Status returns the response status code.

type ApplicationDependencyList

type ApplicationDependencyList struct {
	// contains filtered or unexported fields
}

ApplicationDependencyList is a list of values of the 'application_dependency' type.

func (*ApplicationDependencyList) Each

func (l *ApplicationDependencyList) Each(f func(item *ApplicationDependency) 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 (*ApplicationDependencyList) Empty

func (l *ApplicationDependencyList) Empty() bool

Empty returns true if the list is empty.

func (*ApplicationDependencyList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ApplicationDependencyList) GetHREF

func (l *ApplicationDependencyList) GetHREF() (value string, ok bool)

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

func (*ApplicationDependencyList) HREF

HREF returns the link to the list.

func (*ApplicationDependencyList) Kind

Kind returns the name of the type of the object.

func (*ApplicationDependencyList) Len

func (l *ApplicationDependencyList) Len() int

Len returns the length of the list.

func (l *ApplicationDependencyList) Link() bool

Link returns true iif this is a link.

func (*ApplicationDependencyList) Range

func (l *ApplicationDependencyList) Range(f func(index int, item *ApplicationDependency) 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 (*ApplicationDependencyList) Slice

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 ApplicationDependencyListBuilder

type ApplicationDependencyListBuilder struct {
	// contains filtered or unexported fields
}

ApplicationDependencyListBuilder contains the data and logic needed to build 'application_dependency' objects.

func NewApplicationDependencyList

func NewApplicationDependencyList() *ApplicationDependencyListBuilder

NewApplicationDependencyList creates a new builder of 'application_dependency' objects.

func (*ApplicationDependencyListBuilder) Build

Build creates a list of 'application_dependency' objects using the configuration stored in the builder.

func (*ApplicationDependencyListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ApplicationDependencyListBuilder) Empty

Empty returns true if the list is empty.

func (*ApplicationDependencyListBuilder) Items

Items sets the items of the list.

type ApplicationDependencyPollRequest

type ApplicationDependencyPollRequest struct {
	// contains filtered or unexported fields
}

ApplicationDependencyPollRequest is the request for the Poll method.

func (*ApplicationDependencyPollRequest) Header

func (r *ApplicationDependencyPollRequest) Header(name string, value interface{}) *ApplicationDependencyPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*ApplicationDependencyPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*ApplicationDependencyPollRequest) Parameter

func (r *ApplicationDependencyPollRequest) Parameter(name string, value interface{}) *ApplicationDependencyPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*ApplicationDependencyPollRequest) 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 (*ApplicationDependencyPollRequest) StartContext

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 (*ApplicationDependencyPollRequest) Status

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 ApplicationDependencyPollResponse

type ApplicationDependencyPollResponse struct {
	// contains filtered or unexported fields
}

ApplicationDependencyPollResponse is the response for the Poll method.

func (*ApplicationDependencyPollResponse) Body

Body returns the value of the 'body' parameter.

func (*ApplicationDependencyPollResponse) Error

Error returns the response error.

func (*ApplicationDependencyPollResponse) GetBody

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ApplicationDependencyPollResponse) Header

Header returns header of the response.

func (*ApplicationDependencyPollResponse) Status

Status returns the response status code.

type ApplicationDependencyUpdateRequest

type ApplicationDependencyUpdateRequest struct {
	// contains filtered or unexported fields
}

ApplicationDependencyUpdateRequest is the request for the 'update' method.

func (*ApplicationDependencyUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*ApplicationDependencyUpdateRequest) Header

Header adds a request header.

func (*ApplicationDependencyUpdateRequest) Impersonate

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

func (*ApplicationDependencyUpdateRequest) Parameter

func (r *ApplicationDependencyUpdateRequest) Parameter(name string, value interface{}) *ApplicationDependencyUpdateRequest

Parameter adds a query parameter.

func (*ApplicationDependencyUpdateRequest) Send

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 (*ApplicationDependencyUpdateRequest) SendContext

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

type ApplicationDependencyUpdateResponse

type ApplicationDependencyUpdateResponse struct {
	// contains filtered or unexported fields
}

ApplicationDependencyUpdateResponse is the response for the 'update' method.

func (*ApplicationDependencyUpdateResponse) Body

Body returns the value of the 'body' parameter.

func (*ApplicationDependencyUpdateResponse) Error

Error returns the response error.

func (*ApplicationDependencyUpdateResponse) GetBody

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ApplicationDependencyUpdateResponse) Header

Header returns header of the response.

func (*ApplicationDependencyUpdateResponse) Status

Status returns the response status code.

type ApplicationGetRequest

type ApplicationGetRequest struct {
	// contains filtered or unexported fields
}

ApplicationGetRequest is the request for the 'get' method.

func (*ApplicationGetRequest) Header

func (r *ApplicationGetRequest) Header(name string, value interface{}) *ApplicationGetRequest

Header adds a request header.

func (*ApplicationGetRequest) Impersonate

func (r *ApplicationGetRequest) Impersonate(user string) *ApplicationGetRequest

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

func (*ApplicationGetRequest) Parameter

func (r *ApplicationGetRequest) Parameter(name string, value interface{}) *ApplicationGetRequest

Parameter adds a query parameter.

func (*ApplicationGetRequest) Send

func (r *ApplicationGetRequest) Send() (result *ApplicationGetResponse, 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 (*ApplicationGetRequest) SendContext

func (r *ApplicationGetRequest) SendContext(ctx context.Context) (result *ApplicationGetResponse, err error)

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

type ApplicationGetResponse

type ApplicationGetResponse struct {
	// contains filtered or unexported fields
}

ApplicationGetResponse is the response for the 'get' method.

func (*ApplicationGetResponse) Body

Body returns the value of the 'body' parameter.

func (*ApplicationGetResponse) Error

func (r *ApplicationGetResponse) Error() *errors.Error

Error returns the response error.

func (*ApplicationGetResponse) GetBody

func (r *ApplicationGetResponse) GetBody() (value *Application, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ApplicationGetResponse) Header

func (r *ApplicationGetResponse) Header() http.Header

Header returns header of the response.

func (*ApplicationGetResponse) Status

func (r *ApplicationGetResponse) Status() int

Status returns the response status code.

type ApplicationList

type ApplicationList struct {
	// contains filtered or unexported fields
}

ApplicationList is a list of values of the 'application' type.

func (*ApplicationList) Each

func (l *ApplicationList) Each(f func(item *Application) 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 (*ApplicationList) Empty

func (l *ApplicationList) Empty() bool

Empty returns true if the list is empty.

func (*ApplicationList) Get

func (l *ApplicationList) Get(i int) *Application

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ApplicationList) GetHREF

func (l *ApplicationList) GetHREF() (value string, ok bool)

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

func (*ApplicationList) HREF

func (l *ApplicationList) HREF() string

HREF returns the link to the list.

func (*ApplicationList) Kind

func (l *ApplicationList) Kind() string

Kind returns the name of the type of the object.

func (*ApplicationList) Len

func (l *ApplicationList) Len() int

Len returns the length of the list.

func (l *ApplicationList) Link() bool

Link returns true iif this is a link.

func (*ApplicationList) Range

func (l *ApplicationList) Range(f func(index int, item *Application) 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 (*ApplicationList) Slice

func (l *ApplicationList) Slice() []*Application

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 ApplicationListBuilder

type ApplicationListBuilder struct {
	// contains filtered or unexported fields
}

ApplicationListBuilder contains the data and logic needed to build 'application' objects.

func NewApplicationList

func NewApplicationList() *ApplicationListBuilder

NewApplicationList creates a new builder of 'application' objects.

func (*ApplicationListBuilder) Build

func (b *ApplicationListBuilder) Build() (list *ApplicationList, err error)

Build creates a list of 'application' objects using the configuration stored in the builder.

func (*ApplicationListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ApplicationListBuilder) Empty

func (b *ApplicationListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ApplicationListBuilder) Items

Items sets the items of the list.

type ApplicationPollRequest

type ApplicationPollRequest struct {
	// contains filtered or unexported fields
}

ApplicationPollRequest is the request for the Poll method.

func (*ApplicationPollRequest) Header

func (r *ApplicationPollRequest) Header(name string, value interface{}) *ApplicationPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*ApplicationPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*ApplicationPollRequest) Parameter

func (r *ApplicationPollRequest) Parameter(name string, value interface{}) *ApplicationPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*ApplicationPollRequest) 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 (*ApplicationPollRequest) StartContext

func (r *ApplicationPollRequest) StartContext(ctx context.Context) (response *ApplicationPollResponse, 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 (*ApplicationPollRequest) Status

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 ApplicationPollResponse

type ApplicationPollResponse struct {
	// contains filtered or unexported fields
}

ApplicationPollResponse is the response for the Poll method.

func (*ApplicationPollResponse) Body

Body returns the value of the 'body' parameter.

func (*ApplicationPollResponse) Error

func (r *ApplicationPollResponse) Error() *errors.Error

Error returns the response error.

func (*ApplicationPollResponse) GetBody

func (r *ApplicationPollResponse) GetBody() (value *Application, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ApplicationPollResponse) Header

func (r *ApplicationPollResponse) Header() http.Header

Header returns header of the response.

func (*ApplicationPollResponse) Status

func (r *ApplicationPollResponse) Status() int

Status returns the response status code.

type ApplicationUpdateRequest

type ApplicationUpdateRequest struct {
	// contains filtered or unexported fields
}

ApplicationUpdateRequest is the request for the 'update' method.

func (*ApplicationUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*ApplicationUpdateRequest) Header

func (r *ApplicationUpdateRequest) Header(name string, value interface{}) *ApplicationUpdateRequest

Header adds a request header.

func (*ApplicationUpdateRequest) Impersonate

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

func (*ApplicationUpdateRequest) Parameter

func (r *ApplicationUpdateRequest) Parameter(name string, value interface{}) *ApplicationUpdateRequest

Parameter adds a query parameter.

func (*ApplicationUpdateRequest) Send

func (r *ApplicationUpdateRequest) Send() (result *ApplicationUpdateResponse, 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 (*ApplicationUpdateRequest) SendContext

func (r *ApplicationUpdateRequest) SendContext(ctx context.Context) (result *ApplicationUpdateResponse, err error)

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

type ApplicationUpdateResponse

type ApplicationUpdateResponse struct {
	// contains filtered or unexported fields
}

ApplicationUpdateResponse is the response for the 'update' method.

func (*ApplicationUpdateResponse) Body

Body returns the value of the 'body' parameter.

func (*ApplicationUpdateResponse) Error

Error returns the response error.

func (*ApplicationUpdateResponse) GetBody

func (r *ApplicationUpdateResponse) GetBody() (value *Application, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ApplicationUpdateResponse) Header

Header returns header of the response.

func (*ApplicationUpdateResponse) Status

func (r *ApplicationUpdateResponse) Status() int

Status returns the response status code.

type ApplicationsAddRequest

type ApplicationsAddRequest struct {
	// contains filtered or unexported fields
}

ApplicationsAddRequest is the request for the 'add' method.

func (*ApplicationsAddRequest) Body

Body sets the value of the 'body' parameter.

func (*ApplicationsAddRequest) Header

func (r *ApplicationsAddRequest) Header(name string, value interface{}) *ApplicationsAddRequest

Header adds a request header.

func (*ApplicationsAddRequest) Impersonate

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

func (*ApplicationsAddRequest) Parameter

func (r *ApplicationsAddRequest) Parameter(name string, value interface{}) *ApplicationsAddRequest

Parameter adds a query parameter.

func (*ApplicationsAddRequest) Send

func (r *ApplicationsAddRequest) Send() (result *ApplicationsAddResponse, 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 (*ApplicationsAddRequest) SendContext

func (r *ApplicationsAddRequest) SendContext(ctx context.Context) (result *ApplicationsAddResponse, err error)

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

type ApplicationsAddResponse

type ApplicationsAddResponse struct {
	// contains filtered or unexported fields
}

ApplicationsAddResponse is the response for the 'add' method.

func (*ApplicationsAddResponse) Body

Body returns the value of the 'body' parameter.

func (*ApplicationsAddResponse) Error

func (r *ApplicationsAddResponse) Error() *errors.Error

Error returns the response error.

func (*ApplicationsAddResponse) GetBody

func (r *ApplicationsAddResponse) GetBody() (value *Application, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ApplicationsAddResponse) Header

func (r *ApplicationsAddResponse) Header() http.Header

Header returns header of the response.

func (*ApplicationsAddResponse) Status

func (r *ApplicationsAddResponse) Status() int

Status returns the response status code.

type ApplicationsClient

type ApplicationsClient struct {
	// contains filtered or unexported fields
}

ApplicationsClient is the client of the 'applications' resource.

Manages the collection of applications.

func NewApplicationsClient

func NewApplicationsClient(transport http.RoundTripper, path string) *ApplicationsClient

NewApplicationsClient creates a new client for the 'applications' resource using the given transport to send the requests and receive the responses.

func (*ApplicationsClient) Add

Add creates a request for the 'add' method.

func (*ApplicationsClient) Application

func (c *ApplicationsClient) Application(id string) *ApplicationClient

Application returns the target 'application' resource for the given identifier.

func (*ApplicationsClient) List

List creates a request for the 'list' method.

Retrieves the list of applications.

type ApplicationsListRequest

type ApplicationsListRequest struct {
	// contains filtered or unexported fields
}

ApplicationsListRequest is the request for the 'list' method.

func (*ApplicationsListRequest) Header

func (r *ApplicationsListRequest) Header(name string, value interface{}) *ApplicationsListRequest

Header adds a request header.

func (*ApplicationsListRequest) Impersonate

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

func (*ApplicationsListRequest) OrderBy

OrderBy sets the value of the 'order_by' parameter.

func (*ApplicationsListRequest) Page

Page sets the value of the 'page' parameter.

func (*ApplicationsListRequest) Parameter

func (r *ApplicationsListRequest) Parameter(name string, value interface{}) *ApplicationsListRequest

Parameter adds a query parameter.

func (*ApplicationsListRequest) Search added in v0.1.380

Search sets the value of the 'search' parameter.

func (*ApplicationsListRequest) Send

func (r *ApplicationsListRequest) Send() (result *ApplicationsListResponse, 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 (*ApplicationsListRequest) SendContext

func (r *ApplicationsListRequest) SendContext(ctx context.Context) (result *ApplicationsListResponse, err error)

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

func (*ApplicationsListRequest) Size

Size sets the value of the 'size' parameter.

type ApplicationsListResponse

type ApplicationsListResponse struct {
	// contains filtered or unexported fields
}

ApplicationsListResponse is the response for the 'list' method.

func (*ApplicationsListResponse) Error

Error returns the response error.

func (*ApplicationsListResponse) GetItems

func (r *ApplicationsListResponse) GetItems() (value *ApplicationList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

func (*ApplicationsListResponse) GetPage

func (r *ApplicationsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

func (*ApplicationsListResponse) GetSize

func (r *ApplicationsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

func (*ApplicationsListResponse) GetTotal

func (r *ApplicationsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

func (*ApplicationsListResponse) Header

func (r *ApplicationsListResponse) Header() http.Header

Header returns header of the response.

func (*ApplicationsListResponse) Items

Items returns the value of the 'items' parameter.

func (*ApplicationsListResponse) Page

func (r *ApplicationsListResponse) Page() int

Page returns the value of the 'page' parameter.

func (*ApplicationsListResponse) Size

func (r *ApplicationsListResponse) Size() int

Size returns the value of the 'size' parameter.

func (*ApplicationsListResponse) Status

func (r *ApplicationsListResponse) Status() int

Status returns the response status code.

func (*ApplicationsListResponse) Total

func (r *ApplicationsListResponse) Total() int

Total returns the value of the 'total' parameter.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the client of the 'root' resource.

Root of the tree of resources for applications.

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

func (c *Client) ApplicationDependencies() *ApplicationDependenciesClient

ApplicationDependencies returns the target 'application_dependencies' resource.

func (*Client) Applications

func (c *Client) Applications() *ApplicationsClient

Applications returns the target 'applications' resource.

func (*Client) Errors

func (c *Client) Errors() *ErrorsClient

Errors returns the target 'errors' resource.

func (*Client) Get

func (c *Client) Get() *MetadataRequest

Creates a new request for the method that retrieves the metadata.

func (*Client) PeerDependencies

func (c *Client) PeerDependencies() *PeerDependenciesClient

PeerDependencies returns the target 'peer_dependencies' resource.

func (*Client) Products

func (c *Client) Products() *ProductsClient

Products returns the target 'products' resource.

func (*Client) Services

func (c *Client) Services() *ServicesClient

Services returns the target 'services' resource.

func (*Client) StatusUpdates

func (c *Client) StatusUpdates() *StatusesClient

StatusUpdates returns the target 'statuses' resource.

func (*Client) Statuses

func (c *Client) Statuses() *StatusesClient

Statuses returns the target 'statuses' resource.

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error represents the values of the 'error' type.

Definition of a Status Board error.

func UnmarshalError

func UnmarshalError(source interface{}) (object *Error, err error)

UnmarshalError reads a value of the 'error' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalErrorList

func UnmarshalErrorList(source interface{}) (items []*Error, err error)

UnmarshalErrorList reads a list of values of the 'error' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Error) Code

func (o *Error) Code() string

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

func (*Error) Empty

func (o *Error) Empty() bool

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

func (*Error) GetCode

func (o *Error) GetCode() (value string, ok bool)

GetCode returns the value of the 'code' attribute and a flag indicating if the attribute has a value.

func (*Error) GetHREF

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

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

func (*Error) GetID

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

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

func (*Error) GetReason

func (o *Error) GetReason() (value string, ok bool)

GetReason returns the value of the 'reason' attribute and a flag indicating if the attribute has a value.

func (*Error) HREF

func (o *Error) HREF() string

HREF returns the link to the object.

func (*Error) ID

func (o *Error) ID() string

ID returns the identifier of the object.

func (*Error) Kind

func (o *Error) Kind() string

Kind returns the name of the type of the object.

func (o *Error) Link() bool

Link returns true iif this is a link.

func (*Error) Reason

func (o *Error) Reason() string

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

type ErrorBuilder

type ErrorBuilder struct {
	// contains filtered or unexported fields
}

ErrorBuilder contains the data and logic needed to build 'error' objects.

Definition of a Status Board error.

func NewError

func NewError() *ErrorBuilder

NewError creates a new builder of 'error' objects.

func (*ErrorBuilder) Build

func (b *ErrorBuilder) Build() (object *Error, err error)

Build creates a 'error' object using the configuration stored in the builder.

func (*ErrorBuilder) Code

func (b *ErrorBuilder) Code(value string) *ErrorBuilder

Code sets the value of the 'code' attribute to the given value.

func (*ErrorBuilder) Copy

func (b *ErrorBuilder) Copy(object *Error) *ErrorBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ErrorBuilder) Empty

func (b *ErrorBuilder) Empty() bool

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

func (*ErrorBuilder) HREF

func (b *ErrorBuilder) HREF(value string) *ErrorBuilder

HREF sets the link to the object.

func (*ErrorBuilder) ID

func (b *ErrorBuilder) ID(value string) *ErrorBuilder

ID sets the identifier of the object.

func (b *ErrorBuilder) Link(value bool) *ErrorBuilder

Link sets the flag that indicates if this is a link.

func (*ErrorBuilder) Reason

func (b *ErrorBuilder) Reason(value string) *ErrorBuilder

Reason sets the value of the 'reason' attribute to the given value.

type ErrorClient

type ErrorClient struct {
	// contains filtered or unexported fields
}

ErrorClient is the client of the 'error' resource.

Provides detailed information about a specific error.

func NewErrorClient

func NewErrorClient(transport http.RoundTripper, path string) *ErrorClient

NewErrorClient creates a new client for the 'error' resource using the given transport to send the requests and receive the responses.

func (*ErrorClient) Get

func (c *ErrorClient) Get() *ErrorGetRequest

Get creates a request for the 'get' method.

func (*ErrorClient) Poll

func (c *ErrorClient) Poll() *ErrorPollRequest

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 ErrorGetRequest

type ErrorGetRequest struct {
	// contains filtered or unexported fields
}

ErrorGetRequest is the request for the 'get' method.

func (*ErrorGetRequest) Header

func (r *ErrorGetRequest) Header(name string, value interface{}) *ErrorGetRequest

Header adds a request header.

func (*ErrorGetRequest) Impersonate

func (r *ErrorGetRequest) Impersonate(user string) *ErrorGetRequest

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

func (*ErrorGetRequest) Parameter

func (r *ErrorGetRequest) Parameter(name string, value interface{}) *ErrorGetRequest

Parameter adds a query parameter.

func (*ErrorGetRequest) Send

func (r *ErrorGetRequest) Send() (result *ErrorGetResponse, 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 (*ErrorGetRequest) SendContext

func (r *ErrorGetRequest) SendContext(ctx context.Context) (result *ErrorGetResponse, err error)

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

type ErrorGetResponse

type ErrorGetResponse struct {
	// contains filtered or unexported fields
}

ErrorGetResponse is the response for the 'get' method.

func (*ErrorGetResponse) Body

func (r *ErrorGetResponse) Body() *Error

Body returns the value of the 'body' parameter.

func (*ErrorGetResponse) Error

func (r *ErrorGetResponse) Error() *errors.Error

Error returns the response error.

func (*ErrorGetResponse) GetBody

func (r *ErrorGetResponse) GetBody() (value *Error, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ErrorGetResponse) Header

func (r *ErrorGetResponse) Header() http.Header

Header returns header of the response.

func (*ErrorGetResponse) Status

func (r *ErrorGetResponse) Status() int

Status returns the response status code.

type ErrorList

type ErrorList struct {
	// contains filtered or unexported fields
}

ErrorList is a list of values of the 'error' type.

func (*ErrorList) Each

func (l *ErrorList) Each(f func(item *Error) 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 (*ErrorList) Empty

func (l *ErrorList) Empty() bool

Empty returns true if the list is empty.

func (*ErrorList) Get

func (l *ErrorList) Get(i int) *Error

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ErrorList) GetHREF

func (l *ErrorList) GetHREF() (value string, ok bool)

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

func (*ErrorList) HREF

func (l *ErrorList) HREF() string

HREF returns the link to the list.

func (*ErrorList) Kind

func (l *ErrorList) Kind() string

Kind returns the name of the type of the object.

func (*ErrorList) Len

func (l *ErrorList) Len() int

Len returns the length of the list.

func (l *ErrorList) Link() bool

Link returns true iif this is a link.

func (*ErrorList) Range

func (l *ErrorList) Range(f func(index int, item *Error) 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 (*ErrorList) Slice

func (l *ErrorList) Slice() []*Error

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 ErrorListBuilder

type ErrorListBuilder struct {
	// contains filtered or unexported fields
}

ErrorListBuilder contains the data and logic needed to build 'error' objects.

func NewErrorList

func NewErrorList() *ErrorListBuilder

NewErrorList creates a new builder of 'error' objects.

func (*ErrorListBuilder) Build

func (b *ErrorListBuilder) Build() (list *ErrorList, err error)

Build creates a list of 'error' objects using the configuration stored in the builder.

func (*ErrorListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ErrorListBuilder) Empty

func (b *ErrorListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ErrorListBuilder) Items

func (b *ErrorListBuilder) Items(values ...*ErrorBuilder) *ErrorListBuilder

Items sets the items of the list.

type ErrorPollRequest

type ErrorPollRequest struct {
	// contains filtered or unexported fields
}

ErrorPollRequest is the request for the Poll method.

func (*ErrorPollRequest) Header

func (r *ErrorPollRequest) Header(name string, value interface{}) *ErrorPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*ErrorPollRequest) Interval

func (r *ErrorPollRequest) Interval(value time.Duration) *ErrorPollRequest

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*ErrorPollRequest) Parameter

func (r *ErrorPollRequest) Parameter(name string, value interface{}) *ErrorPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*ErrorPollRequest) Predicate

func (r *ErrorPollRequest) Predicate(value func(*ErrorGetResponse) bool) *ErrorPollRequest

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 (*ErrorPollRequest) StartContext

func (r *ErrorPollRequest) StartContext(ctx context.Context) (response *ErrorPollResponse, 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 (*ErrorPollRequest) Status

func (r *ErrorPollRequest) Status(value int) *ErrorPollRequest

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 ErrorPollResponse

type ErrorPollResponse struct {
	// contains filtered or unexported fields
}

ErrorPollResponse is the response for the Poll method.

func (*ErrorPollResponse) Body

func (r *ErrorPollResponse) Body() *Error

Body returns the value of the 'body' parameter.

func (*ErrorPollResponse) Error

func (r *ErrorPollResponse) Error() *errors.Error

Error returns the response error.

func (*ErrorPollResponse) GetBody

func (r *ErrorPollResponse) GetBody() (value *Error, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ErrorPollResponse) Header

func (r *ErrorPollResponse) Header() http.Header

Header returns header of the response.

func (*ErrorPollResponse) Status

func (r *ErrorPollResponse) Status() int

Status returns the response status code.

type ErrorsClient

type ErrorsClient struct {
	// contains filtered or unexported fields
}

ErrorsClient is the client of the 'errors' resource.

Manages the collection of errors.

func NewErrorsClient

func NewErrorsClient(transport http.RoundTripper, path string) *ErrorsClient

NewErrorsClient creates a new client for the 'errors' resource using the given transport to send the requests and receive the responses.

func (*ErrorsClient) Error

func (c *ErrorsClient) Error(id string) *ErrorClient

Error returns the target 'error' resource for the given identifier.

func (*ErrorsClient) List

func (c *ErrorsClient) List() *ErrorsListRequest

List creates a request for the 'list' method.

Retrieves the list of errors.

type ErrorsListRequest

type ErrorsListRequest struct {
	// contains filtered or unexported fields
}

ErrorsListRequest is the request for the 'list' method.

func (*ErrorsListRequest) Header

func (r *ErrorsListRequest) Header(name string, value interface{}) *ErrorsListRequest

Header adds a request header.

func (*ErrorsListRequest) Impersonate

func (r *ErrorsListRequest) Impersonate(user string) *ErrorsListRequest

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

func (*ErrorsListRequest) Page

func (r *ErrorsListRequest) Page(value int) *ErrorsListRequest

Page sets the value of the 'page' parameter.

func (*ErrorsListRequest) Parameter

func (r *ErrorsListRequest) Parameter(name string, value interface{}) *ErrorsListRequest

Parameter adds a query parameter.

func (*ErrorsListRequest) Send

func (r *ErrorsListRequest) Send() (result *ErrorsListResponse, 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 (*ErrorsListRequest) SendContext

func (r *ErrorsListRequest) SendContext(ctx context.Context) (result *ErrorsListResponse, err error)

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

func (*ErrorsListRequest) Size

func (r *ErrorsListRequest) Size(value int) *ErrorsListRequest

Size sets the value of the 'size' parameter.

type ErrorsListResponse

type ErrorsListResponse struct {
	// contains filtered or unexported fields
}

ErrorsListResponse is the response for the 'list' method.

func (*ErrorsListResponse) Error

func (r *ErrorsListResponse) Error() *errors.Error

Error returns the response error.

func (*ErrorsListResponse) GetItems

func (r *ErrorsListResponse) GetItems() (value *ErrorList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

func (*ErrorsListResponse) GetPage

func (r *ErrorsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

func (*ErrorsListResponse) GetSize

func (r *ErrorsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

func (*ErrorsListResponse) GetTotal

func (r *ErrorsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

func (*ErrorsListResponse) Header

func (r *ErrorsListResponse) Header() http.Header

Header returns header of the response.

func (*ErrorsListResponse) Items

func (r *ErrorsListResponse) Items() *ErrorList

Items returns the value of the 'items' parameter.

func (*ErrorsListResponse) Page

func (r *ErrorsListResponse) Page() int

Page returns the value of the 'page' parameter.

func (*ErrorsListResponse) Size

func (r *ErrorsListResponse) Size() int

Size returns the value of the 'size' parameter.

func (*ErrorsListResponse) Status

func (r *ErrorsListResponse) Status() int

Status returns the response status code.

func (*ErrorsListResponse) Total

func (r *ErrorsListResponse) Total() int

Total returns the value of the 'total' parameter.

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 Owner

type Owner struct {
	// contains filtered or unexported fields
}

Owner represents the values of the 'owner' type.

Definition of a Status Board owner.

func UnmarshalOwner

func UnmarshalOwner(source interface{}) (object *Owner, err error)

UnmarshalOwner reads a value of the 'owner' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalOwnerList

func UnmarshalOwnerList(source interface{}) (items []*Owner, err error)

UnmarshalOwnerList reads a list of values of the 'owner' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Owner) Email

func (o *Owner) Email() string

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

The owner's email address.

func (*Owner) Empty

func (o *Owner) Empty() bool

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

func (*Owner) GetEmail

func (o *Owner) GetEmail() (value string, ok bool)

GetEmail returns the value of the 'email' attribute and a flag indicating if the attribute has a value.

The owner's email address.

func (*Owner) GetHREF

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

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

func (*Owner) GetID

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

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

func (*Owner) GetUsername

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

GetUsername returns the value of the 'username' attribute and a flag indicating if the attribute has a value.

The owner's username.

func (*Owner) HREF

func (o *Owner) HREF() string

HREF returns the link to the object.

func (*Owner) ID

func (o *Owner) ID() string

ID returns the identifier of the object.

func (*Owner) Kind

func (o *Owner) Kind() string

Kind returns the name of the type of the object.

func (o *Owner) Link() bool

Link returns true iif this is a link.

func (*Owner) Username

func (o *Owner) 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 owner's username.

type OwnerBuilder

type OwnerBuilder struct {
	// contains filtered or unexported fields
}

OwnerBuilder contains the data and logic needed to build 'owner' objects.

Definition of a Status Board owner.

func NewOwner

func NewOwner() *OwnerBuilder

NewOwner creates a new builder of 'owner' objects.

func (*OwnerBuilder) Build

func (b *OwnerBuilder) Build() (object *Owner, err error)

Build creates a 'owner' object using the configuration stored in the builder.

func (*OwnerBuilder) Copy

func (b *OwnerBuilder) Copy(object *Owner) *OwnerBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*OwnerBuilder) Email

func (b *OwnerBuilder) Email(value string) *OwnerBuilder

Email sets the value of the 'email' attribute to the given value.

func (*OwnerBuilder) Empty

func (b *OwnerBuilder) Empty() bool

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

func (*OwnerBuilder) HREF

func (b *OwnerBuilder) HREF(value string) *OwnerBuilder

HREF sets the link to the object.

func (*OwnerBuilder) ID

func (b *OwnerBuilder) ID(value string) *OwnerBuilder

ID sets the identifier of the object.

func (b *OwnerBuilder) Link(value bool) *OwnerBuilder

Link sets the flag that indicates if this is a link.

func (*OwnerBuilder) Username

func (b *OwnerBuilder) Username(value string) *OwnerBuilder

Username sets the value of the 'username' attribute to the given value.

type OwnerList

type OwnerList struct {
	// contains filtered or unexported fields
}

OwnerList is a list of values of the 'owner' type.

func (*OwnerList) Each

func (l *OwnerList) Each(f func(item *Owner) 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 (*OwnerList) Empty

func (l *OwnerList) Empty() bool

Empty returns true if the list is empty.

func (*OwnerList) Get

func (l *OwnerList) Get(i int) *Owner

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*OwnerList) GetHREF

func (l *OwnerList) GetHREF() (value string, ok bool)

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

func (*OwnerList) HREF

func (l *OwnerList) HREF() string

HREF returns the link to the list.

func (*OwnerList) Kind

func (l *OwnerList) Kind() string

Kind returns the name of the type of the object.

func (*OwnerList) Len

func (l *OwnerList) Len() int

Len returns the length of the list.

func (l *OwnerList) Link() bool

Link returns true iif this is a link.

func (*OwnerList) Range

func (l *OwnerList) Range(f func(index int, item *Owner) 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 (*OwnerList) Slice

func (l *OwnerList) Slice() []*Owner

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 OwnerListBuilder

type OwnerListBuilder struct {
	// contains filtered or unexported fields
}

OwnerListBuilder contains the data and logic needed to build 'owner' objects.

func NewOwnerList

func NewOwnerList() *OwnerListBuilder

NewOwnerList creates a new builder of 'owner' objects.

func (*OwnerListBuilder) Build

func (b *OwnerListBuilder) Build() (list *OwnerList, err error)

Build creates a list of 'owner' objects using the configuration stored in the builder.

func (*OwnerListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*OwnerListBuilder) Empty

func (b *OwnerListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*OwnerListBuilder) Items

func (b *OwnerListBuilder) Items(values ...*OwnerBuilder) *OwnerListBuilder

Items sets the items of the list.

type PeerDependenciesAddRequest

type PeerDependenciesAddRequest struct {
	// contains filtered or unexported fields
}

PeerDependenciesAddRequest is the request for the 'add' method.

func (*PeerDependenciesAddRequest) Body

Body sets the value of the 'body' parameter.

func (*PeerDependenciesAddRequest) Header

func (r *PeerDependenciesAddRequest) Header(name string, value interface{}) *PeerDependenciesAddRequest

Header adds a request header.

func (*PeerDependenciesAddRequest) Impersonate

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

func (*PeerDependenciesAddRequest) Parameter

func (r *PeerDependenciesAddRequest) Parameter(name string, value interface{}) *PeerDependenciesAddRequest

Parameter adds a query parameter.

func (*PeerDependenciesAddRequest) Send

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 (*PeerDependenciesAddRequest) SendContext

func (r *PeerDependenciesAddRequest) SendContext(ctx context.Context) (result *PeerDependenciesAddResponse, err error)

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

type PeerDependenciesAddResponse

type PeerDependenciesAddResponse struct {
	// contains filtered or unexported fields
}

PeerDependenciesAddResponse is the response for the 'add' method.

func (*PeerDependenciesAddResponse) Body

Body returns the value of the 'body' parameter.

func (*PeerDependenciesAddResponse) Error

Error returns the response error.

func (*PeerDependenciesAddResponse) GetBody

func (r *PeerDependenciesAddResponse) GetBody() (value *PeerDependency, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*PeerDependenciesAddResponse) Header

Header returns header of the response.

func (*PeerDependenciesAddResponse) Status

func (r *PeerDependenciesAddResponse) Status() int

Status returns the response status code.

type PeerDependenciesClient

type PeerDependenciesClient struct {
	// contains filtered or unexported fields
}

PeerDependenciesClient is the client of the 'peer_dependencies' resource.

Manages the collection of peer dependencies.

func NewPeerDependenciesClient

func NewPeerDependenciesClient(transport http.RoundTripper, path string) *PeerDependenciesClient

NewPeerDependenciesClient creates a new client for the 'peer_dependencies' resource using the given transport to send the requests and receive the responses.

func (*PeerDependenciesClient) Add

Add creates a request for the 'add' method.

func (*PeerDependenciesClient) List

List creates a request for the 'list' method.

Retrieves the list of peer dependencies.

func (*PeerDependenciesClient) PeerDependency

func (c *PeerDependenciesClient) PeerDependency(id string) *PeerDependencyClient

PeerDependency returns the target 'peer_dependency' resource for the given identifier.

type PeerDependenciesListRequest

type PeerDependenciesListRequest struct {
	// contains filtered or unexported fields
}

PeerDependenciesListRequest is the request for the 'list' method.

func (*PeerDependenciesListRequest) Header

func (r *PeerDependenciesListRequest) Header(name string, value interface{}) *PeerDependenciesListRequest

Header adds a request header.

func (*PeerDependenciesListRequest) Impersonate

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

func (*PeerDependenciesListRequest) OrderBy

OrderBy sets the value of the 'order_by' parameter.

func (*PeerDependenciesListRequest) Page

Page sets the value of the 'page' parameter.

func (*PeerDependenciesListRequest) Parameter

func (r *PeerDependenciesListRequest) Parameter(name string, value interface{}) *PeerDependenciesListRequest

Parameter adds a query parameter.

func (*PeerDependenciesListRequest) Send

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 (*PeerDependenciesListRequest) SendContext

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

func (*PeerDependenciesListRequest) Size

Size sets the value of the 'size' parameter.

type PeerDependenciesListResponse

type PeerDependenciesListResponse struct {
	// contains filtered or unexported fields
}

PeerDependenciesListResponse is the response for the 'list' method.

func (*PeerDependenciesListResponse) Error

Error returns the response error.

func (*PeerDependenciesListResponse) GetItems

func (r *PeerDependenciesListResponse) GetItems() (value *PeerDependencyList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

func (*PeerDependenciesListResponse) GetPage

func (r *PeerDependenciesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

func (*PeerDependenciesListResponse) GetSize

func (r *PeerDependenciesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

func (*PeerDependenciesListResponse) GetTotal

func (r *PeerDependenciesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

func (*PeerDependenciesListResponse) Header

Header returns header of the response.

func (*PeerDependenciesListResponse) Items

Items returns the value of the 'items' parameter.

func (*PeerDependenciesListResponse) Page

Page returns the value of the 'page' parameter.

func (*PeerDependenciesListResponse) Size

Size returns the value of the 'size' parameter.

func (*PeerDependenciesListResponse) Status

func (r *PeerDependenciesListResponse) Status() int

Status returns the response status code.

func (*PeerDependenciesListResponse) Total

func (r *PeerDependenciesListResponse) Total() int

Total returns the value of the 'total' parameter.

type PeerDependency

type PeerDependency struct {
	// contains filtered or unexported fields
}

PeerDependency represents the values of the 'peer_dependency' type.

Definition of a Status Board peer dependency.

func UnmarshalPeerDependency

func UnmarshalPeerDependency(source interface{}) (object *PeerDependency, err error)

UnmarshalPeerDependency reads a value of the 'peer_dependency' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalPeerDependencyList

func UnmarshalPeerDependencyList(source interface{}) (items []*PeerDependency, err error)

UnmarshalPeerDependencyList reads a list of values of the 'peer_dependency' type from the given source, which can be a slice of bytes, a string or a reader.

func (*PeerDependency) CreatedAt

func (o *PeerDependency) 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.

Object creation timestamp.

func (*PeerDependency) Empty

func (o *PeerDependency) Empty() bool

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

func (*PeerDependency) GetCreatedAt

func (o *PeerDependency) 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.

Object creation timestamp.

func (*PeerDependency) GetHREF

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

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

func (*PeerDependency) GetID

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

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

func (*PeerDependency) GetMetadata

func (o *PeerDependency) GetMetadata() (value interface{}, ok bool)

GetMetadata returns the value of the 'metadata' attribute and a flag indicating if the attribute has a value.

Miscellaneous metadata about the peer dependency.

func (*PeerDependency) GetName

func (o *PeerDependency) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

The name of the peer dependency.

func (*PeerDependency) GetOwners

func (o *PeerDependency) GetOwners() (value []*Owner, ok bool)

GetOwners returns the value of the 'owners' attribute and a flag indicating if the attribute has a value.

The peer dependency owners (name and email)

func (*PeerDependency) GetServices

func (o *PeerDependency) GetServices() (value []*Service, ok bool)

GetServices returns the value of the 'services' attribute and a flag indicating if the attribute has a value.

Services associated with the peer dependency.

func (*PeerDependency) GetUpdatedAt

func (o *PeerDependency) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*PeerDependency) HREF

func (o *PeerDependency) HREF() string

HREF returns the link to the object.

func (*PeerDependency) ID

func (o *PeerDependency) ID() string

ID returns the identifier of the object.

func (*PeerDependency) Kind

func (o *PeerDependency) Kind() string

Kind returns the name of the type of the object.

func (o *PeerDependency) Link() bool

Link returns true iif this is a link.

func (*PeerDependency) Metadata

func (o *PeerDependency) Metadata() interface{}

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

Miscellaneous metadata about the peer dependency.

func (*PeerDependency) Name

func (o *PeerDependency) Name() string

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

The name of the peer dependency.

func (*PeerDependency) Owners

func (o *PeerDependency) Owners() []*Owner

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

The peer dependency owners (name and email)

func (*PeerDependency) Services

func (o *PeerDependency) Services() []*Service

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

Services associated with the peer dependency.

func (*PeerDependency) UpdatedAt

func (o *PeerDependency) UpdatedAt() time.Time

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

Object modification timestamp.

type PeerDependencyBuilder

type PeerDependencyBuilder struct {
	// contains filtered or unexported fields
}

PeerDependencyBuilder contains the data and logic needed to build 'peer_dependency' objects.

Definition of a Status Board peer dependency.

func NewPeerDependency

func NewPeerDependency() *PeerDependencyBuilder

NewPeerDependency creates a new builder of 'peer_dependency' objects.

func (*PeerDependencyBuilder) Build

func (b *PeerDependencyBuilder) Build() (object *PeerDependency, err error)

Build creates a 'peer_dependency' object using the configuration stored in the builder.

func (*PeerDependencyBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*PeerDependencyBuilder) CreatedAt

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*PeerDependencyBuilder) Empty

func (b *PeerDependencyBuilder) Empty() bool

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

func (*PeerDependencyBuilder) HREF

HREF sets the link to the object.

func (*PeerDependencyBuilder) ID

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*PeerDependencyBuilder) Metadata

func (b *PeerDependencyBuilder) Metadata(value interface{}) *PeerDependencyBuilder

Metadata sets the value of the 'metadata' attribute to the given value.

func (*PeerDependencyBuilder) Name

Name sets the value of the 'name' attribute to the given value.

func (*PeerDependencyBuilder) Owners

Owners sets the value of the 'owners' attribute to the given values.

func (*PeerDependencyBuilder) Services

Services sets the value of the 'services' attribute to the given values.

func (*PeerDependencyBuilder) UpdatedAt

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type PeerDependencyClient

type PeerDependencyClient struct {
	// contains filtered or unexported fields
}

PeerDependencyClient is the client of the 'peer_dependency' resource.

Provides detailed information about the specified peer dependency.

func NewPeerDependencyClient

func NewPeerDependencyClient(transport http.RoundTripper, path string) *PeerDependencyClient

NewPeerDependencyClient creates a new client for the 'peer_dependency' resource using the given transport to send the requests and receive the responses.

func (*PeerDependencyClient) Delete

Delete creates a request for the 'delete' method.

func (*PeerDependencyClient) Get

Get creates a request for the 'get' method.

func (*PeerDependencyClient) 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.

func (*PeerDependencyClient) Update

Update creates a request for the 'update' method.

type PeerDependencyDeleteRequest

type PeerDependencyDeleteRequest struct {
	// contains filtered or unexported fields
}

PeerDependencyDeleteRequest is the request for the 'delete' method.

func (*PeerDependencyDeleteRequest) Header

func (r *PeerDependencyDeleteRequest) Header(name string, value interface{}) *PeerDependencyDeleteRequest

Header adds a request header.

func (*PeerDependencyDeleteRequest) Impersonate

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

func (*PeerDependencyDeleteRequest) Parameter

func (r *PeerDependencyDeleteRequest) Parameter(name string, value interface{}) *PeerDependencyDeleteRequest

Parameter adds a query parameter.

func (*PeerDependencyDeleteRequest) Send

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 (*PeerDependencyDeleteRequest) SendContext

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

type PeerDependencyDeleteResponse

type PeerDependencyDeleteResponse struct {
	// contains filtered or unexported fields
}

PeerDependencyDeleteResponse is the response for the 'delete' method.

func (*PeerDependencyDeleteResponse) Error

Error returns the response error.

func (*PeerDependencyDeleteResponse) Header

Header returns header of the response.

func (*PeerDependencyDeleteResponse) Status

func (r *PeerDependencyDeleteResponse) Status() int

Status returns the response status code.

type PeerDependencyGetRequest

type PeerDependencyGetRequest struct {
	// contains filtered or unexported fields
}

PeerDependencyGetRequest is the request for the 'get' method.

func (*PeerDependencyGetRequest) Header

func (r *PeerDependencyGetRequest) Header(name string, value interface{}) *PeerDependencyGetRequest

Header adds a request header.

func (*PeerDependencyGetRequest) Impersonate

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

func (*PeerDependencyGetRequest) Parameter

func (r *PeerDependencyGetRequest) Parameter(name string, value interface{}) *PeerDependencyGetRequest

Parameter adds a query parameter.

func (*PeerDependencyGetRequest) Send

func (r *PeerDependencyGetRequest) Send() (result *PeerDependencyGetResponse, 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 (*PeerDependencyGetRequest) SendContext

func (r *PeerDependencyGetRequest) SendContext(ctx context.Context) (result *PeerDependencyGetResponse, err error)

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

type PeerDependencyGetResponse

type PeerDependencyGetResponse struct {
	// contains filtered or unexported fields
}

PeerDependencyGetResponse is the response for the 'get' method.

func (*PeerDependencyGetResponse) Body

Body returns the value of the 'body' parameter.

func (*PeerDependencyGetResponse) Error

Error returns the response error.

func (*PeerDependencyGetResponse) GetBody

func (r *PeerDependencyGetResponse) GetBody() (value *Service, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*PeerDependencyGetResponse) Header

Header returns header of the response.

func (*PeerDependencyGetResponse) Status

func (r *PeerDependencyGetResponse) Status() int

Status returns the response status code.

type PeerDependencyList

type PeerDependencyList struct {
	// contains filtered or unexported fields
}

PeerDependencyList is a list of values of the 'peer_dependency' type.

func (*PeerDependencyList) Each

func (l *PeerDependencyList) Each(f func(item *PeerDependency) 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 (*PeerDependencyList) Empty

func (l *PeerDependencyList) Empty() bool

Empty returns true if the list is empty.

func (*PeerDependencyList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*PeerDependencyList) GetHREF

func (l *PeerDependencyList) GetHREF() (value string, ok bool)

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

func (*PeerDependencyList) HREF

func (l *PeerDependencyList) HREF() string

HREF returns the link to the list.

func (*PeerDependencyList) Kind

func (l *PeerDependencyList) Kind() string

Kind returns the name of the type of the object.

func (*PeerDependencyList) Len

func (l *PeerDependencyList) Len() int

Len returns the length of the list.

func (l *PeerDependencyList) Link() bool

Link returns true iif this is a link.

func (*PeerDependencyList) Range

func (l *PeerDependencyList) Range(f func(index int, item *PeerDependency) 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 (*PeerDependencyList) Slice

func (l *PeerDependencyList) Slice() []*PeerDependency

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 PeerDependencyListBuilder

type PeerDependencyListBuilder struct {
	// contains filtered or unexported fields
}

PeerDependencyListBuilder contains the data and logic needed to build 'peer_dependency' objects.

func NewPeerDependencyList

func NewPeerDependencyList() *PeerDependencyListBuilder

NewPeerDependencyList creates a new builder of 'peer_dependency' objects.

func (*PeerDependencyListBuilder) Build

func (b *PeerDependencyListBuilder) Build() (list *PeerDependencyList, err error)

Build creates a list of 'peer_dependency' objects using the configuration stored in the builder.

func (*PeerDependencyListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*PeerDependencyListBuilder) Empty

func (b *PeerDependencyListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*PeerDependencyListBuilder) Items

Items sets the items of the list.

type PeerDependencyPollRequest

type PeerDependencyPollRequest struct {
	// contains filtered or unexported fields
}

PeerDependencyPollRequest is the request for the Poll method.

func (*PeerDependencyPollRequest) Header

func (r *PeerDependencyPollRequest) Header(name string, value interface{}) *PeerDependencyPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*PeerDependencyPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*PeerDependencyPollRequest) Parameter

func (r *PeerDependencyPollRequest) Parameter(name string, value interface{}) *PeerDependencyPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*PeerDependencyPollRequest) 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 (*PeerDependencyPollRequest) StartContext

func (r *PeerDependencyPollRequest) StartContext(ctx context.Context) (response *PeerDependencyPollResponse, 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 (*PeerDependencyPollRequest) Status

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 PeerDependencyPollResponse

type PeerDependencyPollResponse struct {
	// contains filtered or unexported fields
}

PeerDependencyPollResponse is the response for the Poll method.

func (*PeerDependencyPollResponse) Body

Body returns the value of the 'body' parameter.

func (*PeerDependencyPollResponse) Error

Error returns the response error.

func (*PeerDependencyPollResponse) GetBody

func (r *PeerDependencyPollResponse) GetBody() (value *Service, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*PeerDependencyPollResponse) Header

Header returns header of the response.

func (*PeerDependencyPollResponse) Status

func (r *PeerDependencyPollResponse) Status() int

Status returns the response status code.

type PeerDependencyUpdateRequest

type PeerDependencyUpdateRequest struct {
	// contains filtered or unexported fields
}

PeerDependencyUpdateRequest is the request for the 'update' method.

func (*PeerDependencyUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*PeerDependencyUpdateRequest) Header

func (r *PeerDependencyUpdateRequest) Header(name string, value interface{}) *PeerDependencyUpdateRequest

Header adds a request header.

func (*PeerDependencyUpdateRequest) Impersonate

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

func (*PeerDependencyUpdateRequest) Parameter

func (r *PeerDependencyUpdateRequest) Parameter(name string, value interface{}) *PeerDependencyUpdateRequest

Parameter adds a query parameter.

func (*PeerDependencyUpdateRequest) Send

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 (*PeerDependencyUpdateRequest) SendContext

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

type PeerDependencyUpdateResponse

type PeerDependencyUpdateResponse struct {
	// contains filtered or unexported fields
}

PeerDependencyUpdateResponse is the response for the 'update' method.

func (*PeerDependencyUpdateResponse) Body

Body returns the value of the 'body' parameter.

func (*PeerDependencyUpdateResponse) Error

Error returns the response error.

func (*PeerDependencyUpdateResponse) GetBody

func (r *PeerDependencyUpdateResponse) GetBody() (value *PeerDependency, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*PeerDependencyUpdateResponse) Header

Header returns header of the response.

func (*PeerDependencyUpdateResponse) Status

func (r *PeerDependencyUpdateResponse) Status() int

Status returns the response status code.

type Product

type Product struct {
	// contains filtered or unexported fields
}

Product represents the values of the 'product' type.

Definition of a Status Board product.

func UnmarshalProduct

func UnmarshalProduct(source interface{}) (object *Product, err error)

UnmarshalProduct reads a value of the 'product' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalProductList

func UnmarshalProductList(source interface{}) (items []*Product, err error)

UnmarshalProductList reads a list of values of the 'product' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Product) CreatedAt

func (o *Product) 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.

Object creation timestamp.

func (*Product) Empty

func (o *Product) Empty() bool

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

func (*Product) Fullname

func (o *Product) Fullname() string

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

The fullname of the product.

func (*Product) GetCreatedAt

func (o *Product) 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.

Object creation timestamp.

func (*Product) GetFullname

func (o *Product) GetFullname() (value string, ok bool)

GetFullname returns the value of the 'fullname' attribute and a flag indicating if the attribute has a value.

The fullname of the product.

func (*Product) GetHREF

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

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

func (*Product) GetID

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

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

func (*Product) GetMetadata

func (o *Product) GetMetadata() (value interface{}, ok bool)

GetMetadata returns the value of the 'metadata' attribute and a flag indicating if the attribute has a value.

Miscellaneous data about the product.

func (*Product) GetName

func (o *Product) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

The name of the product.

func (*Product) GetOwners

func (o *Product) GetOwners() (value []*Owner, ok bool)

GetOwners returns the value of the 'owners' attribute and a flag indicating if the attribute has a value.

The product owners (name and email).

func (*Product) GetUpdatedAt

func (o *Product) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*Product) HREF

func (o *Product) HREF() string

HREF returns the link to the object.

func (*Product) ID

func (o *Product) ID() string

ID returns the identifier of the object.

func (*Product) Kind

func (o *Product) Kind() string

Kind returns the name of the type of the object.

func (o *Product) Link() bool

Link returns true iif this is a link.

func (*Product) Metadata

func (o *Product) Metadata() interface{}

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

Miscellaneous data about the product.

func (*Product) Name

func (o *Product) Name() string

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

The name of the product.

func (*Product) Owners

func (o *Product) Owners() []*Owner

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

The product owners (name and email).

func (*Product) UpdatedAt

func (o *Product) UpdatedAt() time.Time

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

Object modification timestamp.

type ProductBuilder

type ProductBuilder struct {
	// contains filtered or unexported fields
}

ProductBuilder contains the data and logic needed to build 'product' objects.

Definition of a Status Board product.

func NewProduct

func NewProduct() *ProductBuilder

NewProduct creates a new builder of 'product' objects.

func (*ProductBuilder) Build

func (b *ProductBuilder) Build() (object *Product, err error)

Build creates a 'product' object using the configuration stored in the builder.

func (*ProductBuilder) Copy

func (b *ProductBuilder) Copy(object *Product) *ProductBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ProductBuilder) CreatedAt

func (b *ProductBuilder) CreatedAt(value time.Time) *ProductBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*ProductBuilder) Empty

func (b *ProductBuilder) Empty() bool

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

func (*ProductBuilder) Fullname

func (b *ProductBuilder) Fullname(value string) *ProductBuilder

Fullname sets the value of the 'fullname' attribute to the given value.

func (*ProductBuilder) HREF

func (b *ProductBuilder) HREF(value string) *ProductBuilder

HREF sets the link to the object.

func (*ProductBuilder) ID

func (b *ProductBuilder) ID(value string) *ProductBuilder

ID sets the identifier of the object.

func (b *ProductBuilder) Link(value bool) *ProductBuilder

Link sets the flag that indicates if this is a link.

func (*ProductBuilder) Metadata

func (b *ProductBuilder) Metadata(value interface{}) *ProductBuilder

Metadata sets the value of the 'metadata' attribute to the given value.

func (*ProductBuilder) Name

func (b *ProductBuilder) Name(value string) *ProductBuilder

Name sets the value of the 'name' attribute to the given value.

func (*ProductBuilder) Owners

func (b *ProductBuilder) Owners(values ...*OwnerBuilder) *ProductBuilder

Owners sets the value of the 'owners' attribute to the given values.

func (*ProductBuilder) UpdatedAt

func (b *ProductBuilder) UpdatedAt(value time.Time) *ProductBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type ProductClient

type ProductClient struct {
	// contains filtered or unexported fields
}

ProductClient is the client of the 'product' resource.

Provides detailed information about a specific product.

func NewProductClient

func NewProductClient(transport http.RoundTripper, path string) *ProductClient

NewProductClient creates a new client for the 'product' resource using the given transport to send the requests and receive the responses.

func (*ProductClient) Applications

func (c *ProductClient) Applications() *ApplicationsClient

Applications returns the target 'applications' resource.

func (*ProductClient) Delete

func (c *ProductClient) Delete() *ProductDeleteRequest

Delete creates a request for the 'delete' method.

func (*ProductClient) Get

func (c *ProductClient) Get() *ProductGetRequest

Get creates a request for the 'get' method.

func (*ProductClient) Poll

func (c *ProductClient) Poll() *ProductPollRequest

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.

func (*ProductClient) Update

func (c *ProductClient) Update() *ProductUpdateRequest

Update creates a request for the 'update' method.

func (*ProductClient) Updates

func (c *ProductClient) Updates() *StatusesClient

Updates returns the target 'statuses' resource.

type ProductDeleteRequest

type ProductDeleteRequest struct {
	// contains filtered or unexported fields
}

ProductDeleteRequest is the request for the 'delete' method.

func (*ProductDeleteRequest) Header

func (r *ProductDeleteRequest) Header(name string, value interface{}) *ProductDeleteRequest

Header adds a request header.

func (*ProductDeleteRequest) Impersonate

func (r *ProductDeleteRequest) Impersonate(user string) *ProductDeleteRequest

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

func (*ProductDeleteRequest) Parameter

func (r *ProductDeleteRequest) Parameter(name string, value interface{}) *ProductDeleteRequest

Parameter adds a query parameter.

func (*ProductDeleteRequest) Send

func (r *ProductDeleteRequest) Send() (result *ProductDeleteResponse, 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 (*ProductDeleteRequest) SendContext

func (r *ProductDeleteRequest) SendContext(ctx context.Context) (result *ProductDeleteResponse, err error)

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

type ProductDeleteResponse

type ProductDeleteResponse struct {
	// contains filtered or unexported fields
}

ProductDeleteResponse is the response for the 'delete' method.

func (*ProductDeleteResponse) Error

func (r *ProductDeleteResponse) Error() *errors.Error

Error returns the response error.

func (*ProductDeleteResponse) Header

func (r *ProductDeleteResponse) Header() http.Header

Header returns header of the response.

func (*ProductDeleteResponse) Status

func (r *ProductDeleteResponse) Status() int

Status returns the response status code.

type ProductGetRequest

type ProductGetRequest struct {
	// contains filtered or unexported fields
}

ProductGetRequest is the request for the 'get' method.

func (*ProductGetRequest) Header

func (r *ProductGetRequest) Header(name string, value interface{}) *ProductGetRequest

Header adds a request header.

func (*ProductGetRequest) Impersonate

func (r *ProductGetRequest) Impersonate(user string) *ProductGetRequest

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

func (*ProductGetRequest) Parameter

func (r *ProductGetRequest) Parameter(name string, value interface{}) *ProductGetRequest

Parameter adds a query parameter.

func (*ProductGetRequest) Send

func (r *ProductGetRequest) Send() (result *ProductGetResponse, 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 (*ProductGetRequest) SendContext

func (r *ProductGetRequest) SendContext(ctx context.Context) (result *ProductGetResponse, err error)

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

type ProductGetResponse

type ProductGetResponse struct {
	// contains filtered or unexported fields
}

ProductGetResponse is the response for the 'get' method.

func (*ProductGetResponse) Body

func (r *ProductGetResponse) Body() *Product

Body returns the value of the 'body' parameter.

func (*ProductGetResponse) Error

func (r *ProductGetResponse) Error() *errors.Error

Error returns the response error.

func (*ProductGetResponse) GetBody

func (r *ProductGetResponse) GetBody() (value *Product, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ProductGetResponse) Header

func (r *ProductGetResponse) Header() http.Header

Header returns header of the response.

func (*ProductGetResponse) Status

func (r *ProductGetResponse) Status() int

Status returns the response status code.

type ProductList

type ProductList struct {
	// contains filtered or unexported fields
}

ProductList is a list of values of the 'product' type.

func (*ProductList) Each

func (l *ProductList) Each(f func(item *Product) 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 (*ProductList) Empty

func (l *ProductList) Empty() bool

Empty returns true if the list is empty.

func (*ProductList) Get

func (l *ProductList) Get(i int) *Product

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ProductList) GetHREF

func (l *ProductList) GetHREF() (value string, ok bool)

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

func (*ProductList) HREF

func (l *ProductList) HREF() string

HREF returns the link to the list.

func (*ProductList) Kind

func (l *ProductList) Kind() string

Kind returns the name of the type of the object.

func (*ProductList) Len

func (l *ProductList) Len() int

Len returns the length of the list.

func (l *ProductList) Link() bool

Link returns true iif this is a link.

func (*ProductList) Range

func (l *ProductList) Range(f func(index int, item *Product) 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 (*ProductList) Slice

func (l *ProductList) Slice() []*Product

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 ProductListBuilder

type ProductListBuilder struct {
	// contains filtered or unexported fields
}

ProductListBuilder contains the data and logic needed to build 'product' objects.

func NewProductList

func NewProductList() *ProductListBuilder

NewProductList creates a new builder of 'product' objects.

func (*ProductListBuilder) Build

func (b *ProductListBuilder) Build() (list *ProductList, err error)

Build creates a list of 'product' objects using the configuration stored in the builder.

func (*ProductListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ProductListBuilder) Empty

func (b *ProductListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ProductListBuilder) Items

Items sets the items of the list.

type ProductPollRequest

type ProductPollRequest struct {
	// contains filtered or unexported fields
}

ProductPollRequest is the request for the Poll method.

func (*ProductPollRequest) Header

func (r *ProductPollRequest) Header(name string, value interface{}) *ProductPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*ProductPollRequest) Interval

func (r *ProductPollRequest) Interval(value time.Duration) *ProductPollRequest

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*ProductPollRequest) Parameter

func (r *ProductPollRequest) Parameter(name string, value interface{}) *ProductPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*ProductPollRequest) Predicate

func (r *ProductPollRequest) Predicate(value func(*ProductGetResponse) bool) *ProductPollRequest

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 (*ProductPollRequest) StartContext

func (r *ProductPollRequest) StartContext(ctx context.Context) (response *ProductPollResponse, 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 (*ProductPollRequest) Status

func (r *ProductPollRequest) Status(value int) *ProductPollRequest

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 ProductPollResponse

type ProductPollResponse struct {
	// contains filtered or unexported fields
}

ProductPollResponse is the response for the Poll method.

func (*ProductPollResponse) Body

func (r *ProductPollResponse) Body() *Product

Body returns the value of the 'body' parameter.

func (*ProductPollResponse) Error

func (r *ProductPollResponse) Error() *errors.Error

Error returns the response error.

func (*ProductPollResponse) GetBody

func (r *ProductPollResponse) GetBody() (value *Product, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ProductPollResponse) Header

func (r *ProductPollResponse) Header() http.Header

Header returns header of the response.

func (*ProductPollResponse) Status

func (r *ProductPollResponse) Status() int

Status returns the response status code.

type ProductUpdateRequest

type ProductUpdateRequest struct {
	// contains filtered or unexported fields
}

ProductUpdateRequest is the request for the 'update' method.

func (*ProductUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*ProductUpdateRequest) Header

func (r *ProductUpdateRequest) Header(name string, value interface{}) *ProductUpdateRequest

Header adds a request header.

func (*ProductUpdateRequest) Impersonate

func (r *ProductUpdateRequest) Impersonate(user string) *ProductUpdateRequest

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

func (*ProductUpdateRequest) Parameter

func (r *ProductUpdateRequest) Parameter(name string, value interface{}) *ProductUpdateRequest

Parameter adds a query parameter.

func (*ProductUpdateRequest) Send

func (r *ProductUpdateRequest) Send() (result *ProductUpdateResponse, 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 (*ProductUpdateRequest) SendContext

func (r *ProductUpdateRequest) SendContext(ctx context.Context) (result *ProductUpdateResponse, err error)

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

type ProductUpdateResponse

type ProductUpdateResponse struct {
	// contains filtered or unexported fields
}

ProductUpdateResponse is the response for the 'update' method.

func (*ProductUpdateResponse) Body

func (r *ProductUpdateResponse) Body() *Product

Body returns the value of the 'body' parameter.

func (*ProductUpdateResponse) Error

func (r *ProductUpdateResponse) Error() *errors.Error

Error returns the response error.

func (*ProductUpdateResponse) GetBody

func (r *ProductUpdateResponse) GetBody() (value *Product, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ProductUpdateResponse) Header

func (r *ProductUpdateResponse) Header() http.Header

Header returns header of the response.

func (*ProductUpdateResponse) Status

func (r *ProductUpdateResponse) Status() int

Status returns the response status code.

type ProductsAddRequest

type ProductsAddRequest struct {
	// contains filtered or unexported fields
}

ProductsAddRequest is the request for the 'add' method.

func (*ProductsAddRequest) Body

Body sets the value of the 'body' parameter.

func (*ProductsAddRequest) Header

func (r *ProductsAddRequest) Header(name string, value interface{}) *ProductsAddRequest

Header adds a request header.

func (*ProductsAddRequest) Impersonate

func (r *ProductsAddRequest) Impersonate(user string) *ProductsAddRequest

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

func (*ProductsAddRequest) Parameter

func (r *ProductsAddRequest) Parameter(name string, value interface{}) *ProductsAddRequest

Parameter adds a query parameter.

func (*ProductsAddRequest) Send

func (r *ProductsAddRequest) Send() (result *ProductsAddResponse, 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 (*ProductsAddRequest) SendContext

func (r *ProductsAddRequest) SendContext(ctx context.Context) (result *ProductsAddResponse, err error)

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

type ProductsAddResponse

type ProductsAddResponse struct {
	// contains filtered or unexported fields
}

ProductsAddResponse is the response for the 'add' method.

func (*ProductsAddResponse) Body

func (r *ProductsAddResponse) Body() *Product

Body returns the value of the 'body' parameter.

func (*ProductsAddResponse) Error

func (r *ProductsAddResponse) Error() *errors.Error

Error returns the response error.

func (*ProductsAddResponse) GetBody

func (r *ProductsAddResponse) GetBody() (value *Product, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ProductsAddResponse) Header

func (r *ProductsAddResponse) Header() http.Header

Header returns header of the response.

func (*ProductsAddResponse) Status

func (r *ProductsAddResponse) Status() int

Status returns the response status code.

type ProductsClient

type ProductsClient struct {
	// contains filtered or unexported fields
}

ProductsClient is the client of the 'products' resource.

Manages the collection of products.

func NewProductsClient

func NewProductsClient(transport http.RoundTripper, path string) *ProductsClient

NewProductsClient creates a new client for the 'products' resource using the given transport to send the requests and receive the responses.

func (*ProductsClient) Add

Add creates a request for the 'add' method.

func (*ProductsClient) List

List creates a request for the 'list' method.

Retrieves the list of products.

func (*ProductsClient) Product

func (c *ProductsClient) Product(id string) *ProductClient

Product returns the target 'product' resource for the given identifier.

type ProductsListRequest

type ProductsListRequest struct {
	// contains filtered or unexported fields
}

ProductsListRequest is the request for the 'list' method.

func (*ProductsListRequest) Header

func (r *ProductsListRequest) Header(name string, value interface{}) *ProductsListRequest

Header adds a request header.

func (*ProductsListRequest) Impersonate

func (r *ProductsListRequest) Impersonate(user string) *ProductsListRequest

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

func (*ProductsListRequest) OrderBy

func (r *ProductsListRequest) OrderBy(value string) *ProductsListRequest

OrderBy sets the value of the 'order_by' parameter.

func (*ProductsListRequest) Page

Page sets the value of the 'page' parameter.

func (*ProductsListRequest) Parameter

func (r *ProductsListRequest) Parameter(name string, value interface{}) *ProductsListRequest

Parameter adds a query parameter.

func (*ProductsListRequest) Search added in v0.1.380

Search sets the value of the 'search' parameter.

func (*ProductsListRequest) Send

func (r *ProductsListRequest) Send() (result *ProductsListResponse, 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 (*ProductsListRequest) SendContext

func (r *ProductsListRequest) SendContext(ctx context.Context) (result *ProductsListResponse, err error)

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

func (*ProductsListRequest) Size

Size sets the value of the 'size' parameter.

type ProductsListResponse

type ProductsListResponse struct {
	// contains filtered or unexported fields
}

ProductsListResponse is the response for the 'list' method.

func (*ProductsListResponse) Error

func (r *ProductsListResponse) Error() *errors.Error

Error returns the response error.

func (*ProductsListResponse) GetItems

func (r *ProductsListResponse) GetItems() (value *ProductList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

func (*ProductsListResponse) GetPage

func (r *ProductsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

func (*ProductsListResponse) GetSize

func (r *ProductsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

func (*ProductsListResponse) GetTotal

func (r *ProductsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

func (*ProductsListResponse) Header

func (r *ProductsListResponse) Header() http.Header

Header returns header of the response.

func (*ProductsListResponse) Items

func (r *ProductsListResponse) Items() *ProductList

Items returns the value of the 'items' parameter.

func (*ProductsListResponse) Page

func (r *ProductsListResponse) Page() int

Page returns the value of the 'page' parameter.

func (*ProductsListResponse) Size

func (r *ProductsListResponse) Size() int

Size returns the value of the 'size' parameter.

func (*ProductsListResponse) Status

func (r *ProductsListResponse) Status() int

Status returns the response status code.

func (*ProductsListResponse) Total

func (r *ProductsListResponse) Total() int

Total returns the value of the 'total' parameter.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service represents the values of the 'service' type.

Definition of a Status Board Service.

func UnmarshalService

func UnmarshalService(source interface{}) (object *Service, err error)

UnmarshalService reads a value of the 'service' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalServiceList

func UnmarshalServiceList(source interface{}) (items []*Service, err error)

UnmarshalServiceList reads a list of values of the 'service' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Service) Application

func (o *Service) Application() *Application

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

The Application associated with the Service

func (*Service) CreatedAt

func (o *Service) 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.

Object creation timestamp.

func (*Service) CurrentStatus

func (o *Service) CurrentStatus() string

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

func (*Service) Empty

func (o *Service) Empty() bool

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

func (*Service) Fullname

func (o *Service) Fullname() string

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

func (*Service) GetApplication

func (o *Service) GetApplication() (value *Application, ok bool)

GetApplication returns the value of the 'application' attribute and a flag indicating if the attribute has a value.

The Application associated with the Service

func (*Service) GetCreatedAt

func (o *Service) 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.

Object creation timestamp.

func (*Service) GetCurrentStatus

func (o *Service) GetCurrentStatus() (value string, ok bool)

GetCurrentStatus returns the value of the 'current_status' attribute and a flag indicating if the attribute has a value.

func (*Service) GetFullname

func (o *Service) GetFullname() (value string, ok bool)

GetFullname returns the value of the 'fullname' attribute and a flag indicating if the attribute has a value.

func (*Service) GetHREF

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

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

func (*Service) GetID

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

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

func (*Service) GetLastPingAt

func (o *Service) GetLastPingAt() (value time.Time, ok bool)

GetLastPingAt returns the value of the 'last_ping_at' attribute and a flag indicating if the attribute has a value.

func (*Service) GetMetadata

func (o *Service) GetMetadata() (value interface{}, ok bool)

GetMetadata returns the value of the 'metadata' attribute and a flag indicating if the attribute has a value.

func (*Service) GetName

func (o *Service) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

The name of the Service

func (*Service) GetOwners

func (o *Service) GetOwners() (value []*Owner, ok bool)

GetOwners returns the value of the 'owners' attribute and a flag indicating if the attribute has a value.

func (*Service) GetPrivate

func (o *Service) GetPrivate() (value bool, ok bool)

GetPrivate returns the value of the 'private' attribute and a flag indicating if the attribute has a value.

func (*Service) GetServiceEndpoint

func (o *Service) GetServiceEndpoint() (value string, ok bool)

GetServiceEndpoint returns the value of the 'service_endpoint' attribute and a flag indicating if the attribute has a value.

func (*Service) GetStatusType

func (o *Service) GetStatusType() (value string, ok bool)

GetStatusType returns the value of the 'status_type' attribute and a flag indicating if the attribute has a value.

func (*Service) GetStatusUpdatedAt

func (o *Service) GetStatusUpdatedAt() (value time.Time, ok bool)

GetStatusUpdatedAt returns the value of the 'status_updated_at' attribute and a flag indicating if the attribute has a value.

func (*Service) GetToken

func (o *Service) GetToken() (value string, ok bool)

GetToken returns the value of the 'token' attribute and a flag indicating if the attribute has a value.

func (*Service) GetUpdatedAt

func (o *Service) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*Service) HREF

func (o *Service) HREF() string

HREF returns the link to the object.

func (*Service) ID

func (o *Service) ID() string

ID returns the identifier of the object.

func (*Service) Kind

func (o *Service) Kind() string

Kind returns the name of the type of the object.

func (*Service) LastPingAt

func (o *Service) LastPingAt() time.Time

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

func (o *Service) Link() bool

Link returns true iif this is a link.

func (*Service) Metadata

func (o *Service) Metadata() interface{}

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

func (*Service) Name

func (o *Service) Name() string

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

The name of the Service

func (*Service) Owners

func (o *Service) Owners() []*Owner

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

func (*Service) Private

func (o *Service) Private() bool

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

func (*Service) ServiceEndpoint

func (o *Service) ServiceEndpoint() string

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

func (*Service) StatusType

func (o *Service) StatusType() string

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

func (*Service) StatusUpdatedAt

func (o *Service) StatusUpdatedAt() time.Time

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

func (*Service) Token

func (o *Service) Token() string

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

func (*Service) UpdatedAt

func (o *Service) UpdatedAt() time.Time

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

Object modification timestamp.

type ServiceBuilder

type ServiceBuilder struct {
	// contains filtered or unexported fields
}

ServiceBuilder contains the data and logic needed to build 'service' objects.

Definition of a Status Board Service.

func NewService

func NewService() *ServiceBuilder

NewService creates a new builder of 'service' objects.

func (*ServiceBuilder) Application

func (b *ServiceBuilder) Application(value *ApplicationBuilder) *ServiceBuilder

Application sets the value of the 'application' attribute to the given value.

Definition of a Status Board application.

func (*ServiceBuilder) Build

func (b *ServiceBuilder) Build() (object *Service, err error)

Build creates a 'service' object using the configuration stored in the builder.

func (*ServiceBuilder) Copy

func (b *ServiceBuilder) Copy(object *Service) *ServiceBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ServiceBuilder) CreatedAt

func (b *ServiceBuilder) CreatedAt(value time.Time) *ServiceBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*ServiceBuilder) CurrentStatus

func (b *ServiceBuilder) CurrentStatus(value string) *ServiceBuilder

CurrentStatus sets the value of the 'current_status' attribute to the given value.

func (*ServiceBuilder) Empty

func (b *ServiceBuilder) Empty() bool

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

func (*ServiceBuilder) Fullname

func (b *ServiceBuilder) Fullname(value string) *ServiceBuilder

Fullname sets the value of the 'fullname' attribute to the given value.

func (*ServiceBuilder) HREF

func (b *ServiceBuilder) HREF(value string) *ServiceBuilder

HREF sets the link to the object.

func (*ServiceBuilder) ID

func (b *ServiceBuilder) ID(value string) *ServiceBuilder

ID sets the identifier of the object.

func (*ServiceBuilder) LastPingAt

func (b *ServiceBuilder) LastPingAt(value time.Time) *ServiceBuilder

LastPingAt sets the value of the 'last_ping_at' attribute to the given value.

func (b *ServiceBuilder) Link(value bool) *ServiceBuilder

Link sets the flag that indicates if this is a link.

func (*ServiceBuilder) Metadata

func (b *ServiceBuilder) Metadata(value interface{}) *ServiceBuilder

Metadata sets the value of the 'metadata' attribute to the given value.

func (*ServiceBuilder) Name

func (b *ServiceBuilder) Name(value string) *ServiceBuilder

Name sets the value of the 'name' attribute to the given value.

func (*ServiceBuilder) Owners

func (b *ServiceBuilder) Owners(values ...*OwnerBuilder) *ServiceBuilder

Owners sets the value of the 'owners' attribute to the given values.

func (*ServiceBuilder) Private

func (b *ServiceBuilder) Private(value bool) *ServiceBuilder

Private sets the value of the 'private' attribute to the given value.

func (*ServiceBuilder) ServiceEndpoint

func (b *ServiceBuilder) ServiceEndpoint(value string) *ServiceBuilder

ServiceEndpoint sets the value of the 'service_endpoint' attribute to the given value.

func (*ServiceBuilder) StatusType

func (b *ServiceBuilder) StatusType(value string) *ServiceBuilder

StatusType sets the value of the 'status_type' attribute to the given value.

func (*ServiceBuilder) StatusUpdatedAt

func (b *ServiceBuilder) StatusUpdatedAt(value time.Time) *ServiceBuilder

StatusUpdatedAt sets the value of the 'status_updated_at' attribute to the given value.

func (*ServiceBuilder) Token

func (b *ServiceBuilder) Token(value string) *ServiceBuilder

Token sets the value of the 'token' attribute to the given value.

func (*ServiceBuilder) UpdatedAt

func (b *ServiceBuilder) UpdatedAt(value time.Time) *ServiceBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type ServiceClient

type ServiceClient struct {
	// contains filtered or unexported fields
}

ServiceClient is the client of the 'service' resource.

Provides detailed information about the specified service.

func NewServiceClient

func NewServiceClient(transport http.RoundTripper, path string) *ServiceClient

NewServiceClient creates a new client for the 'service' resource using the given transport to send the requests and receive the responses.

func (*ServiceClient) Delete

func (c *ServiceClient) Delete() *ServiceDeleteRequest

Delete creates a request for the 'delete' method.

func (*ServiceClient) Get

func (c *ServiceClient) Get() *ServiceGetRequest

Get creates a request for the 'get' method.

func (*ServiceClient) Poll

func (c *ServiceClient) Poll() *ServicePollRequest

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.

func (*ServiceClient) Statuses

func (c *ServiceClient) Statuses() *StatusesClient

Statuses returns the target 'statuses' resource.

func (*ServiceClient) Update

func (c *ServiceClient) Update() *ServiceUpdateRequest

Update creates a request for the 'update' method.

type ServiceDeleteRequest

type ServiceDeleteRequest struct {
	// contains filtered or unexported fields
}

ServiceDeleteRequest is the request for the 'delete' method.

func (*ServiceDeleteRequest) Header

func (r *ServiceDeleteRequest) Header(name string, value interface{}) *ServiceDeleteRequest

Header adds a request header.

func (*ServiceDeleteRequest) Impersonate

func (r *ServiceDeleteRequest) Impersonate(user string) *ServiceDeleteRequest

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

func (*ServiceDeleteRequest) Parameter

func (r *ServiceDeleteRequest) Parameter(name string, value interface{}) *ServiceDeleteRequest

Parameter adds a query parameter.

func (*ServiceDeleteRequest) Send

func (r *ServiceDeleteRequest) Send() (result *ServiceDeleteResponse, 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 (*ServiceDeleteRequest) SendContext

func (r *ServiceDeleteRequest) SendContext(ctx context.Context) (result *ServiceDeleteResponse, err error)

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

type ServiceDeleteResponse

type ServiceDeleteResponse struct {
	// contains filtered or unexported fields
}

ServiceDeleteResponse is the response for the 'delete' method.

func (*ServiceDeleteResponse) Error

func (r *ServiceDeleteResponse) Error() *errors.Error

Error returns the response error.

func (*ServiceDeleteResponse) Header

func (r *ServiceDeleteResponse) Header() http.Header

Header returns header of the response.

func (*ServiceDeleteResponse) Status

func (r *ServiceDeleteResponse) Status() int

Status returns the response status code.

type ServiceDependenciesAddRequest

type ServiceDependenciesAddRequest struct {
	// contains filtered or unexported fields
}

ServiceDependenciesAddRequest is the request for the 'add' method.

func (*ServiceDependenciesAddRequest) Body

Body sets the value of the 'body' parameter.

func (*ServiceDependenciesAddRequest) Header

func (r *ServiceDependenciesAddRequest) Header(name string, value interface{}) *ServiceDependenciesAddRequest

Header adds a request header.

func (*ServiceDependenciesAddRequest) Impersonate

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

func (*ServiceDependenciesAddRequest) Parameter

func (r *ServiceDependenciesAddRequest) Parameter(name string, value interface{}) *ServiceDependenciesAddRequest

Parameter adds a query parameter.

func (*ServiceDependenciesAddRequest) Send

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 (*ServiceDependenciesAddRequest) SendContext

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

type ServiceDependenciesAddResponse

type ServiceDependenciesAddResponse struct {
	// contains filtered or unexported fields
}

ServiceDependenciesAddResponse is the response for the 'add' method.

func (*ServiceDependenciesAddResponse) Body

Body returns the value of the 'body' parameter.

func (*ServiceDependenciesAddResponse) Error

Error returns the response error.

func (*ServiceDependenciesAddResponse) GetBody

func (r *ServiceDependenciesAddResponse) GetBody() (value *ServiceDependency, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ServiceDependenciesAddResponse) Header

Header returns header of the response.

func (*ServiceDependenciesAddResponse) Status

func (r *ServiceDependenciesAddResponse) Status() int

Status returns the response status code.

type ServiceDependenciesClient

type ServiceDependenciesClient struct {
	// contains filtered or unexported fields
}

ServiceDependenciesClient is the client of the 'service_dependencies' resource.

Manages the collection of service dependencies.

func NewServiceDependenciesClient

func NewServiceDependenciesClient(transport http.RoundTripper, path string) *ServiceDependenciesClient

NewServiceDependenciesClient creates a new client for the 'service_dependencies' resource using the given transport to send the requests and receive the responses.

func (*ServiceDependenciesClient) Add

Add creates a request for the 'add' method.

func (*ServiceDependenciesClient) List

List creates a request for the 'list' method.

Retrieves the list of service dependencies.

func (*ServiceDependenciesClient) ServiceDependency

func (c *ServiceDependenciesClient) ServiceDependency(id string) *ServiceDependencyClient

ServiceDependency returns the target 'service_dependency' resource for the given identifier.

type ServiceDependenciesListRequest

type ServiceDependenciesListRequest struct {
	// contains filtered or unexported fields
}

ServiceDependenciesListRequest is the request for the 'list' method.

func (*ServiceDependenciesListRequest) Header

func (r *ServiceDependenciesListRequest) Header(name string, value interface{}) *ServiceDependenciesListRequest

Header adds a request header.

func (*ServiceDependenciesListRequest) Impersonate

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

func (*ServiceDependenciesListRequest) OrderBy

OrderBy sets the value of the 'order_by' parameter.

func (*ServiceDependenciesListRequest) Page

Page sets the value of the 'page' parameter.

func (*ServiceDependenciesListRequest) Parameter

func (r *ServiceDependenciesListRequest) Parameter(name string, value interface{}) *ServiceDependenciesListRequest

Parameter adds a query parameter.

func (*ServiceDependenciesListRequest) Send

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 (*ServiceDependenciesListRequest) SendContext

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

func (*ServiceDependenciesListRequest) Size

Size sets the value of the 'size' parameter.

type ServiceDependenciesListResponse

type ServiceDependenciesListResponse struct {
	// contains filtered or unexported fields
}

ServiceDependenciesListResponse is the response for the 'list' method.

func (*ServiceDependenciesListResponse) Error

Error returns the response error.

func (*ServiceDependenciesListResponse) GetItems

func (r *ServiceDependenciesListResponse) GetItems() (value *ServiceDependencyList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

func (*ServiceDependenciesListResponse) GetPage

func (r *ServiceDependenciesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

func (*ServiceDependenciesListResponse) GetSize

func (r *ServiceDependenciesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

func (*ServiceDependenciesListResponse) GetTotal

func (r *ServiceDependenciesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

func (*ServiceDependenciesListResponse) Header

Header returns header of the response.

func (*ServiceDependenciesListResponse) Items

Items returns the value of the 'items' parameter.

func (*ServiceDependenciesListResponse) Page

Page returns the value of the 'page' parameter.

func (*ServiceDependenciesListResponse) Size

Size returns the value of the 'size' parameter.

func (*ServiceDependenciesListResponse) Status

Status returns the response status code.

func (*ServiceDependenciesListResponse) Total

Total returns the value of the 'total' parameter.

type ServiceDependency

type ServiceDependency struct {
	// contains filtered or unexported fields
}

ServiceDependency represents the values of the 'service_dependency' type.

Definition of a Status Board service dependency.

func UnmarshalServiceDependency

func UnmarshalServiceDependency(source interface{}) (object *ServiceDependency, err error)

UnmarshalServiceDependency reads a value of the 'service_dependency' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalServiceDependencyList

func UnmarshalServiceDependencyList(source interface{}) (items []*ServiceDependency, err error)

UnmarshalServiceDependencyList reads a list of values of the 'service_dependency' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ServiceDependency) ChildService

func (o *ServiceDependency) ChildService() *Service

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

The service dependency's child service

func (*ServiceDependency) CreatedAt

func (o *ServiceDependency) 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.

Object creation timestamp.

func (*ServiceDependency) Empty

func (o *ServiceDependency) Empty() bool

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

func (*ServiceDependency) GetChildService

func (o *ServiceDependency) GetChildService() (value *Service, ok bool)

GetChildService returns the value of the 'child_service' attribute and a flag indicating if the attribute has a value.

The service dependency's child service

func (*ServiceDependency) GetCreatedAt

func (o *ServiceDependency) 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.

Object creation timestamp.

func (*ServiceDependency) GetHREF

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

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

func (*ServiceDependency) GetID

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

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

func (*ServiceDependency) GetMetadata

func (o *ServiceDependency) GetMetadata() (value interface{}, ok bool)

GetMetadata returns the value of the 'metadata' attribute and a flag indicating if the attribute has a value.

Miscellaneous metadata about the service dependency.

func (*ServiceDependency) GetName

func (o *ServiceDependency) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

The name of the service dependency.

func (*ServiceDependency) GetOwners

func (o *ServiceDependency) GetOwners() (value []*Owner, ok bool)

GetOwners returns the value of the 'owners' attribute and a flag indicating if the attribute has a value.

The service dependency owners (name and email)

func (*ServiceDependency) GetParentService

func (o *ServiceDependency) GetParentService() (value *Service, ok bool)

GetParentService returns the value of the 'parent_service' attribute and a flag indicating if the attribute has a value.

The service dependency's parent service

func (*ServiceDependency) GetType

func (o *ServiceDependency) GetType() (value string, ok bool)

GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.

The type of service dependency, e.g. soft or hard.

func (*ServiceDependency) GetUpdatedAt

func (o *ServiceDependency) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*ServiceDependency) HREF

func (o *ServiceDependency) HREF() string

HREF returns the link to the object.

func (*ServiceDependency) ID

func (o *ServiceDependency) ID() string

ID returns the identifier of the object.

func (*ServiceDependency) Kind

func (o *ServiceDependency) Kind() string

Kind returns the name of the type of the object.

func (o *ServiceDependency) Link() bool

Link returns true iif this is a link.

func (*ServiceDependency) Metadata

func (o *ServiceDependency) Metadata() interface{}

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

Miscellaneous metadata about the service dependency.

func (*ServiceDependency) Name

func (o *ServiceDependency) Name() string

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

The name of the service dependency.

func (*ServiceDependency) Owners

func (o *ServiceDependency) Owners() []*Owner

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

The service dependency owners (name and email)

func (*ServiceDependency) ParentService

func (o *ServiceDependency) ParentService() *Service

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

The service dependency's parent service

func (*ServiceDependency) Type

func (o *ServiceDependency) Type() string

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

The type of service dependency, e.g. soft or hard.

func (*ServiceDependency) UpdatedAt

func (o *ServiceDependency) UpdatedAt() time.Time

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

Object modification timestamp.

type ServiceDependencyBuilder

type ServiceDependencyBuilder struct {
	// contains filtered or unexported fields
}

ServiceDependencyBuilder contains the data and logic needed to build 'service_dependency' objects.

Definition of a Status Board service dependency.

func NewServiceDependency

func NewServiceDependency() *ServiceDependencyBuilder

NewServiceDependency creates a new builder of 'service_dependency' objects.

func (*ServiceDependencyBuilder) Build

func (b *ServiceDependencyBuilder) Build() (object *ServiceDependency, err error)

Build creates a 'service_dependency' object using the configuration stored in the builder.

func (*ServiceDependencyBuilder) ChildService

ChildService sets the value of the 'child_service' attribute to the given value.

Definition of a Status Board Service.

func (*ServiceDependencyBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ServiceDependencyBuilder) CreatedAt

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*ServiceDependencyBuilder) Empty

func (b *ServiceDependencyBuilder) Empty() bool

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

func (*ServiceDependencyBuilder) HREF

HREF sets the link to the object.

func (*ServiceDependencyBuilder) ID

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*ServiceDependencyBuilder) Metadata

func (b *ServiceDependencyBuilder) Metadata(value interface{}) *ServiceDependencyBuilder

Metadata sets the value of the 'metadata' attribute to the given value.

func (*ServiceDependencyBuilder) Name

Name sets the value of the 'name' attribute to the given value.

func (*ServiceDependencyBuilder) Owners

Owners sets the value of the 'owners' attribute to the given values.

func (*ServiceDependencyBuilder) ParentService

ParentService sets the value of the 'parent_service' attribute to the given value.

Definition of a Status Board Service.

func (*ServiceDependencyBuilder) Type

Type sets the value of the 'type' attribute to the given value.

func (*ServiceDependencyBuilder) UpdatedAt

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type ServiceDependencyClient

type ServiceDependencyClient struct {
	// contains filtered or unexported fields
}

ServiceDependencyClient is the client of the 'service_dependency' resource.

Provides detailed information about the specified application dependency.

func NewServiceDependencyClient

func NewServiceDependencyClient(transport http.RoundTripper, path string) *ServiceDependencyClient

NewServiceDependencyClient creates a new client for the 'service_dependency' resource using the given transport to send the requests and receive the responses.

func (*ServiceDependencyClient) Delete

Delete creates a request for the 'delete' method.

func (*ServiceDependencyClient) Get

Get creates a request for the 'get' method.

func (*ServiceDependencyClient) 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.

func (*ServiceDependencyClient) Update

Update creates a request for the 'update' method.

type ServiceDependencyDeleteRequest

type ServiceDependencyDeleteRequest struct {
	// contains filtered or unexported fields
}

ServiceDependencyDeleteRequest is the request for the 'delete' method.

func (*ServiceDependencyDeleteRequest) Header

func (r *ServiceDependencyDeleteRequest) Header(name string, value interface{}) *ServiceDependencyDeleteRequest

Header adds a request header.

func (*ServiceDependencyDeleteRequest) Impersonate

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

func (*ServiceDependencyDeleteRequest) Parameter

func (r *ServiceDependencyDeleteRequest) Parameter(name string, value interface{}) *ServiceDependencyDeleteRequest

Parameter adds a query parameter.

func (*ServiceDependencyDeleteRequest) Send

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 (*ServiceDependencyDeleteRequest) SendContext

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

type ServiceDependencyDeleteResponse

type ServiceDependencyDeleteResponse struct {
	// contains filtered or unexported fields
}

ServiceDependencyDeleteResponse is the response for the 'delete' method.

func (*ServiceDependencyDeleteResponse) Error

Error returns the response error.

func (*ServiceDependencyDeleteResponse) Header

Header returns header of the response.

func (*ServiceDependencyDeleteResponse) Status

Status returns the response status code.

type ServiceDependencyGetRequest

type ServiceDependencyGetRequest struct {
	// contains filtered or unexported fields
}

ServiceDependencyGetRequest is the request for the 'get' method.

func (*ServiceDependencyGetRequest) Header

func (r *ServiceDependencyGetRequest) Header(name string, value interface{}) *ServiceDependencyGetRequest

Header adds a request header.

func (*ServiceDependencyGetRequest) Impersonate

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

func (*ServiceDependencyGetRequest) Parameter

func (r *ServiceDependencyGetRequest) Parameter(name string, value interface{}) *ServiceDependencyGetRequest

Parameter adds a query parameter.

func (*ServiceDependencyGetRequest) Send

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 (*ServiceDependencyGetRequest) SendContext

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

type ServiceDependencyGetResponse

type ServiceDependencyGetResponse struct {
	// contains filtered or unexported fields
}

ServiceDependencyGetResponse is the response for the 'get' method.

func (*ServiceDependencyGetResponse) Body

Body returns the value of the 'body' parameter.

func (*ServiceDependencyGetResponse) Error

Error returns the response error.

func (*ServiceDependencyGetResponse) GetBody

func (r *ServiceDependencyGetResponse) GetBody() (value *ServiceDependency, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ServiceDependencyGetResponse) Header

Header returns header of the response.

func (*ServiceDependencyGetResponse) Status

func (r *ServiceDependencyGetResponse) Status() int

Status returns the response status code.

type ServiceDependencyList

type ServiceDependencyList struct {
	// contains filtered or unexported fields
}

ServiceDependencyList is a list of values of the 'service_dependency' type.

func (*ServiceDependencyList) Each

func (l *ServiceDependencyList) Each(f func(item *ServiceDependency) 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 (*ServiceDependencyList) Empty

func (l *ServiceDependencyList) Empty() bool

Empty returns true if the list is empty.

func (*ServiceDependencyList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ServiceDependencyList) GetHREF

func (l *ServiceDependencyList) GetHREF() (value string, ok bool)

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

func (*ServiceDependencyList) HREF

func (l *ServiceDependencyList) HREF() string

HREF returns the link to the list.

func (*ServiceDependencyList) Kind

func (l *ServiceDependencyList) Kind() string

Kind returns the name of the type of the object.

func (*ServiceDependencyList) Len

func (l *ServiceDependencyList) Len() int

Len returns the length of the list.

func (l *ServiceDependencyList) Link() bool

Link returns true iif this is a link.

func (*ServiceDependencyList) Range

func (l *ServiceDependencyList) Range(f func(index int, item *ServiceDependency) 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 (*ServiceDependencyList) Slice

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 ServiceDependencyListBuilder

type ServiceDependencyListBuilder struct {
	// contains filtered or unexported fields
}

ServiceDependencyListBuilder contains the data and logic needed to build 'service_dependency' objects.

func NewServiceDependencyList

func NewServiceDependencyList() *ServiceDependencyListBuilder

NewServiceDependencyList creates a new builder of 'service_dependency' objects.

func (*ServiceDependencyListBuilder) Build

Build creates a list of 'service_dependency' objects using the configuration stored in the builder.

func (*ServiceDependencyListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ServiceDependencyListBuilder) Empty

Empty returns true if the list is empty.

func (*ServiceDependencyListBuilder) Items

Items sets the items of the list.

type ServiceDependencyPollRequest

type ServiceDependencyPollRequest struct {
	// contains filtered or unexported fields
}

ServiceDependencyPollRequest is the request for the Poll method.

func (*ServiceDependencyPollRequest) Header

func (r *ServiceDependencyPollRequest) Header(name string, value interface{}) *ServiceDependencyPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*ServiceDependencyPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*ServiceDependencyPollRequest) Parameter

func (r *ServiceDependencyPollRequest) Parameter(name string, value interface{}) *ServiceDependencyPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*ServiceDependencyPollRequest) 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 (*ServiceDependencyPollRequest) StartContext

func (r *ServiceDependencyPollRequest) StartContext(ctx context.Context) (response *ServiceDependencyPollResponse, 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 (*ServiceDependencyPollRequest) Status

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 ServiceDependencyPollResponse

type ServiceDependencyPollResponse struct {
	// contains filtered or unexported fields
}

ServiceDependencyPollResponse is the response for the Poll method.

func (*ServiceDependencyPollResponse) Body

Body returns the value of the 'body' parameter.

func (*ServiceDependencyPollResponse) Error

Error returns the response error.

func (*ServiceDependencyPollResponse) GetBody

func (r *ServiceDependencyPollResponse) GetBody() (value *ServiceDependency, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ServiceDependencyPollResponse) Header

Header returns header of the response.

func (*ServiceDependencyPollResponse) Status

func (r *ServiceDependencyPollResponse) Status() int

Status returns the response status code.

type ServiceDependencyUpdateRequest

type ServiceDependencyUpdateRequest struct {
	// contains filtered or unexported fields
}

ServiceDependencyUpdateRequest is the request for the 'update' method.

func (*ServiceDependencyUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*ServiceDependencyUpdateRequest) Header

func (r *ServiceDependencyUpdateRequest) Header(name string, value interface{}) *ServiceDependencyUpdateRequest

Header adds a request header.

func (*ServiceDependencyUpdateRequest) Impersonate

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

func (*ServiceDependencyUpdateRequest) Parameter

func (r *ServiceDependencyUpdateRequest) Parameter(name string, value interface{}) *ServiceDependencyUpdateRequest

Parameter adds a query parameter.

func (*ServiceDependencyUpdateRequest) Send

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 (*ServiceDependencyUpdateRequest) SendContext

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

type ServiceDependencyUpdateResponse

type ServiceDependencyUpdateResponse struct {
	// contains filtered or unexported fields
}

ServiceDependencyUpdateResponse is the response for the 'update' method.

func (*ServiceDependencyUpdateResponse) Body

Body returns the value of the 'body' parameter.

func (*ServiceDependencyUpdateResponse) Error

Error returns the response error.

func (*ServiceDependencyUpdateResponse) GetBody

func (r *ServiceDependencyUpdateResponse) GetBody() (value *ServiceDependency, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ServiceDependencyUpdateResponse) Header

Header returns header of the response.

func (*ServiceDependencyUpdateResponse) Status

Status returns the response status code.

type ServiceGetRequest

type ServiceGetRequest struct {
	// contains filtered or unexported fields
}

ServiceGetRequest is the request for the 'get' method.

func (*ServiceGetRequest) Header

func (r *ServiceGetRequest) Header(name string, value interface{}) *ServiceGetRequest

Header adds a request header.

func (*ServiceGetRequest) Impersonate

func (r *ServiceGetRequest) Impersonate(user string) *ServiceGetRequest

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

func (*ServiceGetRequest) Parameter

func (r *ServiceGetRequest) Parameter(name string, value interface{}) *ServiceGetRequest

Parameter adds a query parameter.

func (*ServiceGetRequest) Send

func (r *ServiceGetRequest) Send() (result *ServiceGetResponse, 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 (*ServiceGetRequest) SendContext

func (r *ServiceGetRequest) SendContext(ctx context.Context) (result *ServiceGetResponse, err error)

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

type ServiceGetResponse

type ServiceGetResponse struct {
	// contains filtered or unexported fields
}

ServiceGetResponse is the response for the 'get' method.

func (*ServiceGetResponse) Body

func (r *ServiceGetResponse) Body() *Service

Body returns the value of the 'body' parameter.

func (*ServiceGetResponse) Error

func (r *ServiceGetResponse) Error() *errors.Error

Error returns the response error.

func (*ServiceGetResponse) GetBody

func (r *ServiceGetResponse) GetBody() (value *Service, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ServiceGetResponse) Header

func (r *ServiceGetResponse) Header() http.Header

Header returns header of the response.

func (*ServiceGetResponse) Status

func (r *ServiceGetResponse) Status() int

Status returns the response status code.

type ServiceInfo

type ServiceInfo struct {
	// contains filtered or unexported fields
}

ServiceInfo represents the values of the 'service_info' type.

Definition of a Status Board service info.

func UnmarshalServiceInfo

func UnmarshalServiceInfo(source interface{}) (object *ServiceInfo, err error)

UnmarshalServiceInfo reads a value of the 'service_info' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalServiceInfoList

func UnmarshalServiceInfoList(source interface{}) (items []*ServiceInfo, err error)

UnmarshalServiceInfoList reads a list of values of the 'service_info' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ServiceInfo) Empty

func (o *ServiceInfo) Empty() bool

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

func (*ServiceInfo) Fullname

func (o *ServiceInfo) Fullname() string

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

Full name of the service

func (*ServiceInfo) GetFullname

func (o *ServiceInfo) GetFullname() (value string, ok bool)

GetFullname returns the value of the 'fullname' attribute and a flag indicating if the attribute has a value.

Full name of the service

func (*ServiceInfo) GetStatusType

func (o *ServiceInfo) GetStatusType() (value string, ok bool)

GetStatusType returns the value of the 'status_type' attribute and a flag indicating if the attribute has a value.

Type of the service status

func (*ServiceInfo) StatusType

func (o *ServiceInfo) StatusType() string

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

Type of the service status

type ServiceInfoBuilder

type ServiceInfoBuilder struct {
	// contains filtered or unexported fields
}

ServiceInfoBuilder contains the data and logic needed to build 'service_info' objects.

Definition of a Status Board service info.

func NewServiceInfo

func NewServiceInfo() *ServiceInfoBuilder

NewServiceInfo creates a new builder of 'service_info' objects.

func (*ServiceInfoBuilder) Build

func (b *ServiceInfoBuilder) Build() (object *ServiceInfo, err error)

Build creates a 'service_info' object using the configuration stored in the builder.

func (*ServiceInfoBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ServiceInfoBuilder) Empty

func (b *ServiceInfoBuilder) Empty() bool

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

func (*ServiceInfoBuilder) Fullname

func (b *ServiceInfoBuilder) Fullname(value string) *ServiceInfoBuilder

Fullname sets the value of the 'fullname' attribute to the given value.

func (*ServiceInfoBuilder) StatusType

func (b *ServiceInfoBuilder) StatusType(value string) *ServiceInfoBuilder

StatusType sets the value of the 'status_type' attribute to the given value.

type ServiceInfoList

type ServiceInfoList struct {
	// contains filtered or unexported fields
}

ServiceInfoList is a list of values of the 'service_info' type.

func (*ServiceInfoList) Each

func (l *ServiceInfoList) Each(f func(item *ServiceInfo) 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 (*ServiceInfoList) Empty

func (l *ServiceInfoList) Empty() bool

Empty returns true if the list is empty.

func (*ServiceInfoList) Get

func (l *ServiceInfoList) Get(i int) *ServiceInfo

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ServiceInfoList) Len

func (l *ServiceInfoList) Len() int

Len returns the length of the list.

func (*ServiceInfoList) Range

func (l *ServiceInfoList) Range(f func(index int, item *ServiceInfo) 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 (*ServiceInfoList) Slice

func (l *ServiceInfoList) Slice() []*ServiceInfo

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 ServiceInfoListBuilder

type ServiceInfoListBuilder struct {
	// contains filtered or unexported fields
}

ServiceInfoListBuilder contains the data and logic needed to build 'service_info' objects.

func NewServiceInfoList

func NewServiceInfoList() *ServiceInfoListBuilder

NewServiceInfoList creates a new builder of 'service_info' objects.

func (*ServiceInfoListBuilder) Build

func (b *ServiceInfoListBuilder) Build() (list *ServiceInfoList, err error)

Build creates a list of 'service_info' objects using the configuration stored in the builder.

func (*ServiceInfoListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ServiceInfoListBuilder) Empty

func (b *ServiceInfoListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ServiceInfoListBuilder) Items

Items sets the items of the list.

type ServiceList

type ServiceList struct {
	// contains filtered or unexported fields
}

ServiceList is a list of values of the 'service' type.

func (*ServiceList) Each

func (l *ServiceList) Each(f func(item *Service) 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 (*ServiceList) Empty

func (l *ServiceList) Empty() bool

Empty returns true if the list is empty.

func (*ServiceList) Get

func (l *ServiceList) Get(i int) *Service

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ServiceList) GetHREF

func (l *ServiceList) GetHREF() (value string, ok bool)

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

func (*ServiceList) HREF

func (l *ServiceList) HREF() string

HREF returns the link to the list.

func (*ServiceList) Kind

func (l *ServiceList) Kind() string

Kind returns the name of the type of the object.

func (*ServiceList) Len

func (l *ServiceList) Len() int

Len returns the length of the list.

func (l *ServiceList) Link() bool

Link returns true iif this is a link.

func (*ServiceList) Range

func (l *ServiceList) Range(f func(index int, item *Service) 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 (*ServiceList) Slice

func (l *ServiceList) Slice() []*Service

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 ServiceListBuilder

type ServiceListBuilder struct {
	// contains filtered or unexported fields
}

ServiceListBuilder contains the data and logic needed to build 'service' objects.

func NewServiceList

func NewServiceList() *ServiceListBuilder

NewServiceList creates a new builder of 'service' objects.

func (*ServiceListBuilder) Build

func (b *ServiceListBuilder) Build() (list *ServiceList, err error)

Build creates a list of 'service' objects using the configuration stored in the builder.

func (*ServiceListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ServiceListBuilder) Empty

func (b *ServiceListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ServiceListBuilder) Items

Items sets the items of the list.

type ServicePollRequest

type ServicePollRequest struct {
	// contains filtered or unexported fields
}

ServicePollRequest is the request for the Poll method.

func (*ServicePollRequest) Header

func (r *ServicePollRequest) Header(name string, value interface{}) *ServicePollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*ServicePollRequest) Interval

func (r *ServicePollRequest) Interval(value time.Duration) *ServicePollRequest

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*ServicePollRequest) Parameter

func (r *ServicePollRequest) Parameter(name string, value interface{}) *ServicePollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*ServicePollRequest) Predicate

func (r *ServicePollRequest) Predicate(value func(*ServiceGetResponse) bool) *ServicePollRequest

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 (*ServicePollRequest) StartContext

func (r *ServicePollRequest) StartContext(ctx context.Context) (response *ServicePollResponse, 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 (*ServicePollRequest) Status

func (r *ServicePollRequest) Status(value int) *ServicePollRequest

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 ServicePollResponse

type ServicePollResponse struct {
	// contains filtered or unexported fields
}

ServicePollResponse is the response for the Poll method.

func (*ServicePollResponse) Body

func (r *ServicePollResponse) Body() *Service

Body returns the value of the 'body' parameter.

func (*ServicePollResponse) Error

func (r *ServicePollResponse) Error() *errors.Error

Error returns the response error.

func (*ServicePollResponse) GetBody

func (r *ServicePollResponse) GetBody() (value *Service, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ServicePollResponse) Header

func (r *ServicePollResponse) Header() http.Header

Header returns header of the response.

func (*ServicePollResponse) Status

func (r *ServicePollResponse) Status() int

Status returns the response status code.

type ServiceUpdateRequest

type ServiceUpdateRequest struct {
	// contains filtered or unexported fields
}

ServiceUpdateRequest is the request for the 'update' method.

func (*ServiceUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*ServiceUpdateRequest) Header

func (r *ServiceUpdateRequest) Header(name string, value interface{}) *ServiceUpdateRequest

Header adds a request header.

func (*ServiceUpdateRequest) Impersonate

func (r *ServiceUpdateRequest) Impersonate(user string) *ServiceUpdateRequest

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

func (*ServiceUpdateRequest) Parameter

func (r *ServiceUpdateRequest) Parameter(name string, value interface{}) *ServiceUpdateRequest

Parameter adds a query parameter.

func (*ServiceUpdateRequest) Send

func (r *ServiceUpdateRequest) Send() (result *ServiceUpdateResponse, 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 (*ServiceUpdateRequest) SendContext

func (r *ServiceUpdateRequest) SendContext(ctx context.Context) (result *ServiceUpdateResponse, err error)

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

type ServiceUpdateResponse

type ServiceUpdateResponse struct {
	// contains filtered or unexported fields
}

ServiceUpdateResponse is the response for the 'update' method.

func (*ServiceUpdateResponse) Body

func (r *ServiceUpdateResponse) Body() *Service

Body returns the value of the 'body' parameter.

func (*ServiceUpdateResponse) Error

func (r *ServiceUpdateResponse) Error() *errors.Error

Error returns the response error.

func (*ServiceUpdateResponse) GetBody

func (r *ServiceUpdateResponse) GetBody() (value *Service, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ServiceUpdateResponse) Header

func (r *ServiceUpdateResponse) Header() http.Header

Header returns header of the response.

func (*ServiceUpdateResponse) Status

func (r *ServiceUpdateResponse) Status() int

Status returns the response status code.

type ServicesAddRequest

type ServicesAddRequest struct {
	// contains filtered or unexported fields
}

ServicesAddRequest is the request for the 'add' method.

func (*ServicesAddRequest) Body

Body sets the value of the 'body' parameter.

func (*ServicesAddRequest) Header

func (r *ServicesAddRequest) Header(name string, value interface{}) *ServicesAddRequest

Header adds a request header.

func (*ServicesAddRequest) Impersonate

func (r *ServicesAddRequest) Impersonate(user string) *ServicesAddRequest

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

func (*ServicesAddRequest) Parameter

func (r *ServicesAddRequest) Parameter(name string, value interface{}) *ServicesAddRequest

Parameter adds a query parameter.

func (*ServicesAddRequest) Send

func (r *ServicesAddRequest) Send() (result *ServicesAddResponse, 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 (*ServicesAddRequest) SendContext

func (r *ServicesAddRequest) SendContext(ctx context.Context) (result *ServicesAddResponse, err error)

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

type ServicesAddResponse

type ServicesAddResponse struct {
	// contains filtered or unexported fields
}

ServicesAddResponse is the response for the 'add' method.

func (*ServicesAddResponse) Body

func (r *ServicesAddResponse) Body() *Service

Body returns the value of the 'body' parameter.

func (*ServicesAddResponse) Error

func (r *ServicesAddResponse) Error() *errors.Error

Error returns the response error.

func (*ServicesAddResponse) GetBody

func (r *ServicesAddResponse) GetBody() (value *Service, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ServicesAddResponse) Header

func (r *ServicesAddResponse) Header() http.Header

Header returns header of the response.

func (*ServicesAddResponse) Status

func (r *ServicesAddResponse) Status() int

Status returns the response status code.

type ServicesClient

type ServicesClient struct {
	// contains filtered or unexported fields
}

ServicesClient is the client of the 'services' resource.

Manages the collection of services.

func NewServicesClient

func NewServicesClient(transport http.RoundTripper, path string) *ServicesClient

NewServicesClient creates a new client for the 'services' resource using the given transport to send the requests and receive the responses.

func (*ServicesClient) Add

Add creates a request for the 'add' method.

func (*ServicesClient) List

List creates a request for the 'list' method.

Retrieves the list of services.

func (*ServicesClient) Service

func (c *ServicesClient) Service(id string) *ServiceClient

Service returns the target 'service' resource for the given identifier.

type ServicesListRequest

type ServicesListRequest struct {
	// contains filtered or unexported fields
}

ServicesListRequest is the request for the 'list' method.

func (*ServicesListRequest) Header

func (r *ServicesListRequest) Header(name string, value interface{}) *ServicesListRequest

Header adds a request header.

func (*ServicesListRequest) Impersonate

func (r *ServicesListRequest) Impersonate(user string) *ServicesListRequest

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

func (*ServicesListRequest) Mine

Mine sets the value of the 'mine' parameter.

func (*ServicesListRequest) OrderBy

func (r *ServicesListRequest) OrderBy(value string) *ServicesListRequest

OrderBy sets the value of the 'order_by' parameter.

func (*ServicesListRequest) Page

Page sets the value of the 'page' parameter.

func (*ServicesListRequest) Parameter

func (r *ServicesListRequest) Parameter(name string, value interface{}) *ServicesListRequest

Parameter adds a query parameter.

func (*ServicesListRequest) Search added in v0.1.380

Search sets the value of the 'search' parameter.

func (*ServicesListRequest) Send

func (r *ServicesListRequest) Send() (result *ServicesListResponse, 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 (*ServicesListRequest) SendContext

func (r *ServicesListRequest) SendContext(ctx context.Context) (result *ServicesListResponse, err error)

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

func (*ServicesListRequest) Size

Size sets the value of the 'size' parameter.

type ServicesListResponse

type ServicesListResponse struct {
	// contains filtered or unexported fields
}

ServicesListResponse is the response for the 'list' method.

func (*ServicesListResponse) Error

func (r *ServicesListResponse) Error() *errors.Error

Error returns the response error.

func (*ServicesListResponse) GetItems

func (r *ServicesListResponse) GetItems() (value *ServiceList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

func (*ServicesListResponse) GetPage

func (r *ServicesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

func (*ServicesListResponse) GetSize

func (r *ServicesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

func (*ServicesListResponse) GetTotal

func (r *ServicesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

func (*ServicesListResponse) Header

func (r *ServicesListResponse) Header() http.Header

Header returns header of the response.

func (*ServicesListResponse) Items

func (r *ServicesListResponse) Items() *ServiceList

Items returns the value of the 'items' parameter.

func (*ServicesListResponse) Page

func (r *ServicesListResponse) Page() int

Page returns the value of the 'page' parameter.

func (*ServicesListResponse) Size

func (r *ServicesListResponse) Size() int

Size returns the value of the 'size' parameter.

func (*ServicesListResponse) Status

func (r *ServicesListResponse) Status() int

Status returns the response status code.

func (*ServicesListResponse) Total

func (r *ServicesListResponse) Total() int

Total returns the value of the 'total' parameter.

type Status

type Status struct {
	// contains filtered or unexported fields
}

Status represents the values of the 'status' type.

Definition of a Status Board status.

func UnmarshalStatus

func UnmarshalStatus(source interface{}) (object *Status, err error)

UnmarshalStatus reads a value of the 'status' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalStatusList

func UnmarshalStatusList(source interface{}) (items []*Status, err error)

UnmarshalStatusList reads a list of values of the 'status' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Status) CreatedAt

func (o *Status) 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.

Object creation timestamp.

func (*Status) Empty

func (o *Status) Empty() bool

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

func (*Status) GetCreatedAt

func (o *Status) 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.

Object creation timestamp.

func (*Status) GetHREF

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

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

func (*Status) GetID

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

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

func (*Status) GetMetadata

func (o *Status) GetMetadata() (value interface{}, ok bool)

GetMetadata returns the value of the 'metadata' attribute and a flag indicating if the attribute has a value.

Miscellaneous metadata about the application.

func (*Status) GetService

func (o *Status) GetService() (value *Service, ok bool)

GetService returns the value of the 'service' attribute and a flag indicating if the attribute has a value.

The associated service ID.

func (*Status) GetServiceInfo

func (o *Status) GetServiceInfo() (value *ServiceInfo, ok bool)

GetServiceInfo returns the value of the 'service_info' attribute and a flag indicating if the attribute has a value.

Additional Service related data.

func (*Status) GetStatus

func (o *Status) GetStatus() (value string, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

A status message for the given service.

func (*Status) GetUpdatedAt

func (o *Status) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*Status) HREF

func (o *Status) HREF() string

HREF returns the link to the object.

func (*Status) ID

func (o *Status) ID() string

ID returns the identifier of the object.

func (*Status) Kind

func (o *Status) Kind() string

Kind returns the name of the type of the object.

func (o *Status) Link() bool

Link returns true iif this is a link.

func (*Status) Metadata

func (o *Status) Metadata() interface{}

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

Miscellaneous metadata about the application.

func (*Status) Service

func (o *Status) Service() *Service

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

The associated service ID.

func (*Status) ServiceInfo

func (o *Status) ServiceInfo() *ServiceInfo

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

Additional Service related data.

func (*Status) Status

func (o *Status) Status() string

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

A status message for the given service.

func (*Status) UpdatedAt

func (o *Status) UpdatedAt() time.Time

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

Object modification timestamp.

type StatusBuilder

type StatusBuilder struct {
	// contains filtered or unexported fields
}

StatusBuilder contains the data and logic needed to build 'status' objects.

Definition of a Status Board status.

func NewStatus

func NewStatus() *StatusBuilder

NewStatus creates a new builder of 'status' objects.

func (*StatusBuilder) Build

func (b *StatusBuilder) Build() (object *Status, err error)

Build creates a 'status' object using the configuration stored in the builder.

func (*StatusBuilder) Copy

func (b *StatusBuilder) Copy(object *Status) *StatusBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*StatusBuilder) CreatedAt

func (b *StatusBuilder) CreatedAt(value time.Time) *StatusBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*StatusBuilder) Empty

func (b *StatusBuilder) Empty() bool

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

func (*StatusBuilder) HREF

func (b *StatusBuilder) HREF(value string) *StatusBuilder

HREF sets the link to the object.

func (*StatusBuilder) ID

func (b *StatusBuilder) ID(value string) *StatusBuilder

ID sets the identifier of the object.

func (b *StatusBuilder) Link(value bool) *StatusBuilder

Link sets the flag that indicates if this is a link.

func (*StatusBuilder) Metadata

func (b *StatusBuilder) Metadata(value interface{}) *StatusBuilder

Metadata sets the value of the 'metadata' attribute to the given value.

func (*StatusBuilder) Service

func (b *StatusBuilder) Service(value *ServiceBuilder) *StatusBuilder

Service sets the value of the 'service' attribute to the given value.

Definition of a Status Board Service.

func (*StatusBuilder) ServiceInfo

func (b *StatusBuilder) ServiceInfo(value *ServiceInfoBuilder) *StatusBuilder

ServiceInfo sets the value of the 'service_info' attribute to the given value.

Definition of a Status Board service info.

func (*StatusBuilder) Status

func (b *StatusBuilder) Status(value string) *StatusBuilder

Status sets the value of the 'status' attribute to the given value.

func (*StatusBuilder) UpdatedAt

func (b *StatusBuilder) UpdatedAt(value time.Time) *StatusBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type StatusClient

type StatusClient struct {
	// contains filtered or unexported fields
}

StatusClient is the client of the 'status' resource.

Provides detailed information about the specified status.

func NewStatusClient

func NewStatusClient(transport http.RoundTripper, path string) *StatusClient

NewStatusClient creates a new client for the 'status' resource using the given transport to send the requests and receive the responses.

func (*StatusClient) Delete

func (c *StatusClient) Delete() *StatusDeleteRequest

Delete creates a request for the 'delete' method.

func (*StatusClient) Get

func (c *StatusClient) Get() *StatusGetRequest

Get creates a request for the 'get' method.

func (*StatusClient) Poll

func (c *StatusClient) Poll() *StatusPollRequest

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.

func (*StatusClient) Update

func (c *StatusClient) Update() *StatusUpdateRequest

Update creates a request for the 'update' method.

type StatusDeleteRequest

type StatusDeleteRequest struct {
	// contains filtered or unexported fields
}

StatusDeleteRequest is the request for the 'delete' method.

func (*StatusDeleteRequest) Header

func (r *StatusDeleteRequest) Header(name string, value interface{}) *StatusDeleteRequest

Header adds a request header.

func (*StatusDeleteRequest) Impersonate

func (r *StatusDeleteRequest) Impersonate(user string) *StatusDeleteRequest

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

func (*StatusDeleteRequest) Parameter

func (r *StatusDeleteRequest) Parameter(name string, value interface{}) *StatusDeleteRequest

Parameter adds a query parameter.

func (*StatusDeleteRequest) Send

func (r *StatusDeleteRequest) Send() (result *StatusDeleteResponse, 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 (*StatusDeleteRequest) SendContext

func (r *StatusDeleteRequest) SendContext(ctx context.Context) (result *StatusDeleteResponse, err error)

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

type StatusDeleteResponse

type StatusDeleteResponse struct {
	// contains filtered or unexported fields
}

StatusDeleteResponse is the response for the 'delete' method.

func (*StatusDeleteResponse) Error

func (r *StatusDeleteResponse) Error() *errors.Error

Error returns the response error.

func (*StatusDeleteResponse) Header

func (r *StatusDeleteResponse) Header() http.Header

Header returns header of the response.

func (*StatusDeleteResponse) Status

func (r *StatusDeleteResponse) Status() int

Status returns the response status code.

type StatusGetRequest

type StatusGetRequest struct {
	// contains filtered or unexported fields
}

StatusGetRequest is the request for the 'get' method.

func (*StatusGetRequest) Header

func (r *StatusGetRequest) Header(name string, value interface{}) *StatusGetRequest

Header adds a request header.

func (*StatusGetRequest) Impersonate

func (r *StatusGetRequest) Impersonate(user string) *StatusGetRequest

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

func (*StatusGetRequest) Parameter

func (r *StatusGetRequest) Parameter(name string, value interface{}) *StatusGetRequest

Parameter adds a query parameter.

func (*StatusGetRequest) Send

func (r *StatusGetRequest) Send() (result *StatusGetResponse, 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 (*StatusGetRequest) SendContext

func (r *StatusGetRequest) SendContext(ctx context.Context) (result *StatusGetResponse, err error)

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

type StatusGetResponse

type StatusGetResponse struct {
	// contains filtered or unexported fields
}

StatusGetResponse is the response for the 'get' method.

func (*StatusGetResponse) Body

func (r *StatusGetResponse) Body() *Status

Body returns the value of the 'body' parameter.

func (*StatusGetResponse) Error

func (r *StatusGetResponse) Error() *errors.Error

Error returns the response error.

func (*StatusGetResponse) GetBody

func (r *StatusGetResponse) GetBody() (value *Status, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*StatusGetResponse) Header

func (r *StatusGetResponse) Header() http.Header

Header returns header of the response.

func (*StatusGetResponse) Status

func (r *StatusGetResponse) Status() int

Status returns the response status code.

type StatusList

type StatusList struct {
	// contains filtered or unexported fields
}

StatusList is a list of values of the 'status' type.

func (*StatusList) Each

func (l *StatusList) Each(f func(item *Status) 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 (*StatusList) Empty

func (l *StatusList) Empty() bool

Empty returns true if the list is empty.

func (*StatusList) Get

func (l *StatusList) Get(i int) *Status

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*StatusList) GetHREF

func (l *StatusList) GetHREF() (value string, ok bool)

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

func (*StatusList) HREF

func (l *StatusList) HREF() string

HREF returns the link to the list.

func (*StatusList) Kind

func (l *StatusList) Kind() string

Kind returns the name of the type of the object.

func (*StatusList) Len

func (l *StatusList) Len() int

Len returns the length of the list.

func (l *StatusList) Link() bool

Link returns true iif this is a link.

func (*StatusList) Range

func (l *StatusList) Range(f func(index int, item *Status) 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 (*StatusList) Slice

func (l *StatusList) Slice() []*Status

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 StatusListBuilder

type StatusListBuilder struct {
	// contains filtered or unexported fields
}

StatusListBuilder contains the data and logic needed to build 'status' objects.

func NewStatusList

func NewStatusList() *StatusListBuilder

NewStatusList creates a new builder of 'status' objects.

func (*StatusListBuilder) Build

func (b *StatusListBuilder) Build() (list *StatusList, err error)

Build creates a list of 'status' objects using the configuration stored in the builder.

func (*StatusListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*StatusListBuilder) Empty

func (b *StatusListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*StatusListBuilder) Items

func (b *StatusListBuilder) Items(values ...*StatusBuilder) *StatusListBuilder

Items sets the items of the list.

type StatusPollRequest

type StatusPollRequest struct {
	// contains filtered or unexported fields
}

StatusPollRequest is the request for the Poll method.

func (*StatusPollRequest) Header

func (r *StatusPollRequest) Header(name string, value interface{}) *StatusPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*StatusPollRequest) Interval

func (r *StatusPollRequest) Interval(value time.Duration) *StatusPollRequest

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*StatusPollRequest) Parameter

func (r *StatusPollRequest) Parameter(name string, value interface{}) *StatusPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*StatusPollRequest) Predicate

func (r *StatusPollRequest) Predicate(value func(*StatusGetResponse) bool) *StatusPollRequest

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 (*StatusPollRequest) StartContext

func (r *StatusPollRequest) StartContext(ctx context.Context) (response *StatusPollResponse, 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 (*StatusPollRequest) Status

func (r *StatusPollRequest) Status(value int) *StatusPollRequest

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 StatusPollResponse

type StatusPollResponse struct {
	// contains filtered or unexported fields
}

StatusPollResponse is the response for the Poll method.

func (*StatusPollResponse) Body

func (r *StatusPollResponse) Body() *Status

Body returns the value of the 'body' parameter.

func (*StatusPollResponse) Error

func (r *StatusPollResponse) Error() *errors.Error

Error returns the response error.

func (*StatusPollResponse) GetBody

func (r *StatusPollResponse) GetBody() (value *Status, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*StatusPollResponse) Header

func (r *StatusPollResponse) Header() http.Header

Header returns header of the response.

func (*StatusPollResponse) Status

func (r *StatusPollResponse) Status() int

Status returns the response status code.

type StatusUpdate

type StatusUpdate struct {
	// contains filtered or unexported fields
}

StatusUpdate represents the values of the 'status_update' type.

func UnmarshalStatusUpdate

func UnmarshalStatusUpdate(source interface{}) (object *StatusUpdate, err error)

UnmarshalStatusUpdate reads a value of the 'status_update' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalStatusUpdateList

func UnmarshalStatusUpdateList(source interface{}) (items []*StatusUpdate, err error)

UnmarshalStatusUpdateList reads a list of values of the 'status_update' type from the given source, which can be a slice of bytes, a string or a reader.

func (*StatusUpdate) CreatedAt

func (o *StatusUpdate) 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.

Object creation timestamp.

func (*StatusUpdate) Empty

func (o *StatusUpdate) Empty() bool

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

func (*StatusUpdate) GetCreatedAt

func (o *StatusUpdate) 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.

Object creation timestamp.

func (*StatusUpdate) GetHREF

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

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

func (*StatusUpdate) GetID

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

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

func (*StatusUpdate) GetMetadata

func (o *StatusUpdate) GetMetadata() (value interface{}, ok bool)

GetMetadata returns the value of the 'metadata' attribute and a flag indicating if the attribute has a value.

Miscellaneous metadata about the application.

func (*StatusUpdate) GetService

func (o *StatusUpdate) GetService() (value *Service, ok bool)

GetService returns the value of the 'service' attribute and a flag indicating if the attribute has a value.

The associated service ID.

func (*StatusUpdate) GetServiceInfo

func (o *StatusUpdate) GetServiceInfo() (value *ServiceInfo, ok bool)

GetServiceInfo returns the value of the 'service_info' attribute and a flag indicating if the attribute has a value.

Additional Service related data.

func (*StatusUpdate) GetStatus

func (o *StatusUpdate) GetStatus() (value string, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

A status message for the given service.

func (*StatusUpdate) GetUpdatedAt

func (o *StatusUpdate) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*StatusUpdate) HREF

func (o *StatusUpdate) HREF() string

HREF returns the link to the object.

func (*StatusUpdate) ID

func (o *StatusUpdate) ID() string

ID returns the identifier of the object.

func (*StatusUpdate) Kind

func (o *StatusUpdate) Kind() string

Kind returns the name of the type of the object.

func (o *StatusUpdate) Link() bool

Link returns true iif this is a link.

func (*StatusUpdate) Metadata

func (o *StatusUpdate) Metadata() interface{}

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

Miscellaneous metadata about the application.

func (*StatusUpdate) Service

func (o *StatusUpdate) Service() *Service

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

The associated service ID.

func (*StatusUpdate) ServiceInfo

func (o *StatusUpdate) ServiceInfo() *ServiceInfo

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

Additional Service related data.

func (*StatusUpdate) Status

func (o *StatusUpdate) Status() string

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

A status message for the given service.

func (*StatusUpdate) UpdatedAt

func (o *StatusUpdate) UpdatedAt() time.Time

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

Object modification timestamp.

type StatusUpdateBuilder

type StatusUpdateBuilder struct {
	// contains filtered or unexported fields
}

StatusUpdateBuilder contains the data and logic needed to build 'status_update' objects.

func NewStatusUpdate

func NewStatusUpdate() *StatusUpdateBuilder

NewStatusUpdate creates a new builder of 'status_update' objects.

func (*StatusUpdateBuilder) Build

func (b *StatusUpdateBuilder) Build() (object *StatusUpdate, err error)

Build creates a 'status_update' object using the configuration stored in the builder.

func (*StatusUpdateBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*StatusUpdateBuilder) CreatedAt

func (b *StatusUpdateBuilder) CreatedAt(value time.Time) *StatusUpdateBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*StatusUpdateBuilder) Empty

func (b *StatusUpdateBuilder) Empty() bool

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

func (*StatusUpdateBuilder) HREF

HREF sets the link to the object.

func (*StatusUpdateBuilder) ID

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*StatusUpdateBuilder) Metadata

func (b *StatusUpdateBuilder) Metadata(value interface{}) *StatusUpdateBuilder

Metadata sets the value of the 'metadata' attribute to the given value.

func (*StatusUpdateBuilder) Service

Service sets the value of the 'service' attribute to the given value.

Definition of a Status Board Service.

func (*StatusUpdateBuilder) ServiceInfo

ServiceInfo sets the value of the 'service_info' attribute to the given value.

Definition of a Status Board service info.

func (*StatusUpdateBuilder) Status

Status sets the value of the 'status' attribute to the given value.

func (*StatusUpdateBuilder) UpdatedAt

func (b *StatusUpdateBuilder) UpdatedAt(value time.Time) *StatusUpdateBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type StatusUpdateClient

type StatusUpdateClient struct {
	// contains filtered or unexported fields
}

StatusUpdateClient is the client of the 'status_update' resource.

Provides detailed information about the specified status.

func NewStatusUpdateClient

func NewStatusUpdateClient(transport http.RoundTripper, path string) *StatusUpdateClient

NewStatusUpdateClient creates a new client for the 'status_update' resource using the given transport to send the requests and receive the responses.

func (*StatusUpdateClient) Delete

Delete creates a request for the 'delete' method.

func (*StatusUpdateClient) Get

Get creates a request for the 'get' method.

func (*StatusUpdateClient) 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.

func (*StatusUpdateClient) Update

Update creates a request for the 'update' method.

type StatusUpdateDeleteRequest

type StatusUpdateDeleteRequest struct {
	// contains filtered or unexported fields
}

StatusUpdateDeleteRequest is the request for the 'delete' method.

func (*StatusUpdateDeleteRequest) Header

func (r *StatusUpdateDeleteRequest) Header(name string, value interface{}) *StatusUpdateDeleteRequest

Header adds a request header.

func (*StatusUpdateDeleteRequest) Impersonate

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

func (*StatusUpdateDeleteRequest) Parameter

func (r *StatusUpdateDeleteRequest) Parameter(name string, value interface{}) *StatusUpdateDeleteRequest

Parameter adds a query parameter.

func (*StatusUpdateDeleteRequest) Send

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 (*StatusUpdateDeleteRequest) SendContext

func (r *StatusUpdateDeleteRequest) SendContext(ctx context.Context) (result *StatusUpdateDeleteResponse, err error)

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

type StatusUpdateDeleteResponse

type StatusUpdateDeleteResponse struct {
	// contains filtered or unexported fields
}

StatusUpdateDeleteResponse is the response for the 'delete' method.

func (*StatusUpdateDeleteResponse) Error

Error returns the response error.

func (*StatusUpdateDeleteResponse) Header

Header returns header of the response.

func (*StatusUpdateDeleteResponse) Status

func (r *StatusUpdateDeleteResponse) Status() int

Status returns the response status code.

type StatusUpdateGetRequest

type StatusUpdateGetRequest struct {
	// contains filtered or unexported fields
}

StatusUpdateGetRequest is the request for the 'get' method.

func (*StatusUpdateGetRequest) Header

func (r *StatusUpdateGetRequest) Header(name string, value interface{}) *StatusUpdateGetRequest

Header adds a request header.

func (*StatusUpdateGetRequest) Impersonate

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

func (*StatusUpdateGetRequest) Parameter

func (r *StatusUpdateGetRequest) Parameter(name string, value interface{}) *StatusUpdateGetRequest

Parameter adds a query parameter.

func (*StatusUpdateGetRequest) Send

func (r *StatusUpdateGetRequest) Send() (result *StatusUpdateGetResponse, 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 (*StatusUpdateGetRequest) SendContext

func (r *StatusUpdateGetRequest) SendContext(ctx context.Context) (result *StatusUpdateGetResponse, err error)

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

type StatusUpdateGetResponse

type StatusUpdateGetResponse struct {
	// contains filtered or unexported fields
}

StatusUpdateGetResponse is the response for the 'get' method.

func (*StatusUpdateGetResponse) Body

func (r *StatusUpdateGetResponse) Body() *Status

Body returns the value of the 'body' parameter.

func (*StatusUpdateGetResponse) Error

func (r *StatusUpdateGetResponse) Error() *errors.Error

Error returns the response error.

func (*StatusUpdateGetResponse) GetBody

func (r *StatusUpdateGetResponse) GetBody() (value *Status, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*StatusUpdateGetResponse) Header

func (r *StatusUpdateGetResponse) Header() http.Header

Header returns header of the response.

func (*StatusUpdateGetResponse) Status

func (r *StatusUpdateGetResponse) Status() int

Status returns the response status code.

type StatusUpdateList

type StatusUpdateList struct {
	// contains filtered or unexported fields
}

StatusUpdateList is a list of values of the 'status_update' type.

func (*StatusUpdateList) Each

func (l *StatusUpdateList) Each(f func(item *StatusUpdate) 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 (*StatusUpdateList) Empty

func (l *StatusUpdateList) Empty() bool

Empty returns true if the list is empty.

func (*StatusUpdateList) Get

func (l *StatusUpdateList) Get(i int) *StatusUpdate

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*StatusUpdateList) GetHREF

func (l *StatusUpdateList) GetHREF() (value string, ok bool)

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

func (*StatusUpdateList) HREF

func (l *StatusUpdateList) HREF() string

HREF returns the link to the list.

func (*StatusUpdateList) Kind

func (l *StatusUpdateList) Kind() string

Kind returns the name of the type of the object.

func (*StatusUpdateList) Len

func (l *StatusUpdateList) Len() int

Len returns the length of the list.

func (l *StatusUpdateList) Link() bool

Link returns true iif this is a link.

func (*StatusUpdateList) Range

func (l *StatusUpdateList) Range(f func(index int, item *StatusUpdate) 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 (*StatusUpdateList) Slice

func (l *StatusUpdateList) Slice() []*StatusUpdate

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 StatusUpdateListBuilder

type StatusUpdateListBuilder struct {
	// contains filtered or unexported fields
}

StatusUpdateListBuilder contains the data and logic needed to build 'status_update' objects.

func NewStatusUpdateList

func NewStatusUpdateList() *StatusUpdateListBuilder

NewStatusUpdateList creates a new builder of 'status_update' objects.

func (*StatusUpdateListBuilder) Build

func (b *StatusUpdateListBuilder) Build() (list *StatusUpdateList, err error)

Build creates a list of 'status_update' objects using the configuration stored in the builder.

func (*StatusUpdateListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*StatusUpdateListBuilder) Empty

func (b *StatusUpdateListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*StatusUpdateListBuilder) Items

Items sets the items of the list.

type StatusUpdatePollRequest

type StatusUpdatePollRequest struct {
	// contains filtered or unexported fields
}

StatusUpdatePollRequest is the request for the Poll method.

func (*StatusUpdatePollRequest) Header

func (r *StatusUpdatePollRequest) Header(name string, value interface{}) *StatusUpdatePollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*StatusUpdatePollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*StatusUpdatePollRequest) Parameter

func (r *StatusUpdatePollRequest) Parameter(name string, value interface{}) *StatusUpdatePollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*StatusUpdatePollRequest) 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 (*StatusUpdatePollRequest) StartContext

func (r *StatusUpdatePollRequest) StartContext(ctx context.Context) (response *StatusUpdatePollResponse, 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 (*StatusUpdatePollRequest) Status

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 StatusUpdatePollResponse

type StatusUpdatePollResponse struct {
	// contains filtered or unexported fields
}

StatusUpdatePollResponse is the response for the Poll method.

func (*StatusUpdatePollResponse) Body

func (r *StatusUpdatePollResponse) Body() *Status

Body returns the value of the 'body' parameter.

func (*StatusUpdatePollResponse) Error

Error returns the response error.

func (*StatusUpdatePollResponse) GetBody

func (r *StatusUpdatePollResponse) GetBody() (value *Status, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*StatusUpdatePollResponse) Header

func (r *StatusUpdatePollResponse) Header() http.Header

Header returns header of the response.

func (*StatusUpdatePollResponse) Status

func (r *StatusUpdatePollResponse) Status() int

Status returns the response status code.

type StatusUpdateRequest

type StatusUpdateRequest struct {
	// contains filtered or unexported fields
}

StatusUpdateRequest is the request for the 'update' method.

func (*StatusUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*StatusUpdateRequest) Header

func (r *StatusUpdateRequest) Header(name string, value interface{}) *StatusUpdateRequest

Header adds a request header.

func (*StatusUpdateRequest) Impersonate

func (r *StatusUpdateRequest) Impersonate(user string) *StatusUpdateRequest

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

func (*StatusUpdateRequest) Parameter

func (r *StatusUpdateRequest) Parameter(name string, value interface{}) *StatusUpdateRequest

Parameter adds a query parameter.

func (*StatusUpdateRequest) Send

func (r *StatusUpdateRequest) Send() (result *StatusUpdateResponse, 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 (*StatusUpdateRequest) SendContext

func (r *StatusUpdateRequest) SendContext(ctx context.Context) (result *StatusUpdateResponse, err error)

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

type StatusUpdateResponse

type StatusUpdateResponse struct {
	// contains filtered or unexported fields
}

StatusUpdateResponse is the response for the 'update' method.

func (*StatusUpdateResponse) Body

func (r *StatusUpdateResponse) Body() *Status

Body returns the value of the 'body' parameter.

func (*StatusUpdateResponse) Error

func (r *StatusUpdateResponse) Error() *errors.Error

Error returns the response error.

func (*StatusUpdateResponse) GetBody

func (r *StatusUpdateResponse) GetBody() (value *Status, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*StatusUpdateResponse) Header

func (r *StatusUpdateResponse) Header() http.Header

Header returns header of the response.

func (*StatusUpdateResponse) Status

func (r *StatusUpdateResponse) Status() int

Status returns the response status code.

type StatusUpdateUpdateRequest

type StatusUpdateUpdateRequest struct {
	// contains filtered or unexported fields
}

StatusUpdateUpdateRequest is the request for the 'update' method.

func (*StatusUpdateUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*StatusUpdateUpdateRequest) Header

func (r *StatusUpdateUpdateRequest) Header(name string, value interface{}) *StatusUpdateUpdateRequest

Header adds a request header.

func (*StatusUpdateUpdateRequest) Impersonate

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

func (*StatusUpdateUpdateRequest) Parameter

func (r *StatusUpdateUpdateRequest) Parameter(name string, value interface{}) *StatusUpdateUpdateRequest

Parameter adds a query parameter.

func (*StatusUpdateUpdateRequest) Send

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 (*StatusUpdateUpdateRequest) SendContext

func (r *StatusUpdateUpdateRequest) SendContext(ctx context.Context) (result *StatusUpdateUpdateResponse, err error)

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

type StatusUpdateUpdateResponse

type StatusUpdateUpdateResponse struct {
	// contains filtered or unexported fields
}

StatusUpdateUpdateResponse is the response for the 'update' method.

func (*StatusUpdateUpdateResponse) Body

Body returns the value of the 'body' parameter.

func (*StatusUpdateUpdateResponse) Error

Error returns the response error.

func (*StatusUpdateUpdateResponse) GetBody

func (r *StatusUpdateUpdateResponse) GetBody() (value *Status, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*StatusUpdateUpdateResponse) Header

Header returns header of the response.

func (*StatusUpdateUpdateResponse) Status

func (r *StatusUpdateUpdateResponse) Status() int

Status returns the response status code.

type StatusUpdatesAddRequest

type StatusUpdatesAddRequest struct {
	// contains filtered or unexported fields
}

StatusUpdatesAddRequest is the request for the 'add' method.

func (*StatusUpdatesAddRequest) Body

Body sets the value of the 'body' parameter.

func (*StatusUpdatesAddRequest) Header

func (r *StatusUpdatesAddRequest) Header(name string, value interface{}) *StatusUpdatesAddRequest

Header adds a request header.

func (*StatusUpdatesAddRequest) Impersonate

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

func (*StatusUpdatesAddRequest) Parameter

func (r *StatusUpdatesAddRequest) Parameter(name string, value interface{}) *StatusUpdatesAddRequest

Parameter adds a query parameter.

func (*StatusUpdatesAddRequest) Send

func (r *StatusUpdatesAddRequest) Send() (result *StatusUpdatesAddResponse, 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 (*StatusUpdatesAddRequest) SendContext

func (r *StatusUpdatesAddRequest) SendContext(ctx context.Context) (result *StatusUpdatesAddResponse, err error)

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

type StatusUpdatesAddResponse

type StatusUpdatesAddResponse struct {
	// contains filtered or unexported fields
}

StatusUpdatesAddResponse is the response for the 'add' method.

func (*StatusUpdatesAddResponse) Body

func (r *StatusUpdatesAddResponse) Body() *Status

Body returns the value of the 'body' parameter.

func (*StatusUpdatesAddResponse) Error

Error returns the response error.

func (*StatusUpdatesAddResponse) GetBody

func (r *StatusUpdatesAddResponse) GetBody() (value *Status, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*StatusUpdatesAddResponse) Header

func (r *StatusUpdatesAddResponse) Header() http.Header

Header returns header of the response.

func (*StatusUpdatesAddResponse) Status

func (r *StatusUpdatesAddResponse) Status() int

Status returns the response status code.

type StatusUpdatesClient

type StatusUpdatesClient struct {
	// contains filtered or unexported fields
}

StatusUpdatesClient is the client of the 'status_updates' resource.

Manages the collection of statuses

func NewStatusUpdatesClient

func NewStatusUpdatesClient(transport http.RoundTripper, path string) *StatusUpdatesClient

NewStatusUpdatesClient creates a new client for the 'status_updates' resource using the given transport to send the requests and receive the responses.

func (*StatusUpdatesClient) Add

Add creates a request for the 'add' method.

func (*StatusUpdatesClient) List

List creates a request for the 'list' method.

Retrieves the list of statuses.

func (*StatusUpdatesClient) Status

func (c *StatusUpdatesClient) Status(id string) *StatusClient

Status returns the target 'status' resource for the given identifier.

type StatusUpdatesListRequest

type StatusUpdatesListRequest struct {
	// contains filtered or unexported fields
}

StatusUpdatesListRequest is the request for the 'list' method.

func (*StatusUpdatesListRequest) CreatedAfter

CreatedAfter sets the value of the 'created_after' parameter.

func (*StatusUpdatesListRequest) CreatedBefore

CreatedBefore sets the value of the 'created_before' parameter.

func (*StatusUpdatesListRequest) FullNames

FullNames sets the value of the 'full_names' parameter.

func (*StatusUpdatesListRequest) Header

func (r *StatusUpdatesListRequest) Header(name string, value interface{}) *StatusUpdatesListRequest

Header adds a request header.

func (*StatusUpdatesListRequest) Impersonate

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

func (*StatusUpdatesListRequest) LimitScope

LimitScope sets the value of the 'limit_scope' parameter.

func (*StatusUpdatesListRequest) Page

Page sets the value of the 'page' parameter.

func (*StatusUpdatesListRequest) Parameter

func (r *StatusUpdatesListRequest) Parameter(name string, value interface{}) *StatusUpdatesListRequest

Parameter adds a query parameter.

func (*StatusUpdatesListRequest) ProductIds

ProductIds sets the value of the 'product_ids' parameter.

func (*StatusUpdatesListRequest) Search added in v0.1.382

Search sets the value of the 'search' parameter.

func (*StatusUpdatesListRequest) Send

func (r *StatusUpdatesListRequest) Send() (result *StatusUpdatesListResponse, 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 (*StatusUpdatesListRequest) SendContext

func (r *StatusUpdatesListRequest) SendContext(ctx context.Context) (result *StatusUpdatesListResponse, err error)

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

func (*StatusUpdatesListRequest) Size

Size sets the value of the 'size' parameter.

type StatusUpdatesListResponse

type StatusUpdatesListResponse struct {
	// contains filtered or unexported fields
}

StatusUpdatesListResponse is the response for the 'list' method.

func (*StatusUpdatesListResponse) Error

Error returns the response error.

func (*StatusUpdatesListResponse) GetItems

func (r *StatusUpdatesListResponse) GetItems() (value *StatusList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

func (*StatusUpdatesListResponse) GetPage

func (r *StatusUpdatesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

func (*StatusUpdatesListResponse) GetSize

func (r *StatusUpdatesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

func (*StatusUpdatesListResponse) GetTotal

func (r *StatusUpdatesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

func (*StatusUpdatesListResponse) Header

Header returns header of the response.

func (*StatusUpdatesListResponse) Items

Items returns the value of the 'items' parameter.

func (*StatusUpdatesListResponse) Page

func (r *StatusUpdatesListResponse) Page() int

Page returns the value of the 'page' parameter.

func (*StatusUpdatesListResponse) Size

func (r *StatusUpdatesListResponse) Size() int

Size returns the value of the 'size' parameter.

func (*StatusUpdatesListResponse) Status

func (r *StatusUpdatesListResponse) Status() int

Status returns the response status code.

func (*StatusUpdatesListResponse) Total

func (r *StatusUpdatesListResponse) Total() int

Total returns the value of the 'total' parameter.

type StatusesAddRequest

type StatusesAddRequest struct {
	// contains filtered or unexported fields
}

StatusesAddRequest is the request for the 'add' method.

func (*StatusesAddRequest) Body

func (r *StatusesAddRequest) Body(value *Status) *StatusesAddRequest

Body sets the value of the 'body' parameter.

func (*StatusesAddRequest) Header

func (r *StatusesAddRequest) Header(name string, value interface{}) *StatusesAddRequest

Header adds a request header.

func (*StatusesAddRequest) Impersonate

func (r *StatusesAddRequest) Impersonate(user string) *StatusesAddRequest

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

func (*StatusesAddRequest) Parameter

func (r *StatusesAddRequest) Parameter(name string, value interface{}) *StatusesAddRequest

Parameter adds a query parameter.

func (*StatusesAddRequest) Send

func (r *StatusesAddRequest) Send() (result *StatusesAddResponse, 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 (*StatusesAddRequest) SendContext

func (r *StatusesAddRequest) SendContext(ctx context.Context) (result *StatusesAddResponse, err error)

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

type StatusesAddResponse

type StatusesAddResponse struct {
	// contains filtered or unexported fields
}

StatusesAddResponse is the response for the 'add' method.

func (*StatusesAddResponse) Body

func (r *StatusesAddResponse) Body() *Status

Body returns the value of the 'body' parameter.

func (*StatusesAddResponse) Error

func (r *StatusesAddResponse) Error() *errors.Error

Error returns the response error.

func (*StatusesAddResponse) GetBody

func (r *StatusesAddResponse) GetBody() (value *Status, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*StatusesAddResponse) Header

func (r *StatusesAddResponse) Header() http.Header

Header returns header of the response.

func (*StatusesAddResponse) Status

func (r *StatusesAddResponse) Status() int

Status returns the response status code.

type StatusesClient

type StatusesClient struct {
	// contains filtered or unexported fields
}

StatusesClient is the client of the 'statuses' resource.

Manages the collection of statuses

func NewStatusesClient

func NewStatusesClient(transport http.RoundTripper, path string) *StatusesClient

NewStatusesClient creates a new client for the 'statuses' resource using the given transport to send the requests and receive the responses.

func (*StatusesClient) Add

Add creates a request for the 'add' method.

func (*StatusesClient) List

List creates a request for the 'list' method.

Retrieves the list of statuses.

func (*StatusesClient) Status

func (c *StatusesClient) Status(id string) *StatusClient

Status returns the target 'status' resource for the given identifier.

type StatusesListRequest

type StatusesListRequest struct {
	// contains filtered or unexported fields
}

StatusesListRequest is the request for the 'list' method.

func (*StatusesListRequest) CreatedAfter

func (r *StatusesListRequest) CreatedAfter(value time.Time) *StatusesListRequest

CreatedAfter sets the value of the 'created_after' parameter.

func (*StatusesListRequest) CreatedBefore

func (r *StatusesListRequest) CreatedBefore(value time.Time) *StatusesListRequest

CreatedBefore sets the value of the 'created_before' parameter.

func (*StatusesListRequest) FullNames

func (r *StatusesListRequest) FullNames(value string) *StatusesListRequest

FullNames sets the value of the 'full_names' parameter.

func (*StatusesListRequest) Header

func (r *StatusesListRequest) Header(name string, value interface{}) *StatusesListRequest

Header adds a request header.

func (*StatusesListRequest) Impersonate

func (r *StatusesListRequest) Impersonate(user string) *StatusesListRequest

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

func (*StatusesListRequest) LimitScope

func (r *StatusesListRequest) LimitScope(value time.Time) *StatusesListRequest

LimitScope sets the value of the 'limit_scope' parameter.

func (*StatusesListRequest) Page

Page sets the value of the 'page' parameter.

func (*StatusesListRequest) Parameter

func (r *StatusesListRequest) Parameter(name string, value interface{}) *StatusesListRequest

Parameter adds a query parameter.

func (*StatusesListRequest) ProductIds

func (r *StatusesListRequest) ProductIds(value string) *StatusesListRequest

ProductIds sets the value of the 'product_ids' parameter.

func (*StatusesListRequest) Send

func (r *StatusesListRequest) Send() (result *StatusesListResponse, 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 (*StatusesListRequest) SendContext

func (r *StatusesListRequest) SendContext(ctx context.Context) (result *StatusesListResponse, err error)

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

func (*StatusesListRequest) Size

Size sets the value of the 'size' parameter.

type StatusesListResponse

type StatusesListResponse struct {
	// contains filtered or unexported fields
}

StatusesListResponse is the response for the 'list' method.

func (*StatusesListResponse) Error

func (r *StatusesListResponse) Error() *errors.Error

Error returns the response error.

func (*StatusesListResponse) GetItems

func (r *StatusesListResponse) GetItems() (value *StatusList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

func (*StatusesListResponse) GetPage

func (r *StatusesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

func (*StatusesListResponse) GetSize

func (r *StatusesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

func (*StatusesListResponse) GetTotal

func (r *StatusesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

func (*StatusesListResponse) Header

func (r *StatusesListResponse) Header() http.Header

Header returns header of the response.

func (*StatusesListResponse) Items

func (r *StatusesListResponse) Items() *StatusList

Items returns the value of the 'items' parameter.

func (*StatusesListResponse) Page

func (r *StatusesListResponse) Page() int

Page returns the value of the 'page' parameter.

func (*StatusesListResponse) Size

func (r *StatusesListResponse) Size() int

Size returns the value of the 'size' parameter.

func (*StatusesListResponse) Status

func (r *StatusesListResponse) Status() int

Status returns the response status code.

func (*StatusesListResponse) Total

func (r *StatusesListResponse) Total() int

Total returns the value of the 'total' parameter.

Source Files

Jump to

Keyboard shortcuts

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