mirror of https://github.com/hashicorp/boundary
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1338 lines
48 KiB
1338 lines
48 KiB
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.10
|
|
// protoc (unknown)
|
|
// source: plugin/v1/host_plugin_service.proto
|
|
|
|
package plugin
|
|
|
|
import (
|
|
hostcatalogs "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/hostcatalogs"
|
|
hostsets "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/hostsets"
|
|
plugins "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/plugins"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
structpb "google.golang.org/protobuf/types/known/structpb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type NormalizeCatalogDataRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The incoming attributes in the create or update request.
|
|
Attributes *structpb.Struct `protobuf:"bytes,100,opt,name=attributes,proto3" json:"attributes,omitempty"`
|
|
// The plugin information for this request.
|
|
Plugin *plugins.PluginInfo `protobuf:"bytes,110,opt,name=plugin,proto3" json:"plugin,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NormalizeCatalogDataRequest) Reset() {
|
|
*x = NormalizeCatalogDataRequest{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NormalizeCatalogDataRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NormalizeCatalogDataRequest) ProtoMessage() {}
|
|
|
|
func (x *NormalizeCatalogDataRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NormalizeCatalogDataRequest.ProtoReflect.Descriptor instead.
|
|
func (*NormalizeCatalogDataRequest) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *NormalizeCatalogDataRequest) GetAttributes() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Attributes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NormalizeCatalogDataRequest) GetPlugin() *plugins.PluginInfo {
|
|
if x != nil {
|
|
return x.Plugin
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NormalizeCatalogDataResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Outgoing attributes. If nil, no changes will be recorded. If non-nil, the
|
|
// values here will be used in place of the original set of attributes.
|
|
Attributes *structpb.Struct `protobuf:"bytes,100,opt,name=attributes,proto3" json:"attributes,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NormalizeCatalogDataResponse) Reset() {
|
|
*x = NormalizeCatalogDataResponse{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NormalizeCatalogDataResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NormalizeCatalogDataResponse) ProtoMessage() {}
|
|
|
|
func (x *NormalizeCatalogDataResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NormalizeCatalogDataResponse.ProtoReflect.Descriptor instead.
|
|
func (*NormalizeCatalogDataResponse) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *NormalizeCatalogDataResponse) GetAttributes() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Attributes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnCreateCatalogRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The host catalog to create. The request may contain optional
|
|
// secret data to help authenticate the request against a cloud
|
|
// API.
|
|
Catalog *hostcatalogs.HostCatalog `protobuf:"bytes,10,opt,name=catalog,proto3" json:"catalog,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnCreateCatalogRequest) Reset() {
|
|
*x = OnCreateCatalogRequest{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnCreateCatalogRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnCreateCatalogRequest) ProtoMessage() {}
|
|
|
|
func (x *OnCreateCatalogRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnCreateCatalogRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnCreateCatalogRequest) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *OnCreateCatalogRequest) GetCatalog() *hostcatalogs.HostCatalog {
|
|
if x != nil {
|
|
return x.Catalog
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnCreateCatalogResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Secret data to persist encrypted within Boundary. This should be used to
|
|
// store authentication data and other necessary configuration to be used in
|
|
// later hooks and calls. Returning an error from the call will cause this
|
|
// data to not be persisted. If this is nil, nothing is written.
|
|
Persisted *HostCatalogPersisted `protobuf:"bytes,10,opt,name=persisted,proto3" json:"persisted,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnCreateCatalogResponse) Reset() {
|
|
*x = OnCreateCatalogResponse{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnCreateCatalogResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnCreateCatalogResponse) ProtoMessage() {}
|
|
|
|
func (x *OnCreateCatalogResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnCreateCatalogResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnCreateCatalogResponse) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *OnCreateCatalogResponse) GetPersisted() *HostCatalogPersisted {
|
|
if x != nil {
|
|
return x.Persisted
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnUpdateCatalogRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The existing state of the catalog.
|
|
CurrentCatalog *hostcatalogs.HostCatalog `protobuf:"bytes,10,opt,name=current_catalog,json=currentCatalog,proto3" json:"current_catalog,omitempty"`
|
|
// The requested new state of the catalog. This field may contain optional
|
|
// secret data that may have been updated from old authentication data
|
|
// contained within the persisted state.
|
|
NewCatalog *hostcatalogs.HostCatalog `protobuf:"bytes,20,opt,name=new_catalog,json=newCatalog,proto3" json:"new_catalog,omitempty"`
|
|
// The existing persisted secret data.
|
|
Persisted *HostCatalogPersisted `protobuf:"bytes,30,opt,name=persisted,proto3" json:"persisted,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnUpdateCatalogRequest) Reset() {
|
|
*x = OnUpdateCatalogRequest{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnUpdateCatalogRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnUpdateCatalogRequest) ProtoMessage() {}
|
|
|
|
func (x *OnUpdateCatalogRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnUpdateCatalogRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnUpdateCatalogRequest) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *OnUpdateCatalogRequest) GetCurrentCatalog() *hostcatalogs.HostCatalog {
|
|
if x != nil {
|
|
return x.CurrentCatalog
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnUpdateCatalogRequest) GetNewCatalog() *hostcatalogs.HostCatalog {
|
|
if x != nil {
|
|
return x.NewCatalog
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnUpdateCatalogRequest) GetPersisted() *HostCatalogPersisted {
|
|
if x != nil {
|
|
return x.Persisted
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnUpdateCatalogResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The updated secret data to persist encrypted within Boundary. If an error
|
|
// is returned, the update of the persisted data is aborted. If this is nil,
|
|
// no changes are written. To remove all values, simply return an allocated
|
|
// but empty map.
|
|
Persisted *HostCatalogPersisted `protobuf:"bytes,10,opt,name=persisted,proto3" json:"persisted,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnUpdateCatalogResponse) Reset() {
|
|
*x = OnUpdateCatalogResponse{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnUpdateCatalogResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnUpdateCatalogResponse) ProtoMessage() {}
|
|
|
|
func (x *OnUpdateCatalogResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnUpdateCatalogResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnUpdateCatalogResponse) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *OnUpdateCatalogResponse) GetPersisted() *HostCatalogPersisted {
|
|
if x != nil {
|
|
return x.Persisted
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnDeleteCatalogRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The existing state of the catalog to delete.
|
|
Catalog *hostcatalogs.HostCatalog `protobuf:"bytes,10,opt,name=catalog,proto3" json:"catalog,omitempty"`
|
|
// The host sets contained in the catalog being deleted.
|
|
Sets []*hostsets.HostSet `protobuf:"bytes,20,rep,name=sets,proto3" json:"sets,omitempty"`
|
|
// The existing persisted secret data.
|
|
Persisted *HostCatalogPersisted `protobuf:"bytes,30,opt,name=persisted,proto3" json:"persisted,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnDeleteCatalogRequest) Reset() {
|
|
*x = OnDeleteCatalogRequest{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnDeleteCatalogRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnDeleteCatalogRequest) ProtoMessage() {}
|
|
|
|
func (x *OnDeleteCatalogRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnDeleteCatalogRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnDeleteCatalogRequest) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *OnDeleteCatalogRequest) GetCatalog() *hostcatalogs.HostCatalog {
|
|
if x != nil {
|
|
return x.Catalog
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnDeleteCatalogRequest) GetSets() []*hostsets.HostSet {
|
|
if x != nil {
|
|
return x.Sets
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnDeleteCatalogRequest) GetPersisted() *HostCatalogPersisted {
|
|
if x != nil {
|
|
return x.Persisted
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnDeleteCatalogResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnDeleteCatalogResponse) Reset() {
|
|
*x = OnDeleteCatalogResponse{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnDeleteCatalogResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnDeleteCatalogResponse) ProtoMessage() {}
|
|
|
|
func (x *OnDeleteCatalogResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnDeleteCatalogResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnDeleteCatalogResponse) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
type NormalizeSetDataRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The incoming attributes in the create or update request.
|
|
Attributes *structpb.Struct `protobuf:"bytes,100,opt,name=attributes,proto3" json:"attributes,omitempty"`
|
|
// The plugin information for this request.
|
|
Plugin *plugins.PluginInfo `protobuf:"bytes,110,opt,name=plugin,proto3" json:"plugin,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NormalizeSetDataRequest) Reset() {
|
|
*x = NormalizeSetDataRequest{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NormalizeSetDataRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NormalizeSetDataRequest) ProtoMessage() {}
|
|
|
|
func (x *NormalizeSetDataRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NormalizeSetDataRequest.ProtoReflect.Descriptor instead.
|
|
func (*NormalizeSetDataRequest) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *NormalizeSetDataRequest) GetAttributes() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Attributes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NormalizeSetDataRequest) GetPlugin() *plugins.PluginInfo {
|
|
if x != nil {
|
|
return x.Plugin
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NormalizeSetDataResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Outgoing attributes. If nil, no changes will be recorded. If non-nil, the
|
|
// values here will be used in place of the original set of attributes.
|
|
Attributes *structpb.Struct `protobuf:"bytes,100,opt,name=attributes,proto3" json:"attributes,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NormalizeSetDataResponse) Reset() {
|
|
*x = NormalizeSetDataResponse{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NormalizeSetDataResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NormalizeSetDataResponse) ProtoMessage() {}
|
|
|
|
func (x *NormalizeSetDataResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NormalizeSetDataResponse.ProtoReflect.Descriptor instead.
|
|
func (*NormalizeSetDataResponse) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *NormalizeSetDataResponse) GetAttributes() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Attributes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnCreateSetRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The host catalog that the set belongs to.
|
|
Catalog *hostcatalogs.HostCatalog `protobuf:"bytes,10,opt,name=catalog,proto3" json:"catalog,omitempty"`
|
|
// The host set to create.
|
|
Set *hostsets.HostSet `protobuf:"bytes,20,opt,name=set,proto3" json:"set,omitempty"`
|
|
// The persisted data for the host catalog that the set belongs to.
|
|
Persisted *HostCatalogPersisted `protobuf:"bytes,30,opt,name=persisted,proto3" json:"persisted,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnCreateSetRequest) Reset() {
|
|
*x = OnCreateSetRequest{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnCreateSetRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnCreateSetRequest) ProtoMessage() {}
|
|
|
|
func (x *OnCreateSetRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnCreateSetRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnCreateSetRequest) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *OnCreateSetRequest) GetCatalog() *hostcatalogs.HostCatalog {
|
|
if x != nil {
|
|
return x.Catalog
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnCreateSetRequest) GetSet() *hostsets.HostSet {
|
|
if x != nil {
|
|
return x.Set
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnCreateSetRequest) GetPersisted() *HostCatalogPersisted {
|
|
if x != nil {
|
|
return x.Persisted
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnCreateSetResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnCreateSetResponse) Reset() {
|
|
*x = OnCreateSetResponse{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnCreateSetResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnCreateSetResponse) ProtoMessage() {}
|
|
|
|
func (x *OnCreateSetResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnCreateSetResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnCreateSetResponse) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
type OnUpdateSetRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The host catalog that the set belongs to.
|
|
Catalog *hostcatalogs.HostCatalog `protobuf:"bytes,10,opt,name=catalog,proto3" json:"catalog,omitempty"`
|
|
// The existing state of the host set.
|
|
CurrentSet *hostsets.HostSet `protobuf:"bytes,20,opt,name=current_set,json=currentSet,proto3" json:"current_set,omitempty"`
|
|
// The requested new state of the host set.
|
|
NewSet *hostsets.HostSet `protobuf:"bytes,30,opt,name=new_set,json=newSet,proto3" json:"new_set,omitempty"`
|
|
// The persisted data for the host catalog that the set belongs to.
|
|
Persisted *HostCatalogPersisted `protobuf:"bytes,40,opt,name=persisted,proto3" json:"persisted,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnUpdateSetRequest) Reset() {
|
|
*x = OnUpdateSetRequest{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnUpdateSetRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnUpdateSetRequest) ProtoMessage() {}
|
|
|
|
func (x *OnUpdateSetRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnUpdateSetRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnUpdateSetRequest) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *OnUpdateSetRequest) GetCatalog() *hostcatalogs.HostCatalog {
|
|
if x != nil {
|
|
return x.Catalog
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnUpdateSetRequest) GetCurrentSet() *hostsets.HostSet {
|
|
if x != nil {
|
|
return x.CurrentSet
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnUpdateSetRequest) GetNewSet() *hostsets.HostSet {
|
|
if x != nil {
|
|
return x.NewSet
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnUpdateSetRequest) GetPersisted() *HostCatalogPersisted {
|
|
if x != nil {
|
|
return x.Persisted
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnUpdateSetResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnUpdateSetResponse) Reset() {
|
|
*x = OnUpdateSetResponse{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnUpdateSetResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnUpdateSetResponse) ProtoMessage() {}
|
|
|
|
func (x *OnUpdateSetResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnUpdateSetResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnUpdateSetResponse) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
type OnDeleteSetRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The host catalog that the set belongs to.
|
|
Catalog *hostcatalogs.HostCatalog `protobuf:"bytes,10,opt,name=catalog,proto3" json:"catalog,omitempty"`
|
|
// The host set to delete.
|
|
Set *hostsets.HostSet `protobuf:"bytes,20,opt,name=set,proto3" json:"set,omitempty"`
|
|
// The persisted data for the host catalog that the set belongs to.
|
|
Persisted *HostCatalogPersisted `protobuf:"bytes,30,opt,name=persisted,proto3" json:"persisted,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnDeleteSetRequest) Reset() {
|
|
*x = OnDeleteSetRequest{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnDeleteSetRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnDeleteSetRequest) ProtoMessage() {}
|
|
|
|
func (x *OnDeleteSetRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnDeleteSetRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnDeleteSetRequest) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *OnDeleteSetRequest) GetCatalog() *hostcatalogs.HostCatalog {
|
|
if x != nil {
|
|
return x.Catalog
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnDeleteSetRequest) GetSet() *hostsets.HostSet {
|
|
if x != nil {
|
|
return x.Set
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnDeleteSetRequest) GetPersisted() *HostCatalogPersisted {
|
|
if x != nil {
|
|
return x.Persisted
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnDeleteSetResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnDeleteSetResponse) Reset() {
|
|
*x = OnDeleteSetResponse{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnDeleteSetResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnDeleteSetResponse) ProtoMessage() {}
|
|
|
|
func (x *OnDeleteSetResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OnDeleteSetResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnDeleteSetResponse) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
type ListHostsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The host catalog that the supplied host sets belong to.
|
|
Catalog *hostcatalogs.HostCatalog `protobuf:"bytes,10,opt,name=catalog,proto3" json:"catalog,omitempty"`
|
|
// The host sets to look up hosts for.
|
|
Sets []*hostsets.HostSet `protobuf:"bytes,20,rep,name=sets,proto3" json:"sets,omitempty"`
|
|
// The persisted data for the host catalog that the supplied host
|
|
// sets belong to.
|
|
Persisted *HostCatalogPersisted `protobuf:"bytes,30,opt,name=persisted,proto3" json:"persisted,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListHostsRequest) Reset() {
|
|
*x = ListHostsRequest{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListHostsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListHostsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListHostsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListHostsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListHostsRequest) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *ListHostsRequest) GetCatalog() *hostcatalogs.HostCatalog {
|
|
if x != nil {
|
|
return x.Catalog
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListHostsRequest) GetSets() []*hostsets.HostSet {
|
|
if x != nil {
|
|
return x.Sets
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListHostsRequest) GetPersisted() *HostCatalogPersisted {
|
|
if x != nil {
|
|
return x.Persisted
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListHostsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The hosts to return.
|
|
Hosts []*ListHostsResponseHost `protobuf:"bytes,10,rep,name=hosts,proto3" json:"hosts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListHostsResponse) Reset() {
|
|
*x = ListHostsResponse{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListHostsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListHostsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListHostsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListHostsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListHostsResponse) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *ListHostsResponse) GetHosts() []*ListHostsResponseHost {
|
|
if x != nil {
|
|
return x.Hosts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListHostsResponseHost struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. A stable identifier for this host. This field is used
|
|
// to generate a stable ID for the host within Boundary and is
|
|
// included in audit logs. It should be set to something unique and
|
|
// useful, ie: a compute instance ID.
|
|
ExternalId string `protobuf:"bytes,10,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
|
|
// If supplied, will be set as the external name of the host and will be
|
|
// available on Boundary's host listing and reading API.
|
|
ExternalName string `protobuf:"bytes,70,opt,name=external_name,json=externalName,proto3" json:"external_name,omitempty"`
|
|
// If supplied, will be set as the managed name of the host
|
|
Name string `protobuf:"bytes,20,opt,name=name,proto3" json:"name,omitempty"`
|
|
// If supplied, will be set as the managed description of the host
|
|
Description string `protobuf:"bytes,30,opt,name=description,proto3" json:"description,omitempty"`
|
|
// Required. Any and all known IP addresses for the host.
|
|
IpAddresses []string `protobuf:"bytes,40,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"`
|
|
// Required. Any and all known DNS names for the host.
|
|
DnsNames []string `protobuf:"bytes,50,rep,name=dns_names,json=dnsNames,proto3" json:"dns_names,omitempty"`
|
|
// Required. The host set IDs that match this host, out of the host sets
|
|
// sent in the request.
|
|
SetIds []string `protobuf:"bytes,60,rep,name=set_ids,json=setIds,proto3" json:"set_ids,omitempty"`
|
|
// Optional. Provider-specific metadata that is applicable to this
|
|
// host. Example: host descriptions, tags, alternate network
|
|
// addresses, etc.
|
|
Attributes *structpb.Struct `protobuf:"bytes,100,opt,name=attributes,proto3" json:"attributes,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListHostsResponseHost) Reset() {
|
|
*x = ListHostsResponseHost{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListHostsResponseHost) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListHostsResponseHost) ProtoMessage() {}
|
|
|
|
func (x *ListHostsResponseHost) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListHostsResponseHost.ProtoReflect.Descriptor instead.
|
|
func (*ListHostsResponseHost) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *ListHostsResponseHost) GetExternalId() string {
|
|
if x != nil {
|
|
return x.ExternalId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListHostsResponseHost) GetExternalName() string {
|
|
if x != nil {
|
|
return x.ExternalName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListHostsResponseHost) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListHostsResponseHost) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListHostsResponseHost) GetIpAddresses() []string {
|
|
if x != nil {
|
|
return x.IpAddresses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListHostsResponseHost) GetDnsNames() []string {
|
|
if x != nil {
|
|
return x.DnsNames
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListHostsResponseHost) GetSetIds() []string {
|
|
if x != nil {
|
|
return x.SetIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListHostsResponseHost) GetAttributes() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Attributes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// HostCatalogPersisted represents state persisted between host catalog calls.
|
|
// Its intended purpose is to store authentication data required by the plugin
|
|
// to make calls to its respective cloud API.
|
|
//
|
|
// The secrets stored in this message are encrypted at-rest by Boundary and
|
|
// never returned to the end user.
|
|
//
|
|
// TODO: Add a size limit to this data before we export the plugin SDK.
|
|
type HostCatalogPersisted struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The persisted secrets.
|
|
Secrets *structpb.Struct `protobuf:"bytes,100,opt,name=secrets,proto3" json:"secrets,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HostCatalogPersisted) Reset() {
|
|
*x = HostCatalogPersisted{}
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HostCatalogPersisted) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HostCatalogPersisted) ProtoMessage() {}
|
|
|
|
func (x *HostCatalogPersisted) ProtoReflect() protoreflect.Message {
|
|
mi := &file_plugin_v1_host_plugin_service_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use HostCatalogPersisted.ProtoReflect.Descriptor instead.
|
|
func (*HostCatalogPersisted) Descriptor() ([]byte, []int) {
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *HostCatalogPersisted) GetSecrets() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Secrets
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_plugin_v1_host_plugin_service_proto protoreflect.FileDescriptor
|
|
|
|
const file_plugin_v1_host_plugin_service_proto_rawDesc = "" +
|
|
"\n" +
|
|
"#plugin/v1/host_plugin_service.proto\x12\tplugin.v1\x1a;controller/api/resources/hostcatalogs/v1/host_catalog.proto\x1a3controller/api/resources/hostsets/v1/host_set.proto\x1a0controller/api/resources/plugins/v1/plugin.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x9f\x01\n" +
|
|
"\x1bNormalizeCatalogDataRequest\x127\n" +
|
|
"\n" +
|
|
"attributes\x18d \x01(\v2\x17.google.protobuf.StructR\n" +
|
|
"attributes\x12G\n" +
|
|
"\x06plugin\x18n \x01(\v2/.controller.api.resources.plugins.v1.PluginInfoR\x06plugin\"W\n" +
|
|
"\x1cNormalizeCatalogDataResponse\x127\n" +
|
|
"\n" +
|
|
"attributes\x18d \x01(\v2\x17.google.protobuf.StructR\n" +
|
|
"attributes\"i\n" +
|
|
"\x16OnCreateCatalogRequest\x12O\n" +
|
|
"\acatalog\x18\n" +
|
|
" \x01(\v25.controller.api.resources.hostcatalogs.v1.HostCatalogR\acatalog\"X\n" +
|
|
"\x17OnCreateCatalogResponse\x12=\n" +
|
|
"\tpersisted\x18\n" +
|
|
" \x01(\v2\x1f.plugin.v1.HostCatalogPersistedR\tpersisted\"\x8f\x02\n" +
|
|
"\x16OnUpdateCatalogRequest\x12^\n" +
|
|
"\x0fcurrent_catalog\x18\n" +
|
|
" \x01(\v25.controller.api.resources.hostcatalogs.v1.HostCatalogR\x0ecurrentCatalog\x12V\n" +
|
|
"\vnew_catalog\x18\x14 \x01(\v25.controller.api.resources.hostcatalogs.v1.HostCatalogR\n" +
|
|
"newCatalog\x12=\n" +
|
|
"\tpersisted\x18\x1e \x01(\v2\x1f.plugin.v1.HostCatalogPersistedR\tpersisted\"X\n" +
|
|
"\x17OnUpdateCatalogResponse\x12=\n" +
|
|
"\tpersisted\x18\n" +
|
|
" \x01(\v2\x1f.plugin.v1.HostCatalogPersistedR\tpersisted\"\xeb\x01\n" +
|
|
"\x16OnDeleteCatalogRequest\x12O\n" +
|
|
"\acatalog\x18\n" +
|
|
" \x01(\v25.controller.api.resources.hostcatalogs.v1.HostCatalogR\acatalog\x12A\n" +
|
|
"\x04sets\x18\x14 \x03(\v2-.controller.api.resources.hostsets.v1.HostSetR\x04sets\x12=\n" +
|
|
"\tpersisted\x18\x1e \x01(\v2\x1f.plugin.v1.HostCatalogPersistedR\tpersisted\"\x19\n" +
|
|
"\x17OnDeleteCatalogResponse\"\x9b\x01\n" +
|
|
"\x17NormalizeSetDataRequest\x127\n" +
|
|
"\n" +
|
|
"attributes\x18d \x01(\v2\x17.google.protobuf.StructR\n" +
|
|
"attributes\x12G\n" +
|
|
"\x06plugin\x18n \x01(\v2/.controller.api.resources.plugins.v1.PluginInfoR\x06plugin\"S\n" +
|
|
"\x18NormalizeSetDataResponse\x127\n" +
|
|
"\n" +
|
|
"attributes\x18d \x01(\v2\x17.google.protobuf.StructR\n" +
|
|
"attributes\"\xe5\x01\n" +
|
|
"\x12OnCreateSetRequest\x12O\n" +
|
|
"\acatalog\x18\n" +
|
|
" \x01(\v25.controller.api.resources.hostcatalogs.v1.HostCatalogR\acatalog\x12?\n" +
|
|
"\x03set\x18\x14 \x01(\v2-.controller.api.resources.hostsets.v1.HostSetR\x03set\x12=\n" +
|
|
"\tpersisted\x18\x1e \x01(\v2\x1f.plugin.v1.HostCatalogPersistedR\tpersisted\"\x15\n" +
|
|
"\x13OnCreateSetResponse\"\xbc\x02\n" +
|
|
"\x12OnUpdateSetRequest\x12O\n" +
|
|
"\acatalog\x18\n" +
|
|
" \x01(\v25.controller.api.resources.hostcatalogs.v1.HostCatalogR\acatalog\x12N\n" +
|
|
"\vcurrent_set\x18\x14 \x01(\v2-.controller.api.resources.hostsets.v1.HostSetR\n" +
|
|
"currentSet\x12F\n" +
|
|
"\anew_set\x18\x1e \x01(\v2-.controller.api.resources.hostsets.v1.HostSetR\x06newSet\x12=\n" +
|
|
"\tpersisted\x18( \x01(\v2\x1f.plugin.v1.HostCatalogPersistedR\tpersisted\"\x15\n" +
|
|
"\x13OnUpdateSetResponse\"\xe5\x01\n" +
|
|
"\x12OnDeleteSetRequest\x12O\n" +
|
|
"\acatalog\x18\n" +
|
|
" \x01(\v25.controller.api.resources.hostcatalogs.v1.HostCatalogR\acatalog\x12?\n" +
|
|
"\x03set\x18\x14 \x01(\v2-.controller.api.resources.hostsets.v1.HostSetR\x03set\x12=\n" +
|
|
"\tpersisted\x18\x1e \x01(\v2\x1f.plugin.v1.HostCatalogPersistedR\tpersisted\"\x15\n" +
|
|
"\x13OnDeleteSetResponse\"\xe5\x01\n" +
|
|
"\x10ListHostsRequest\x12O\n" +
|
|
"\acatalog\x18\n" +
|
|
" \x01(\v25.controller.api.resources.hostcatalogs.v1.HostCatalogR\acatalog\x12A\n" +
|
|
"\x04sets\x18\x14 \x03(\v2-.controller.api.resources.hostsets.v1.HostSetR\x04sets\x12=\n" +
|
|
"\tpersisted\x18\x1e \x01(\v2\x1f.plugin.v1.HostCatalogPersistedR\tpersisted\"K\n" +
|
|
"\x11ListHostsResponse\x126\n" +
|
|
"\x05hosts\x18\n" +
|
|
" \x03(\v2 .plugin.v1.ListHostsResponseHostR\x05hosts\"\xa5\x02\n" +
|
|
"\x15ListHostsResponseHost\x12\x1f\n" +
|
|
"\vexternal_id\x18\n" +
|
|
" \x01(\tR\n" +
|
|
"externalId\x12#\n" +
|
|
"\rexternal_name\x18F \x01(\tR\fexternalName\x12\x12\n" +
|
|
"\x04name\x18\x14 \x01(\tR\x04name\x12 \n" +
|
|
"\vdescription\x18\x1e \x01(\tR\vdescription\x12!\n" +
|
|
"\fip_addresses\x18( \x03(\tR\vipAddresses\x12\x1b\n" +
|
|
"\tdns_names\x182 \x03(\tR\bdnsNames\x12\x17\n" +
|
|
"\aset_ids\x18< \x03(\tR\x06setIds\x127\n" +
|
|
"\n" +
|
|
"attributes\x18d \x01(\v2\x17.google.protobuf.StructR\n" +
|
|
"attributes\"I\n" +
|
|
"\x14HostCatalogPersisted\x121\n" +
|
|
"\asecrets\x18d \x01(\v2\x17.google.protobuf.StructR\asecrets2\x99\x06\n" +
|
|
"\x11HostPluginService\x12g\n" +
|
|
"\x14NormalizeCatalogData\x12&.plugin.v1.NormalizeCatalogDataRequest\x1a'.plugin.v1.NormalizeCatalogDataResponse\x12X\n" +
|
|
"\x0fOnCreateCatalog\x12!.plugin.v1.OnCreateCatalogRequest\x1a\".plugin.v1.OnCreateCatalogResponse\x12X\n" +
|
|
"\x0fOnUpdateCatalog\x12!.plugin.v1.OnUpdateCatalogRequest\x1a\".plugin.v1.OnUpdateCatalogResponse\x12X\n" +
|
|
"\x0fOnDeleteCatalog\x12!.plugin.v1.OnDeleteCatalogRequest\x1a\".plugin.v1.OnDeleteCatalogResponse\x12[\n" +
|
|
"\x10NormalizeSetData\x12\".plugin.v1.NormalizeSetDataRequest\x1a#.plugin.v1.NormalizeSetDataResponse\x12L\n" +
|
|
"\vOnCreateSet\x12\x1d.plugin.v1.OnCreateSetRequest\x1a\x1e.plugin.v1.OnCreateSetResponse\x12L\n" +
|
|
"\vOnUpdateSet\x12\x1d.plugin.v1.OnUpdateSetRequest\x1a\x1e.plugin.v1.OnUpdateSetResponse\x12L\n" +
|
|
"\vOnDeleteSet\x12\x1d.plugin.v1.OnDeleteSetRequest\x1a\x1e.plugin.v1.OnDeleteSetResponse\x12F\n" +
|
|
"\tListHosts\x12\x1b.plugin.v1.ListHostsRequest\x1a\x1c.plugin.v1.ListHostsResponseB5Z3github.com/hashicorp/boundary/sdk/pbs/plugin;pluginb\x06proto3"
|
|
|
|
var (
|
|
file_plugin_v1_host_plugin_service_proto_rawDescOnce sync.Once
|
|
file_plugin_v1_host_plugin_service_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_plugin_v1_host_plugin_service_proto_rawDescGZIP() []byte {
|
|
file_plugin_v1_host_plugin_service_proto_rawDescOnce.Do(func() {
|
|
file_plugin_v1_host_plugin_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_plugin_v1_host_plugin_service_proto_rawDesc), len(file_plugin_v1_host_plugin_service_proto_rawDesc)))
|
|
})
|
|
return file_plugin_v1_host_plugin_service_proto_rawDescData
|
|
}
|
|
|
|
var file_plugin_v1_host_plugin_service_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
|
|
var file_plugin_v1_host_plugin_service_proto_goTypes = []any{
|
|
(*NormalizeCatalogDataRequest)(nil), // 0: plugin.v1.NormalizeCatalogDataRequest
|
|
(*NormalizeCatalogDataResponse)(nil), // 1: plugin.v1.NormalizeCatalogDataResponse
|
|
(*OnCreateCatalogRequest)(nil), // 2: plugin.v1.OnCreateCatalogRequest
|
|
(*OnCreateCatalogResponse)(nil), // 3: plugin.v1.OnCreateCatalogResponse
|
|
(*OnUpdateCatalogRequest)(nil), // 4: plugin.v1.OnUpdateCatalogRequest
|
|
(*OnUpdateCatalogResponse)(nil), // 5: plugin.v1.OnUpdateCatalogResponse
|
|
(*OnDeleteCatalogRequest)(nil), // 6: plugin.v1.OnDeleteCatalogRequest
|
|
(*OnDeleteCatalogResponse)(nil), // 7: plugin.v1.OnDeleteCatalogResponse
|
|
(*NormalizeSetDataRequest)(nil), // 8: plugin.v1.NormalizeSetDataRequest
|
|
(*NormalizeSetDataResponse)(nil), // 9: plugin.v1.NormalizeSetDataResponse
|
|
(*OnCreateSetRequest)(nil), // 10: plugin.v1.OnCreateSetRequest
|
|
(*OnCreateSetResponse)(nil), // 11: plugin.v1.OnCreateSetResponse
|
|
(*OnUpdateSetRequest)(nil), // 12: plugin.v1.OnUpdateSetRequest
|
|
(*OnUpdateSetResponse)(nil), // 13: plugin.v1.OnUpdateSetResponse
|
|
(*OnDeleteSetRequest)(nil), // 14: plugin.v1.OnDeleteSetRequest
|
|
(*OnDeleteSetResponse)(nil), // 15: plugin.v1.OnDeleteSetResponse
|
|
(*ListHostsRequest)(nil), // 16: plugin.v1.ListHostsRequest
|
|
(*ListHostsResponse)(nil), // 17: plugin.v1.ListHostsResponse
|
|
(*ListHostsResponseHost)(nil), // 18: plugin.v1.ListHostsResponseHost
|
|
(*HostCatalogPersisted)(nil), // 19: plugin.v1.HostCatalogPersisted
|
|
(*structpb.Struct)(nil), // 20: google.protobuf.Struct
|
|
(*plugins.PluginInfo)(nil), // 21: controller.api.resources.plugins.v1.PluginInfo
|
|
(*hostcatalogs.HostCatalog)(nil), // 22: controller.api.resources.hostcatalogs.v1.HostCatalog
|
|
(*hostsets.HostSet)(nil), // 23: controller.api.resources.hostsets.v1.HostSet
|
|
}
|
|
var file_plugin_v1_host_plugin_service_proto_depIdxs = []int32{
|
|
20, // 0: plugin.v1.NormalizeCatalogDataRequest.attributes:type_name -> google.protobuf.Struct
|
|
21, // 1: plugin.v1.NormalizeCatalogDataRequest.plugin:type_name -> controller.api.resources.plugins.v1.PluginInfo
|
|
20, // 2: plugin.v1.NormalizeCatalogDataResponse.attributes:type_name -> google.protobuf.Struct
|
|
22, // 3: plugin.v1.OnCreateCatalogRequest.catalog:type_name -> controller.api.resources.hostcatalogs.v1.HostCatalog
|
|
19, // 4: plugin.v1.OnCreateCatalogResponse.persisted:type_name -> plugin.v1.HostCatalogPersisted
|
|
22, // 5: plugin.v1.OnUpdateCatalogRequest.current_catalog:type_name -> controller.api.resources.hostcatalogs.v1.HostCatalog
|
|
22, // 6: plugin.v1.OnUpdateCatalogRequest.new_catalog:type_name -> controller.api.resources.hostcatalogs.v1.HostCatalog
|
|
19, // 7: plugin.v1.OnUpdateCatalogRequest.persisted:type_name -> plugin.v1.HostCatalogPersisted
|
|
19, // 8: plugin.v1.OnUpdateCatalogResponse.persisted:type_name -> plugin.v1.HostCatalogPersisted
|
|
22, // 9: plugin.v1.OnDeleteCatalogRequest.catalog:type_name -> controller.api.resources.hostcatalogs.v1.HostCatalog
|
|
23, // 10: plugin.v1.OnDeleteCatalogRequest.sets:type_name -> controller.api.resources.hostsets.v1.HostSet
|
|
19, // 11: plugin.v1.OnDeleteCatalogRequest.persisted:type_name -> plugin.v1.HostCatalogPersisted
|
|
20, // 12: plugin.v1.NormalizeSetDataRequest.attributes:type_name -> google.protobuf.Struct
|
|
21, // 13: plugin.v1.NormalizeSetDataRequest.plugin:type_name -> controller.api.resources.plugins.v1.PluginInfo
|
|
20, // 14: plugin.v1.NormalizeSetDataResponse.attributes:type_name -> google.protobuf.Struct
|
|
22, // 15: plugin.v1.OnCreateSetRequest.catalog:type_name -> controller.api.resources.hostcatalogs.v1.HostCatalog
|
|
23, // 16: plugin.v1.OnCreateSetRequest.set:type_name -> controller.api.resources.hostsets.v1.HostSet
|
|
19, // 17: plugin.v1.OnCreateSetRequest.persisted:type_name -> plugin.v1.HostCatalogPersisted
|
|
22, // 18: plugin.v1.OnUpdateSetRequest.catalog:type_name -> controller.api.resources.hostcatalogs.v1.HostCatalog
|
|
23, // 19: plugin.v1.OnUpdateSetRequest.current_set:type_name -> controller.api.resources.hostsets.v1.HostSet
|
|
23, // 20: plugin.v1.OnUpdateSetRequest.new_set:type_name -> controller.api.resources.hostsets.v1.HostSet
|
|
19, // 21: plugin.v1.OnUpdateSetRequest.persisted:type_name -> plugin.v1.HostCatalogPersisted
|
|
22, // 22: plugin.v1.OnDeleteSetRequest.catalog:type_name -> controller.api.resources.hostcatalogs.v1.HostCatalog
|
|
23, // 23: plugin.v1.OnDeleteSetRequest.set:type_name -> controller.api.resources.hostsets.v1.HostSet
|
|
19, // 24: plugin.v1.OnDeleteSetRequest.persisted:type_name -> plugin.v1.HostCatalogPersisted
|
|
22, // 25: plugin.v1.ListHostsRequest.catalog:type_name -> controller.api.resources.hostcatalogs.v1.HostCatalog
|
|
23, // 26: plugin.v1.ListHostsRequest.sets:type_name -> controller.api.resources.hostsets.v1.HostSet
|
|
19, // 27: plugin.v1.ListHostsRequest.persisted:type_name -> plugin.v1.HostCatalogPersisted
|
|
18, // 28: plugin.v1.ListHostsResponse.hosts:type_name -> plugin.v1.ListHostsResponseHost
|
|
20, // 29: plugin.v1.ListHostsResponseHost.attributes:type_name -> google.protobuf.Struct
|
|
20, // 30: plugin.v1.HostCatalogPersisted.secrets:type_name -> google.protobuf.Struct
|
|
0, // 31: plugin.v1.HostPluginService.NormalizeCatalogData:input_type -> plugin.v1.NormalizeCatalogDataRequest
|
|
2, // 32: plugin.v1.HostPluginService.OnCreateCatalog:input_type -> plugin.v1.OnCreateCatalogRequest
|
|
4, // 33: plugin.v1.HostPluginService.OnUpdateCatalog:input_type -> plugin.v1.OnUpdateCatalogRequest
|
|
6, // 34: plugin.v1.HostPluginService.OnDeleteCatalog:input_type -> plugin.v1.OnDeleteCatalogRequest
|
|
8, // 35: plugin.v1.HostPluginService.NormalizeSetData:input_type -> plugin.v1.NormalizeSetDataRequest
|
|
10, // 36: plugin.v1.HostPluginService.OnCreateSet:input_type -> plugin.v1.OnCreateSetRequest
|
|
12, // 37: plugin.v1.HostPluginService.OnUpdateSet:input_type -> plugin.v1.OnUpdateSetRequest
|
|
14, // 38: plugin.v1.HostPluginService.OnDeleteSet:input_type -> plugin.v1.OnDeleteSetRequest
|
|
16, // 39: plugin.v1.HostPluginService.ListHosts:input_type -> plugin.v1.ListHostsRequest
|
|
1, // 40: plugin.v1.HostPluginService.NormalizeCatalogData:output_type -> plugin.v1.NormalizeCatalogDataResponse
|
|
3, // 41: plugin.v1.HostPluginService.OnCreateCatalog:output_type -> plugin.v1.OnCreateCatalogResponse
|
|
5, // 42: plugin.v1.HostPluginService.OnUpdateCatalog:output_type -> plugin.v1.OnUpdateCatalogResponse
|
|
7, // 43: plugin.v1.HostPluginService.OnDeleteCatalog:output_type -> plugin.v1.OnDeleteCatalogResponse
|
|
9, // 44: plugin.v1.HostPluginService.NormalizeSetData:output_type -> plugin.v1.NormalizeSetDataResponse
|
|
11, // 45: plugin.v1.HostPluginService.OnCreateSet:output_type -> plugin.v1.OnCreateSetResponse
|
|
13, // 46: plugin.v1.HostPluginService.OnUpdateSet:output_type -> plugin.v1.OnUpdateSetResponse
|
|
15, // 47: plugin.v1.HostPluginService.OnDeleteSet:output_type -> plugin.v1.OnDeleteSetResponse
|
|
17, // 48: plugin.v1.HostPluginService.ListHosts:output_type -> plugin.v1.ListHostsResponse
|
|
40, // [40:49] is the sub-list for method output_type
|
|
31, // [31:40] is the sub-list for method input_type
|
|
31, // [31:31] is the sub-list for extension type_name
|
|
31, // [31:31] is the sub-list for extension extendee
|
|
0, // [0:31] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_plugin_v1_host_plugin_service_proto_init() }
|
|
func file_plugin_v1_host_plugin_service_proto_init() {
|
|
if File_plugin_v1_host_plugin_service_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_plugin_v1_host_plugin_service_proto_rawDesc), len(file_plugin_v1_host_plugin_service_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 20,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_plugin_v1_host_plugin_service_proto_goTypes,
|
|
DependencyIndexes: file_plugin_v1_host_plugin_service_proto_depIdxs,
|
|
MessageInfos: file_plugin_v1_host_plugin_service_proto_msgTypes,
|
|
}.Build()
|
|
File_plugin_v1_host_plugin_service_proto = out.File
|
|
file_plugin_v1_host_plugin_service_proto_goTypes = nil
|
|
file_plugin_v1_host_plugin_service_proto_depIdxs = nil
|
|
}
|