Files
threshold/internal/target/store/target.pb.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

777 lines
27 KiB
Go
Raw Normal View History

2020-08-26 13:58:46 -04:00
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
2023-02-02 17:15:17 -08:00
2020-08-26 13:58:46 -04:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc (unknown)
2020-08-26 13:58:46 -04:00
// source: controller/storage/target/store/v1/target.proto
package store
import (
timestamp "github.com/hashicorp/boundary/internal/db/timestamp"
_ "github.com/hashicorp/boundary/sdk/pbs/controller/protooptions"
2020-08-26 13:58:46 -04:00
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
2021-01-08 10:32:02 -05:00
reflect "reflect"
sync "sync"
unsafe "unsafe"
2020-08-26 13:58:46 -04:00
)
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)
)
// TargetView is a view that contains all the target subtypes
type TargetView struct {
2025-02-19 09:14:41 -08:00
state protoimpl.MessageState `protogen:"open.v1"`
2020-08-26 13:58:46 -04:00
// public_id is used to access the Target via an API
// @inject_tag: gorm:"primary_key"
PublicId string `protobuf:"bytes,10,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty" gorm:"primary_key"`
2022-07-20 16:24:46 -07:00
// project id for the Target
2020-08-26 13:58:46 -04:00
// @inject_tag: `gorm:"default:null"`
2022-07-20 16:24:46 -07:00
ProjectId string `protobuf:"bytes,20,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty" gorm:"default:null"`
2020-08-26 13:58:46 -04:00
// name is the optional friendly name used to
// access the Target via an API
// @inject_tag: `gorm:"default:null"`
Name string `protobuf:"bytes,30,opt,name=name,proto3" json:"name,omitempty" gorm:"default:null"`
// description of the Target
// @inject_tag: `gorm:"default:null"`
Description string `protobuf:"bytes,40,opt,name=description,proto3" json:"description,omitempty" gorm:"default:null"`
// create_time from the RDBMS
// @inject_tag: `gorm:"default:current_timestamp"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,50,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
// update_time from the RDBMS
// @inject_tag: `gorm:"default:current_timestamp"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,60,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" gorm:"default:current_timestamp"`
// version allows optimistic locking of the Target when modifying the
// Target
// @inject_tag: `gorm:"default:null"`
Version uint32 `protobuf:"varint,70,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
// type represents the type of the Target
// @inject_tag: `gorm:"default:null"`
Type string `protobuf:"bytes,80,opt,name=type,proto3" json:"type,omitempty" gorm:"default:null"`
// default port of the Target
// @inject_tag: `gorm:"default:null"`
DefaultPort uint32 `protobuf:"varint,90,opt,name=default_port,json=defaultPort,proto3" json:"default_port,omitempty" gorm:"default:null"`
// Default port for the listening client to use when establishing a session
// @inject_tag: `gorm:"default:null"`
DefaultClientPort uint32 `protobuf:"varint,95,opt,name=default_client_port,json=defaultClientPort,proto3" json:"default_client_port,omitempty" gorm:"default:null"`
// Maximum total lifetime of a created session, in seconds
// @inject_tag: `gorm:"default:null"`
SessionMaxSeconds uint32 `protobuf:"varint,100,opt,name=session_max_seconds,json=sessionMaxSeconds,proto3" json:"session_max_seconds,omitempty" gorm:"default:null"`
// Maximum number of connections in a session
// @inject_tag: `gorm:"default:null"`
SessionConnectionLimit int32 `protobuf:"varint,110,opt,name=session_connection_limit,json=sessionConnectionLimit,proto3" json:"session_connection_limit,omitempty" gorm:"default:null"`
2021-01-21 16:27:20 -05:00
// A boolean expression that allows filtering the workers that can handle a session
// @inject_tag: `gorm:"default:null"`
WorkerFilter string `protobuf:"bytes,120,opt,name=worker_filter,json=workerFilter,proto3" json:"worker_filter,omitempty" gorm:"default:null"`
// @inject_tag: `gorm:"default:null"`
EgressWorkerFilter string `protobuf:"bytes,130,opt,name=egress_worker_filter,json=egressWorkerFilter,proto3" json:"egress_worker_filter,omitempty" gorm:"default:null"`
// @inject_tag: `gorm:"default:null"`
IngressWorkerFilter string `protobuf:"bytes,140,opt,name=ingress_worker_filter,json=ingressWorkerFilter,proto3" json:"ingress_worker_filter,omitempty" gorm:"default:null"`
// A boolean indicating if session recording has been enabled
// @inject_tag: `gorm:"default:null"`
EnableSessionRecording bool `protobuf:"varint,150,opt,name=enable_session_recording,json=enableSessionRecording,proto3" json:"enable_session_recording,omitempty" gorm:"default:null"`
// PublicId of the storage bucket associated with the target
// @inject_tag: `gorm:"default:null"`
StorageBucketId string `protobuf:"bytes,160,opt,name=storage_bucket_id,json=storageBucketId,proto3" json:"storage_bucket_id,omitempty" gorm:"default:null"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
2020-08-26 13:58:46 -04:00
}
func (x *TargetView) Reset() {
*x = TargetView{}
2025-02-19 09:14:41 -08:00
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
2020-08-26 13:58:46 -04:00
}
func (x *TargetView) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TargetView) ProtoMessage() {}
func (x *TargetView) ProtoReflect() protoreflect.Message {
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[0]
2025-02-19 09:14:41 -08:00
if x != nil {
2020-08-26 13:58:46 -04:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TargetView.ProtoReflect.Descriptor instead.
func (*TargetView) Descriptor() ([]byte, []int) {
return file_controller_storage_target_store_v1_target_proto_rawDescGZIP(), []int{0}
}
func (x *TargetView) GetPublicId() string {
if x != nil {
return x.PublicId
}
return ""
}
2022-07-20 16:24:46 -07:00
func (x *TargetView) GetProjectId() string {
2020-08-26 13:58:46 -04:00
if x != nil {
2022-07-20 16:24:46 -07:00
return x.ProjectId
2020-08-26 13:58:46 -04:00
}
return ""
}
func (x *TargetView) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TargetView) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *TargetView) GetCreateTime() *timestamp.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *TargetView) GetUpdateTime() *timestamp.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *TargetView) GetVersion() uint32 {
if x != nil {
return x.Version
}
return 0
}
func (x *TargetView) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *TargetView) GetDefaultPort() uint32 {
if x != nil {
return x.DefaultPort
}
return 0
}
func (x *TargetView) GetDefaultClientPort() uint32 {
if x != nil {
return x.DefaultClientPort
}
return 0
}
func (x *TargetView) GetSessionMaxSeconds() uint32 {
if x != nil {
return x.SessionMaxSeconds
}
return 0
}
func (x *TargetView) GetSessionConnectionLimit() int32 {
if x != nil {
return x.SessionConnectionLimit
}
return 0
}
2021-01-21 16:27:20 -05:00
func (x *TargetView) GetWorkerFilter() string {
if x != nil {
return x.WorkerFilter
}
return ""
}
func (x *TargetView) GetEgressWorkerFilter() string {
if x != nil {
return x.EgressWorkerFilter
}
return ""
}
func (x *TargetView) GetIngressWorkerFilter() string {
if x != nil {
return x.IngressWorkerFilter
}
return ""
}
func (x *TargetView) GetEnableSessionRecording() bool {
if x != nil {
return x.EnableSessionRecording
}
return false
}
func (x *TargetView) GetStorageBucketId() string {
if x != nil {
return x.StorageBucketId
}
return ""
}
2020-08-26 13:58:46 -04:00
type TargetHostSet struct {
2025-02-19 09:14:41 -08:00
state protoimpl.MessageState `protogen:"open.v1"`
2020-08-26 13:58:46 -04:00
// target_id of the TargetHostSet
// @inject_tag: gorm:"primary_key"
TargetId string `protobuf:"bytes,10,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" gorm:"primary_key"`
// host_set_id of the TargetHostSet
// @inject_tag: gorm:"primary_key"
HostSetId string `protobuf:"bytes,20,opt,name=host_set_id,json=hostSetId,proto3" json:"host_set_id,omitempty" gorm:"primary_key"`
// create_time from the RDBMS
// @inject_tag: `gorm:"default:current_timestamp"`
2025-02-19 09:14:41 -08:00
CreateTime *timestamp.Timestamp `protobuf:"bytes,30,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
2020-08-26 13:58:46 -04:00
}
func (x *TargetHostSet) Reset() {
*x = TargetHostSet{}
2025-02-19 09:14:41 -08:00
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
2020-08-26 13:58:46 -04:00
}
func (x *TargetHostSet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TargetHostSet) ProtoMessage() {}
func (x *TargetHostSet) ProtoReflect() protoreflect.Message {
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[1]
2025-02-19 09:14:41 -08:00
if x != nil {
2020-08-26 13:58:46 -04:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TargetHostSet.ProtoReflect.Descriptor instead.
func (*TargetHostSet) Descriptor() ([]byte, []int) {
return file_controller_storage_target_store_v1_target_proto_rawDescGZIP(), []int{1}
}
func (x *TargetHostSet) GetTargetId() string {
if x != nil {
return x.TargetId
}
return ""
}
func (x *TargetHostSet) GetHostSetId() string {
if x != nil {
return x.HostSetId
}
return ""
}
func (x *TargetHostSet) GetCreateTime() *timestamp.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
type TargetAddress struct {
2025-02-19 09:14:41 -08:00
state protoimpl.MessageState `protogen:"open.v1"`
// target_id of the Target
// @inject_tag: gorm:"primary_key"
TargetId string `protobuf:"bytes,10,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" gorm:"primary_key"`
// address associated to the Target
// @inject_tag: `gorm:"not_null"`
2025-02-19 09:14:41 -08:00
Address string `protobuf:"bytes,20,opt,name=address,proto3" json:"address,omitempty" gorm:"not_null"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TargetAddress) Reset() {
*x = TargetAddress{}
2025-02-19 09:14:41 -08:00
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TargetAddress) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TargetAddress) ProtoMessage() {}
func (x *TargetAddress) ProtoReflect() protoreflect.Message {
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[2]
2025-02-19 09:14:41 -08:00
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 TargetAddress.ProtoReflect.Descriptor instead.
func (*TargetAddress) Descriptor() ([]byte, []int) {
return file_controller_storage_target_store_v1_target_proto_rawDescGZIP(), []int{2}
}
func (x *TargetAddress) GetTargetId() string {
if x != nil {
return x.TargetId
}
return ""
}
func (x *TargetAddress) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
type CredentialLibrary struct {
2025-02-19 09:14:41 -08:00
state protoimpl.MessageState `protogen:"open.v1"`
// target_id of the Target
// @inject_tag: gorm:"primary_key"
TargetId string `protobuf:"bytes,10,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" gorm:"primary_key"`
// credential_library_id of the CredentialLibrary
// @inject_tag: gorm:"primary_key"
CredentialLibraryId string `protobuf:"bytes,20,opt,name=credential_library_id,json=credentialLibraryId,proto3" json:"credential_library_id,omitempty" gorm:"primary_key"`
// credential_purpose is the purpose of the credential for the target
// @inject_tag: gorm:"primary_key"
CredentialPurpose string `protobuf:"bytes,30,opt,name=credential_purpose,json=credentialPurpose,proto3" json:"credential_purpose,omitempty" gorm:"primary_key"`
// create_time from the RDBMS
// @inject_tag: `gorm:"default:current_timestamp"`
2025-02-19 09:14:41 -08:00
CreateTime *timestamp.Timestamp `protobuf:"bytes,40,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CredentialLibrary) Reset() {
*x = CredentialLibrary{}
2025-02-19 09:14:41 -08:00
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CredentialLibrary) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CredentialLibrary) ProtoMessage() {}
func (x *CredentialLibrary) ProtoReflect() protoreflect.Message {
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[3]
2025-02-19 09:14:41 -08:00
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 CredentialLibrary.ProtoReflect.Descriptor instead.
func (*CredentialLibrary) Descriptor() ([]byte, []int) {
return file_controller_storage_target_store_v1_target_proto_rawDescGZIP(), []int{3}
}
func (x *CredentialLibrary) GetTargetId() string {
if x != nil {
return x.TargetId
}
return ""
}
func (x *CredentialLibrary) GetCredentialLibraryId() string {
if x != nil {
return x.CredentialLibraryId
}
return ""
}
func (x *CredentialLibrary) GetCredentialPurpose() string {
if x != nil {
return x.CredentialPurpose
}
return ""
}
func (x *CredentialLibrary) GetCreateTime() *timestamp.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
type StaticCredential struct {
2025-02-19 09:14:41 -08:00
state protoimpl.MessageState `protogen:"open.v1"`
// target_id of the Target
// @inject_tag: gorm:"primary_key"
TargetId string `protobuf:"bytes,10,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" gorm:"primary_key"`
// credential_id of the static Credential
// @inject_tag: `gorm:"column:credential_static_id;primary_key"
CredentialId string `protobuf:"bytes,20,opt,name=credential_id,json=credentialId,proto3" json:"credential_id,omitempty" gorm:"column:credential_static_id;primary_key"`
// credential_purpose is the purpose of the credential for the target
// @inject_tag: gorm:"primary_key"
CredentialPurpose string `protobuf:"bytes,30,opt,name=credential_purpose,json=credentialPurpose,proto3" json:"credential_purpose,omitempty" gorm:"primary_key"`
// create_time from the RDBMS
// @inject_tag: `gorm:"default:current_timestamp"`
2025-02-19 09:14:41 -08:00
CreateTime *timestamp.Timestamp `protobuf:"bytes,40,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StaticCredential) Reset() {
*x = StaticCredential{}
2025-02-19 09:14:41 -08:00
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StaticCredential) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StaticCredential) ProtoMessage() {}
func (x *StaticCredential) ProtoReflect() protoreflect.Message {
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[4]
2025-02-19 09:14:41 -08:00
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 StaticCredential.ProtoReflect.Descriptor instead.
func (*StaticCredential) Descriptor() ([]byte, []int) {
return file_controller_storage_target_store_v1_target_proto_rawDescGZIP(), []int{4}
}
func (x *StaticCredential) GetTargetId() string {
if x != nil {
return x.TargetId
}
return ""
}
func (x *StaticCredential) GetCredentialId() string {
if x != nil {
return x.CredentialId
}
return ""
}
func (x *StaticCredential) GetCredentialPurpose() string {
if x != nil {
return x.CredentialPurpose
}
return ""
}
func (x *StaticCredential) GetCreateTime() *timestamp.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
type CredentialSource struct {
2025-02-19 09:14:41 -08:00
state protoimpl.MessageState `protogen:"open.v1"`
// target_id of the Target
// @inject_tag: gorm:"primary_key"
TargetId string `protobuf:"bytes,10,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" gorm:"primary_key"`
// credential_source_id of the Credential Library or static Credential
// @inject_tag: gorm:"primary_key"
CredentialSourceId string `protobuf:"bytes,20,opt,name=credential_source_id,json=credentialSourceId,proto3" json:"credential_source_id,omitempty" gorm:"primary_key"`
// credential_purpose is the purpose of the credential for the target
// @inject_tag: gorm:"primary_key"
CredentialPurpose string `protobuf:"bytes,30,opt,name=credential_purpose,json=credentialPurpose,proto3" json:"credential_purpose,omitempty" gorm:"primary_key"`
// create_time from the RDBMS
// @inject_tag: `gorm:"default:current_timestamp"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,40,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
// type of credential source (library or static)
// @inject_tag: `gorm:"not_null"`
2025-02-19 09:14:41 -08:00
Type string `protobuf:"bytes,50,opt,name=type,proto3" json:"type,omitempty" gorm:"not_null"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CredentialSource) Reset() {
*x = CredentialSource{}
2025-02-19 09:14:41 -08:00
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CredentialSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CredentialSource) ProtoMessage() {}
func (x *CredentialSource) ProtoReflect() protoreflect.Message {
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[5]
2025-02-19 09:14:41 -08:00
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 CredentialSource.ProtoReflect.Descriptor instead.
func (*CredentialSource) Descriptor() ([]byte, []int) {
return file_controller_storage_target_store_v1_target_proto_rawDescGZIP(), []int{5}
}
func (x *CredentialSource) GetTargetId() string {
if x != nil {
return x.TargetId
}
return ""
}
func (x *CredentialSource) GetCredentialSourceId() string {
if x != nil {
return x.CredentialSourceId
}
return ""
}
func (x *CredentialSource) GetCredentialPurpose() string {
if x != nil {
return x.CredentialPurpose
}
return ""
}
func (x *CredentialSource) GetCreateTime() *timestamp.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *CredentialSource) GetType() string {
if x != nil {
return x.Type
}
return ""
}
type CredentialSourceView struct {
2025-02-19 09:14:41 -08:00
state protoimpl.MessageState `protogen:"open.v1"`
// public_id of the Credential source
// @inject_tag: gorm:"primary_key"
PublicId string `protobuf:"bytes,10,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty" gorm:"primary_key"`
// type of credential source (library or static)
// @inject_tag: `gorm:"not_null"`
2025-02-19 09:14:41 -08:00
Type string `protobuf:"bytes,20,opt,name=type,proto3" json:"type,omitempty" gorm:"not_null"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CredentialSourceView) Reset() {
*x = CredentialSourceView{}
2025-02-19 09:14:41 -08:00
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CredentialSourceView) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CredentialSourceView) ProtoMessage() {}
func (x *CredentialSourceView) ProtoReflect() protoreflect.Message {
mi := &file_controller_storage_target_store_v1_target_proto_msgTypes[6]
2025-02-19 09:14:41 -08:00
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 CredentialSourceView.ProtoReflect.Descriptor instead.
func (*CredentialSourceView) Descriptor() ([]byte, []int) {
return file_controller_storage_target_store_v1_target_proto_rawDescGZIP(), []int{6}
}
func (x *CredentialSourceView) GetPublicId() string {
if x != nil {
return x.PublicId
}
return ""
}
func (x *CredentialSourceView) GetType() string {
if x != nil {
return x.Type
}
return ""
}
2020-08-26 13:58:46 -04:00
var File_controller_storage_target_store_v1_target_proto protoreflect.FileDescriptor
const file_controller_storage_target_store_v1_target_proto_rawDesc = "" +
"\n" +
"/controller/storage/target/store/v1/target.proto\x12\"controller.storage.target.store.v1\x1a*controller/custom_options/v1/options.proto\x1a/controller/storage/timestamp/v1/timestamp.proto\"\xf8\x05\n" +
"\n" +
"TargetView\x12\x1b\n" +
"\tpublic_id\x18\n" +
" \x01(\tR\bpublicId\x12\x1d\n" +
"\n" +
"project_id\x18\x14 \x01(\tR\tprojectId\x12\x12\n" +
"\x04name\x18\x1e \x01(\tR\x04name\x12 \n" +
"\vdescription\x18( \x01(\tR\vdescription\x12K\n" +
"\vcreate_time\x182 \x01(\v2*.controller.storage.timestamp.v1.TimestampR\n" +
"createTime\x12K\n" +
"\vupdate_time\x18< \x01(\v2*.controller.storage.timestamp.v1.TimestampR\n" +
"updateTime\x12\x18\n" +
"\aversion\x18F \x01(\rR\aversion\x12\x12\n" +
"\x04type\x18P \x01(\tR\x04type\x12!\n" +
"\fdefault_port\x18Z \x01(\rR\vdefaultPort\x12.\n" +
"\x13default_client_port\x18_ \x01(\rR\x11defaultClientPort\x12.\n" +
"\x13session_max_seconds\x18d \x01(\rR\x11sessionMaxSeconds\x128\n" +
"\x18session_connection_limit\x18n \x01(\x05R\x16sessionConnectionLimit\x12#\n" +
"\rworker_filter\x18x \x01(\tR\fworkerFilter\x121\n" +
"\x14egress_worker_filter\x18\x82\x01 \x01(\tR\x12egressWorkerFilter\x123\n" +
"\x15ingress_worker_filter\x18\x8c\x01 \x01(\tR\x13ingressWorkerFilter\x129\n" +
"\x18enable_session_recording\x18\x96\x01 \x01(\bR\x16enableSessionRecording\x12+\n" +
"\x11storage_bucket_id\x18\xa0\x01 \x01(\tR\x0fstorageBucketId\"\x99\x01\n" +
"\rTargetHostSet\x12\x1b\n" +
"\ttarget_id\x18\n" +
" \x01(\tR\btargetId\x12\x1e\n" +
"\vhost_set_id\x18\x14 \x01(\tR\thostSetId\x12K\n" +
"\vcreate_time\x18\x1e \x01(\v2*.controller.storage.timestamp.v1.TimestampR\n" +
"createTime\"^\n" +
"\rTargetAddress\x12\x1b\n" +
"\ttarget_id\x18\n" +
" \x01(\tR\btargetId\x120\n" +
"\aaddress\x18\x14 \x01(\tB\x16\xc2\xdd)\x12\n" +
"\aaddress\x12\aaddressR\aaddress\"\xe0\x01\n" +
"\x11CredentialLibrary\x12\x1b\n" +
"\ttarget_id\x18\n" +
" \x01(\tR\btargetId\x122\n" +
"\x15credential_library_id\x18\x14 \x01(\tR\x13credentialLibraryId\x12-\n" +
"\x12credential_purpose\x18\x1e \x01(\tR\x11credentialPurpose\x12K\n" +
"\vcreate_time\x18( \x01(\v2*.controller.storage.timestamp.v1.TimestampR\n" +
"createTime\"\xd0\x01\n" +
"\x10StaticCredential\x12\x1b\n" +
"\ttarget_id\x18\n" +
" \x01(\tR\btargetId\x12#\n" +
"\rcredential_id\x18\x14 \x01(\tR\fcredentialId\x12-\n" +
"\x12credential_purpose\x18\x1e \x01(\tR\x11credentialPurpose\x12K\n" +
"\vcreate_time\x18( \x01(\v2*.controller.storage.timestamp.v1.TimestampR\n" +
"createTime\"\xf1\x01\n" +
"\x10CredentialSource\x12\x1b\n" +
"\ttarget_id\x18\n" +
" \x01(\tR\btargetId\x120\n" +
"\x14credential_source_id\x18\x14 \x01(\tR\x12credentialSourceId\x12-\n" +
"\x12credential_purpose\x18\x1e \x01(\tR\x11credentialPurpose\x12K\n" +
"\vcreate_time\x18( \x01(\v2*.controller.storage.timestamp.v1.TimestampR\n" +
"createTime\x12\x12\n" +
"\x04type\x182 \x01(\tR\x04type\"G\n" +
"\x14CredentialSourceView\x12\x1b\n" +
"\tpublic_id\x18\n" +
" \x01(\tR\bpublicId\x12\x12\n" +
"\x04type\x18\x14 \x01(\tR\x04typeB;Z9github.com/hashicorp/boundary/internal/target/store;storeb\x06proto3"
2020-08-26 13:58:46 -04:00
var (
file_controller_storage_target_store_v1_target_proto_rawDescOnce sync.Once
file_controller_storage_target_store_v1_target_proto_rawDescData []byte
2020-08-26 13:58:46 -04:00
)
func file_controller_storage_target_store_v1_target_proto_rawDescGZIP() []byte {
file_controller_storage_target_store_v1_target_proto_rawDescOnce.Do(func() {
file_controller_storage_target_store_v1_target_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_storage_target_store_v1_target_proto_rawDesc), len(file_controller_storage_target_store_v1_target_proto_rawDesc)))
2020-08-26 13:58:46 -04:00
})
return file_controller_storage_target_store_v1_target_proto_rawDescData
}
var file_controller_storage_target_store_v1_target_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_controller_storage_target_store_v1_target_proto_goTypes = []any{
(*TargetView)(nil), // 0: controller.storage.target.store.v1.TargetView
(*TargetHostSet)(nil), // 1: controller.storage.target.store.v1.TargetHostSet
(*TargetAddress)(nil), // 2: controller.storage.target.store.v1.TargetAddress
(*CredentialLibrary)(nil), // 3: controller.storage.target.store.v1.CredentialLibrary
(*StaticCredential)(nil), // 4: controller.storage.target.store.v1.StaticCredential
(*CredentialSource)(nil), // 5: controller.storage.target.store.v1.CredentialSource
(*CredentialSourceView)(nil), // 6: controller.storage.target.store.v1.CredentialSourceView
(*timestamp.Timestamp)(nil), // 7: controller.storage.timestamp.v1.Timestamp
2021-01-08 10:32:02 -05:00
}
2020-08-26 13:58:46 -04:00
var file_controller_storage_target_store_v1_target_proto_depIdxs = []int32{
7, // 0: controller.storage.target.store.v1.TargetView.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
7, // 1: controller.storage.target.store.v1.TargetView.update_time:type_name -> controller.storage.timestamp.v1.Timestamp
7, // 2: controller.storage.target.store.v1.TargetHostSet.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
7, // 3: controller.storage.target.store.v1.CredentialLibrary.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
7, // 4: controller.storage.target.store.v1.StaticCredential.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
7, // 5: controller.storage.target.store.v1.CredentialSource.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
2020-08-26 13:58:46 -04:00
}
func init() { file_controller_storage_target_store_v1_target_proto_init() }
func file_controller_storage_target_store_v1_target_proto_init() {
if File_controller_storage_target_store_v1_target_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_controller_storage_target_store_v1_target_proto_rawDesc), len(file_controller_storage_target_store_v1_target_proto_rawDesc)),
2020-08-26 13:58:46 -04:00
NumEnums: 0,
NumMessages: 7,
2020-08-26 13:58:46 -04:00
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_controller_storage_target_store_v1_target_proto_goTypes,
DependencyIndexes: file_controller_storage_target_store_v1_target_proto_depIdxs,
MessageInfos: file_controller_storage_target_store_v1_target_proto_msgTypes,
}.Build()
File_controller_storage_target_store_v1_target_proto = out.File
file_controller_storage_target_store_v1_target_proto_goTypes = nil
file_controller_storage_target_store_v1_target_proto_depIdxs = nil
}