host

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Domain = "host"

Domain defines the domain for the host package

Variables

This section is empty.

Functions

func GetOpts added in v0.7.0

func GetOpts(opt ...Option) (options, error)

GetOpts - iterate the inbound Options and return a struct

Types

type Catalog added in v0.7.0

type Catalog interface {
	boundary.Resource
	GetProjectId() string
}

Catalog contains the common methods across all the different types of host catalogs.

type DnsName added in v0.7.0

type DnsName struct {
	*store.DnsName
	// contains filtered or unexported fields
}

func NewDnsName added in v0.7.0

func NewDnsName(ctx context.Context, hostId string, name string) (*DnsName, error)

func (*DnsName) Clone added in v0.7.0

func (c *DnsName) Clone() *DnsName

Clone an DnsName

func (*DnsName) SetTableName added in v0.7.0

func (c *DnsName) SetTableName(n string)

SetTableName sets the table name.

func (*DnsName) TableName added in v0.7.0

func (c *DnsName) TableName() string

TableName returns the table name.

type Endpoint added in v0.7.0

type Endpoint struct {
	HostId  string
	SetId   string
	Address string
}

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

type IpAddress struct {
	*store.IpAddress
	// contains filtered or unexported fields
}

func NewIpAddress added in v0.7.0

func NewIpAddress(ctx context.Context, hostId string, address string) (*IpAddress, error)

func (*IpAddress) Clone added in v0.7.0

func (c *IpAddress) Clone() *IpAddress

Clone an IpAddress

func (*IpAddress) SetTableName added in v0.7.0

func (c *IpAddress) SetTableName(n string)

SetTableName sets the table name.

func (*IpAddress) TableName added in v0.7.0

func (c *IpAddress) TableName() string

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

func WithLimit(l int) Option

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

func WithOrderByCreateTime(ascending bool) Option

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

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.

type Set added in v0.7.0

type Set interface {
	boundary.Resource
	GetCatalogId() string
}

Set contains the common methods across all the different types of host sets.

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.

Jump to

Keyboard shortcuts

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