1 parent
7062bc70f0
commit
be10cc4b42
62 files changed
+440
-438
No files matched your search
@@ -1,19 +1,19 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.26.0
|
||||
// protoc v3.12.4
|
||||
// protoc v3.15.5
|
||||
// source: controller/api/resources/targets/v1/target.proto
|
||||
|
||||
package targets
|
||||
|
||||
import (
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
scopes "github.com/hashicorp/boundary/internal/gen/controller/api/resources/scopes"
|
||||
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
structpb "google.golang.org/protobuf/types/known/structpb"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
@@ -95,13 +95,13 @@ type Target struct {
|
||||
// Output only. Scope information for this resource.
|
||||
Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
|
||||
// Required name for identification purposes.
|
||||
Name *wrappers.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Name *wrapperspb.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Optional user-set description for identification purposes.
|
||||
Description *wrappers.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Description *wrapperspb.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// Output only. The time this resource was created.
|
||||
CreatedTime *timestamp.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty"`
|
||||
CreatedTime *timestamppb.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty"`
|
||||
// Output only. The time this resource was last updated.
|
||||
UpdatedTime *timestamp.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty"`
|
||||
UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty"`
|
||||
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
|
||||
// The mutation will fail if the version does not match the latest known good version.
|
||||
Version uint32 `protobuf:"varint,80,opt,name=version,proto3" json:"version,omitempty"`
|
||||
@@ -112,13 +112,13 @@ type Target struct {
|
||||
// Output only. The Host Sets associated with this Target.
|
||||
HostSets []*HostSet `protobuf:"bytes,110,rep,name=host_sets,proto3" json:"host_sets,omitempty"`
|
||||
// Maximum total lifetime of a created Session, in seconds.
|
||||
SessionMaxSeconds *wrappers.UInt32Value `protobuf:"bytes,120,opt,name=session_max_seconds,proto3" json:"session_max_seconds,omitempty"`
|
||||
SessionMaxSeconds *wrapperspb.UInt32Value `protobuf:"bytes,120,opt,name=session_max_seconds,proto3" json:"session_max_seconds,omitempty"`
|
||||
// Maximum number of connections allowed in a Session. Unlimited is indicated by the value -1.
|
||||
SessionConnectionLimit *wrappers.Int32Value `protobuf:"bytes,130,opt,name=session_connection_limit,proto3" json:"session_connection_limit,omitempty"`
|
||||
SessionConnectionLimit *wrapperspb.Int32Value `protobuf:"bytes,130,opt,name=session_connection_limit,proto3" json:"session_connection_limit,omitempty"`
|
||||
// Optional boolean expression to filter the workers that are allowed to satisfy this request.
|
||||
WorkerFilter *wrappers.StringValue `protobuf:"bytes,140,opt,name=worker_filter,proto3" json:"worker_filter,omitempty"`
|
||||
WorkerFilter *wrapperspb.StringValue `protobuf:"bytes,140,opt,name=worker_filter,proto3" json:"worker_filter,omitempty"`
|
||||
// The attributes that are applicable for the specific Target.
|
||||
Attributes *_struct.Struct `protobuf:"bytes,200,opt,name=attributes,proto3" json:"attributes,omitempty"`
|
||||
Attributes *structpb.Struct `protobuf:"bytes,200,opt,name=attributes,proto3" json:"attributes,omitempty"`
|
||||
// Output only. The available actions on this resource for this user.
|
||||
AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty"`
|
||||
}
|
||||
@@ -176,28 +176,28 @@ func (x *Target) GetScope() *scopes.ScopeInfo {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Target) GetName() *wrappers.StringValue {
|
||||
func (x *Target) GetName() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Target) GetDescription() *wrappers.StringValue {
|
||||
func (x *Target) GetDescription() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Target) GetCreatedTime() *timestamp.Timestamp {
|
||||
func (x *Target) GetCreatedTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Target) GetUpdatedTime() *timestamp.Timestamp {
|
||||
func (x *Target) GetUpdatedTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.UpdatedTime
|
||||
}
|
||||
@@ -232,28 +232,28 @@ func (x *Target) GetHostSets() []*HostSet {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Target) GetSessionMaxSeconds() *wrappers.UInt32Value {
|
||||
func (x *Target) GetSessionMaxSeconds() *wrapperspb.UInt32Value {
|
||||
if x != nil {
|
||||
return x.SessionMaxSeconds
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Target) GetSessionConnectionLimit() *wrappers.Int32Value {
|
||||
func (x *Target) GetSessionConnectionLimit() *wrapperspb.Int32Value {
|
||||
if x != nil {
|
||||
return x.SessionConnectionLimit
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Target) GetWorkerFilter() *wrappers.StringValue {
|
||||
func (x *Target) GetWorkerFilter() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.WorkerFilter
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Target) GetAttributes() *_struct.Struct {
|
||||
func (x *Target) GetAttributes() *structpb.Struct {
|
||||
if x != nil {
|
||||
return x.Attributes
|
||||
}
|
||||
@@ -274,7 +274,7 @@ type TcpTargetAttributes struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// The default TCP port that will be used when connecting to the endpoint unless overridden by a Host Set or Host.
|
||||
DefaultPort *wrappers.UInt32Value `protobuf:"bytes,10,opt,name=default_port,proto3" json:"default_port,omitempty"`
|
||||
DefaultPort *wrapperspb.UInt32Value `protobuf:"bytes,10,opt,name=default_port,proto3" json:"default_port,omitempty"`
|
||||
}
|
||||
|
||||
func (x *TcpTargetAttributes) Reset() {
|
||||
@@ -309,7 +309,7 @@ func (*TcpTargetAttributes) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *TcpTargetAttributes) GetDefaultPort() *wrappers.UInt32Value {
|
||||
func (x *TcpTargetAttributes) GetDefaultPort() *wrapperspb.UInt32Value {
|
||||
if x != nil {
|
||||
return x.DefaultPort
|
||||
}
|
||||
@@ -378,7 +378,7 @@ type SessionAuthorizationData struct {
|
||||
// Output only. Scope information for this the Target that authorized this session.
|
||||
Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
|
||||
// Output only. The time this resource was created.
|
||||
CreatedTime *timestamp.Timestamp `protobuf:"bytes,40,opt,name=created_time,proto3" json:"created_time,omitempty"`
|
||||
CreatedTime *timestamppb.Timestamp `protobuf:"bytes,40,opt,name=created_time,proto3" json:"created_time,omitempty"`
|
||||
// Output only. Type of the session (e.g. tcp, ssh, etc.).
|
||||
Type string `protobuf:"bytes,80,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// Output only. The connection limit being applied to this session. -1 means unlimited. This is not actually enforced on the client side but it provides for better listener handling by including it.
|
||||
@@ -448,7 +448,7 @@ func (x *SessionAuthorizationData) GetScope() *scopes.ScopeInfo {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SessionAuthorizationData) GetCreatedTime() *timestamp.Timestamp {
|
||||
func (x *SessionAuthorizationData) GetCreatedTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedTime
|
||||
}
|
||||
@@ -517,7 +517,7 @@ type SessionAuthorization struct {
|
||||
// Output only. Scope information for this resource.
|
||||
Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
|
||||
// Output only. The time this resource was created.
|
||||
CreatedTime *timestamp.Timestamp `protobuf:"bytes,40,opt,name=created_time,proto3" json:"created_time,omitempty"`
|
||||
CreatedTime *timestamppb.Timestamp `protobuf:"bytes,40,opt,name=created_time,proto3" json:"created_time,omitempty"`
|
||||
// Output only. The User for which this Session was authorized.
|
||||
UserId string `protobuf:"bytes,50,opt,name=user_id,proto3" json:"user_id,omitempty"`
|
||||
// Output only. The Host Set containing the Host being used for this Session.
|
||||
@@ -585,7 +585,7 @@ func (x *SessionAuthorization) GetScope() *scopes.ScopeInfo {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SessionAuthorization) GetCreatedTime() *timestamp.Timestamp {
|
||||
func (x *SessionAuthorization) GetCreatedTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedTime
|
||||
}
|
||||
@@ -823,11 +823,11 @@ var file_controller_api_resources_targets_v1_target_proto_goTypes = []interface{
|
||||
(*SessionAuthorizationData)(nil), // 4: controller.api.resources.targets.v1.SessionAuthorizationData
|
||||
(*SessionAuthorization)(nil), // 5: controller.api.resources.targets.v1.SessionAuthorization
|
||||
(*scopes.ScopeInfo)(nil), // 6: controller.api.resources.scopes.v1.ScopeInfo
|
||||
(*wrappers.StringValue)(nil), // 7: google.protobuf.StringValue
|
||||
(*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp
|
||||
(*wrappers.UInt32Value)(nil), // 9: google.protobuf.UInt32Value
|
||||
(*wrappers.Int32Value)(nil), // 10: google.protobuf.Int32Value
|
||||
(*_struct.Struct)(nil), // 11: google.protobuf.Struct
|
||||
(*wrapperspb.StringValue)(nil), // 7: google.protobuf.StringValue
|
||||
(*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
|
||||
(*wrapperspb.UInt32Value)(nil), // 9: google.protobuf.UInt32Value
|
||||
(*wrapperspb.Int32Value)(nil), // 10: google.protobuf.Int32Value
|
||||
(*structpb.Struct)(nil), // 11: google.protobuf.Struct
|
||||
}
|
||||
var file_controller_api_resources_targets_v1_target_proto_depIdxs = []int32{
|
||||
6, // 0: controller.api.resources.targets.v1.Target.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
|
||||
|
||||
Reference in new issue
Block a user