Update go-plugin dep (#5552)

* mod: remove unnecessary import groupings

Move all imports into one of two groupings:

1. Direct dependencies
2. Indirect dependencies

This is the standard used by the go tool. The old groupings
seemed very random.

* mod: update go-plugin dependency
This commit is contained in:
Johan Brandhorst-Satzkorn authored and GitHub committed 2025-02-19 09:14:41 -08:00
1 parent d001e82817
commit 99f4bc092f
147 files changed
+6438 -17293

No files matched your search

@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.34.2
// protoc-gen-go v1.36.1
// protoc (unknown)
// source: controller/api/resources/aliases/v1/alias.proto
@@ -33,10 +33,7 @@ const (
// Alias contains all fields related to an alias resource
type Alias struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// The ID of the alias.
Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
// The ID of the scope of which this alias is a part.
@@ -62,22 +59,22 @@ type Alias struct {
DestinationId *wrapperspb.StringValue `protobuf:"bytes,100,opt,name=destination_id,proto3" json:"destination_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
// type is the type of the alias.
Type string `protobuf:"bytes,110,opt,name=type,proto3" json:"type,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
// Types that are assignable to Attrs:
// Types that are valid to be assigned to Attrs:
//
// *Alias_Attributes
// *Alias_TargetAliasAttributes
Attrs isAlias_Attrs `protobuf_oneof:"attrs"`
// The available actions on this resource for this user.
AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Alias) Reset() {
*x = Alias{}
if protoimpl.UnsafeEnabled {
mi := &file_controller_api_resources_aliases_v1_alias_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_controller_api_resources_aliases_v1_alias_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Alias) String() string {
@@ -88,7 +85,7 @@ func (*Alias) ProtoMessage() {}
func (x *Alias) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_aliases_v1_alias_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
@@ -180,23 +177,27 @@ func (x *Alias) GetType() string {
return ""
}
func (m *Alias) GetAttrs() isAlias_Attrs {
if m != nil {
return m.Attrs
func (x *Alias) GetAttrs() isAlias_Attrs {
if x != nil {
return x.Attrs
}
return nil
}
func (x *Alias) GetAttributes() *structpb.Struct {
if x, ok := x.GetAttrs().(*Alias_Attributes); ok {
return x.Attributes
if x != nil {
if x, ok := x.Attrs.(*Alias_Attributes); ok {
return x.Attributes
}
}
return nil
}
func (x *Alias) GetTargetAliasAttributes() *TargetAliasAttributes {
if x, ok := x.GetAttrs().(*Alias_TargetAliasAttributes); ok {
return x.TargetAliasAttributes
if x != nil {
if x, ok := x.Attrs.(*Alias_TargetAliasAttributes); ok {
return x.TargetAliasAttributes
}
}
return nil
}
@@ -227,21 +228,18 @@ func (*Alias_TargetAliasAttributes) isAlias_Attrs() {}
// Attributes associated only with aliases with type "target".
type TargetAliasAttributes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// The arguments to provide to authorize_session of the target.
AuthorizeSessionArguments *AuthorizeSessionArguments `protobuf:"bytes,1,opt,name=authorize_session_arguments,proto3" json:"authorize_session_arguments,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TargetAliasAttributes) Reset() {
*x = TargetAliasAttributes{}
if protoimpl.UnsafeEnabled {
mi := &file_controller_api_resources_aliases_v1_alias_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_controller_api_resources_aliases_v1_alias_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TargetAliasAttributes) String() string {
@@ -252,7 +250,7 @@ func (*TargetAliasAttributes) ProtoMessage() {}
func (x *TargetAliasAttributes) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_aliases_v1_alias_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
@@ -275,26 +273,23 @@ func (x *TargetAliasAttributes) GetAuthorizeSessionArguments() *AuthorizeSession
}
type AuthorizeSessionArguments struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// host_id is the id of the host that the session will be authorized for.
// When specified authorizing a session using this alias will have the same
// effect of authorizing a session to the aliase's destination_id and passing
// in this value through the -host-id flag. If the host-id flag is also
// specified when calling authorize-session an error will be returned unless
// the provided host-id matches this value.
HostId string `protobuf:"bytes,100,opt,name=host_id,proto3" json:"host_id,omitempty" class:"public"` // @gotags: `class:"public"`
HostId string `protobuf:"bytes,100,opt,name=host_id,proto3" json:"host_id,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AuthorizeSessionArguments) Reset() {
*x = AuthorizeSessionArguments{}
if protoimpl.UnsafeEnabled {
mi := &file_controller_api_resources_aliases_v1_alias_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_controller_api_resources_aliases_v1_alias_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AuthorizeSessionArguments) String() string {
@@ -305,7 +300,7 @@ func (*AuthorizeSessionArguments) ProtoMessage() {}
func (x *AuthorizeSessionArguments) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_aliases_v1_alias_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
@@ -503,44 +498,6 @@ func file_controller_api_resources_aliases_v1_alias_proto_init() {
if File_controller_api_resources_aliases_v1_alias_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_resources_aliases_v1_alias_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Alias); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_controller_api_resources_aliases_v1_alias_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*TargetAliasAttributes); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_controller_api_resources_aliases_v1_alias_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizeSessionArguments); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_controller_api_resources_aliases_v1_alias_proto_msgTypes[0].OneofWrappers = []any{
(*Alias_Attributes)(nil),
(*Alias_TargetAliasAttributes)(nil),