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/hosts/v1/host.proto
@@ -32,10 +32,7 @@ const (
// Host contains all fields related to a Host resource
type Host struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// Output only. The ID of the Host.
Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
// The Host Catalog of which this Host is a part.
@@ -59,7 +56,7 @@ type Host struct {
Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
// Output only. A list of Host Sets containing this Host.
HostSetIds []string `protobuf:"bytes,100,rep,name=host_set_ids,proto3" json:"host_set_ids,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:
//
// *Host_Attributes
// *Host_StaticHostAttributes
@@ -74,15 +71,15 @@ type Host struct {
ExternalName string `protobuf:"bytes,150,opt,name=external_name,json=externalName,proto3" json:"external_name,omitempty" class:"public"` // @gotags: `class:"public"`
// 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" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Host) Reset() {
*x = Host{}
if protoimpl.UnsafeEnabled {
mi := &file_controller_api_resources_hosts_v1_host_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_controller_api_resources_hosts_v1_host_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Host) String() string {
@@ -93,7 +90,7 @@ func (*Host) ProtoMessage() {}
func (x *Host) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_hosts_v1_host_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)
@@ -185,23 +182,27 @@ func (x *Host) GetHostSetIds() []string {
return nil
}
func (m *Host) GetAttrs() isHost_Attrs {
if m != nil {
return m.Attrs
func (x *Host) GetAttrs() isHost_Attrs {
if x != nil {
return x.Attrs
}
return nil
}
func (x *Host) GetAttributes() *structpb.Struct {
if x, ok := x.GetAttrs().(*Host_Attributes); ok {
return x.Attributes
if x != nil {
if x, ok := x.Attrs.(*Host_Attributes); ok {
return x.Attributes
}
}
return nil
}
func (x *Host) GetStaticHostAttributes() *StaticHostAttributes {
if x, ok := x.GetAttrs().(*Host_StaticHostAttributes); ok {
return x.StaticHostAttributes
if x != nil {
if x, ok := x.Attrs.(*Host_StaticHostAttributes); ok {
return x.StaticHostAttributes
}
}
return nil
}
@@ -259,21 +260,18 @@ func (*Host_Attributes) isHost_Attrs() {}
func (*Host_StaticHostAttributes) isHost_Attrs() {}
type StaticHostAttributes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// The address (DNS or IP name) used to reach the Host.
Address *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=address,proto3" json:"address,omitempty" class:"public"` // @gotags: `class:"public"`
Address *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=address,proto3" json:"address,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StaticHostAttributes) Reset() {
*x = StaticHostAttributes{}
if protoimpl.UnsafeEnabled {
mi := &file_controller_api_resources_hosts_v1_host_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_controller_api_resources_hosts_v1_host_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StaticHostAttributes) String() string {
@@ -284,7 +282,7 @@ func (*StaticHostAttributes) ProtoMessage() {}
func (x *StaticHostAttributes) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_hosts_v1_host_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)
@@ -453,32 +451,6 @@ func file_controller_api_resources_hosts_v1_host_proto_init() {
if File_controller_api_resources_hosts_v1_host_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_resources_hosts_v1_host_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Host); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_controller_api_resources_hosts_v1_host_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*StaticHostAttributes); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_controller_api_resources_hosts_v1_host_proto_msgTypes[0].OneofWrappers = []any{
(*Host_Attributes)(nil),
(*Host_StaticHostAttributes)(nil),