2021-09-26 08:17:21 -07:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-02-02 17:15:17 -08:00
|
|
|
|
2021-09-26 08:17:21 -07:00
|
|
|
package host
|
|
|
|
|
|
|
|
|
|
import "github.com/hashicorp/boundary/internal/boundary"
|
|
|
|
|
|
2022-04-13 12:56:31 -04:00
|
|
|
// Domain defines the domain for the host package
|
|
|
|
|
const Domain = "host"
|
|
|
|
|
|
2021-09-26 08:17:21 -07:00
|
|
|
// Catalog contains the common methods across all the different types of host
|
|
|
|
|
// catalogs.
|
|
|
|
|
type Catalog interface {
|
|
|
|
|
boundary.Resource
|
2022-07-20 16:24:46 -07:00
|
|
|
GetProjectId() string
|
2021-09-26 08:17:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set contains the common methods across all the different types of host sets.
|
|
|
|
|
type Set interface {
|
|
|
|
|
boundary.Resource
|
|
|
|
|
GetCatalogId() string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Host contains the common methods across all the different types of hosts.
|
|
|
|
|
type Host interface {
|
|
|
|
|
boundary.Resource
|
|
|
|
|
GetCatalogId() string
|
|
|
|
|
GetAddress() string
|
2021-10-20 12:20:28 -07:00
|
|
|
GetIpAddresses() []string
|
|
|
|
|
GetDnsNames() []string
|
2022-02-01 10:06:13 -08:00
|
|
|
GetSetIds() []string
|
2021-09-26 08:17:21 -07:00
|
|
|
}
|