Documentation ¶
Index ¶
Constants ¶
const Domain = "host"
Domain defines the domain for the host package
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Catalog ¶ added in v0.7.0
Catalog contains the common methods across all the different types of host catalogs.
type DnsName ¶ added in v0.7.0
func NewDnsName ¶ added in v0.7.0
func (*DnsName) SetTableName ¶ added in v0.7.0
SetTableName sets the table name.
type Endpoint ¶ added in v0.7.0
Endpoint is a struct which identifies an address provided by a host and selected as the priority address by the specified host set.
type Host ¶ added in v0.7.0
type Host interface { boundary.Resource GetCatalogId() string GetAddress() string GetIpAddresses() []string GetDnsNames() []string GetSetIds() []string }
Host contains the common methods across all the different types of hosts.
type IpAddress ¶ added in v0.7.0
func NewIpAddress ¶ added in v0.7.0
func (*IpAddress) SetTableName ¶ added in v0.7.0
SetTableName sets the table name.
type Option ¶ added in v0.7.0
type Option func(*options) error
Option - how Options are passed as arguments.
func WithLimit ¶ added in v0.7.0
WithLimit provides an option to provide a limit. Intentionally allowing negative integers. If WithLimit < 0, then unlimited results are returned. If WithLimit == 0, then default limits are used for results.
func WithOrderByCreateTime ¶ added in v0.7.0
WithOrderByCreateTime provides an option to specify ordering by the CreateTime field.
type PreferredEndpoint ¶ added in v0.7.0
type PreferredEndpoint struct { *store.PreferredEndpoint // contains filtered or unexported fields }
PreferredEndpoint defines an endpoint condition for a host set. PreferredEndpoints are value objects of an HostSet, therefore there's no need for oplog metadata, since only the HostSet will have metadata because it's the root aggregate.
func AllocPreferredEndpoint ¶ added in v0.7.0
func AllocPreferredEndpoint() *PreferredEndpoint
AllocPreferredEndpoint makes an empty one in-memory
func NewPreferredEndpoint ¶ added in v0.7.0
func NewPreferredEndpoint(ctx context.Context, hostSetId string, priority uint32, condition string) (*PreferredEndpoint, error)
NewPreferredEndpoint creates a new in memory preferred endpoint assigned to a HostSet. It supports no options.
func (*PreferredEndpoint) Clone ¶ added in v0.7.0
func (c *PreferredEndpoint) Clone() *PreferredEndpoint
Clone a PreferredEndpoint
func (*PreferredEndpoint) SetTableName ¶ added in v0.7.0
func (c *PreferredEndpoint) SetTableName(n string)
SetTableName sets the table name.
func (*PreferredEndpoint) TableName ¶ added in v0.7.0
func (c *PreferredEndpoint) TableName() string
TableName returns the table name.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package plugin provides a plugin host catalog, and plugin host set resource which are used to interact with a host plugin as well as a repository to perform CRUDL and custom actions on these resource types.
|
Package plugin provides a plugin host catalog, and plugin host set resource which are used to interact with a host plugin as well as a repository to perform CRUDL and custom actions on these resource types. |
Package static provides a host, a host catalog, and a host set suitable for hosts with a static address.
|
Package static provides a host, a host catalog, and a host set suitable for hosts with a static address. |