Documentation ¶
Index ¶
- func GetOpts(opt ...Option) (options, error)
- func Register(subtype subtypes.Subtype, prefixes ...string) error
- func SubtypeFromId(id string) subtypes.Subtype
- func SubtypeFromType(t string) subtypes.Subtype
- type Catalog
- type DnsName
- type Endpoint
- type Host
- type IpAddress
- type Option
- type PreferredEndpoint
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶ added in v0.5.0
Register registers all the prefixes for a provided Subtype. Register returns an error if the subtype has already been registered or if any of the prefixes are associated with another subtype.
func SubtypeFromId ¶
SubtypeFromId returns the Subtype from the provided id if the id's prefix was registered with a Subtype. Otherwise Unknown is returned.
func SubtypeFromType ¶
SubtypeFromType returns the Subtype from the provided string or if no Subtype was registered with that string Unknown is returned.
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. |