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/credentials/v1/credential.proto
@@ -31,10 +31,7 @@ const (
// Credential contains all fields related to an Credential resource
type Credential struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// Output only. The ID of the Credential.
Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"`
// The ID of the Credential Store of which this Credential is a part.
@@ -54,7 +51,7 @@ type Credential struct {
Version uint32 `protobuf:"varint,80,opt,name=version,proto3" json:"version,omitempty" class:"public"` // @gotags: `class:"public"`
// The Credential type.
Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty" class:"public"` // @gotags: `class:"public"`
// Types that are assignable to Attrs:
// Types that are valid to be assigned to Attrs:
//
// *Credential_Attributes
// *Credential_UsernamePasswordAttributes
@@ -63,15 +60,15 @@ type Credential struct {
Attrs isCredential_Attrs `protobuf_oneof:"attrs"`
// 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 *Credential) Reset() {
*x = Credential{}
if protoimpl.UnsafeEnabled {
mi := &file_controller_api_resources_credentials_v1_credential_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_controller_api_resources_credentials_v1_credential_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Credential) String() string {
@@ -82,7 +79,7 @@ func (*Credential) ProtoMessage() {}
func (x *Credential) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_credentials_v1_credential_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)
@@ -160,37 +157,45 @@ func (x *Credential) GetType() string {
return ""
}
func (m *Credential) GetAttrs() isCredential_Attrs {
if m != nil {
return m.Attrs
func (x *Credential) GetAttrs() isCredential_Attrs {
if x != nil {
return x.Attrs
}
return nil
}
func (x *Credential) GetAttributes() *structpb.Struct {
if x, ok := x.GetAttrs().(*Credential_Attributes); ok {
return x.Attributes
if x != nil {
if x, ok := x.Attrs.(*Credential_Attributes); ok {
return x.Attributes
}
}
return nil
}
func (x *Credential) GetUsernamePasswordAttributes() *UsernamePasswordAttributes {
if x, ok := x.GetAttrs().(*Credential_UsernamePasswordAttributes); ok {
return x.UsernamePasswordAttributes
if x != nil {
if x, ok := x.Attrs.(*Credential_UsernamePasswordAttributes); ok {
return x.UsernamePasswordAttributes
}
}
return nil
}
func (x *Credential) GetSshPrivateKeyAttributes() *SshPrivateKeyAttributes {
if x, ok := x.GetAttrs().(*Credential_SshPrivateKeyAttributes); ok {
return x.SshPrivateKeyAttributes
if x != nil {
if x, ok := x.Attrs.(*Credential_SshPrivateKeyAttributes); ok {
return x.SshPrivateKeyAttributes
}
}
return nil
}
func (x *Credential) GetJsonAttributes() *JsonAttributes {
if x, ok := x.GetAttrs().(*Credential_JsonAttributes); ok {
return x.JsonAttributes
if x != nil {
if x, ok := x.Attrs.(*Credential_JsonAttributes); ok {
return x.JsonAttributes
}
}
return nil
}
@@ -233,25 +238,22 @@ func (*Credential_JsonAttributes) isCredential_Attrs() {}
// The attributes of a UsernamePassword Credential.
type UsernamePasswordAttributes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// The username associated with the credential.
Username *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=username,proto3" json:"username,omitempty" class:"public"` // @gotags: `class:"public"`
// Input only. The password associated with the credential.
Password *wrapperspb.StringValue `protobuf:"bytes,20,opt,name=password,proto3" json:"password,omitempty" class:"secret"` // @gotags: `class:"secret"`
// Output only. The hmac value of the password.
PasswordHmac string `protobuf:"bytes,30,opt,name=password_hmac,proto3" json:"password_hmac,omitempty" class:"public"` // @gotags: `class:"public"`
PasswordHmac string `protobuf:"bytes,30,opt,name=password_hmac,proto3" json:"password_hmac,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UsernamePasswordAttributes) Reset() {
*x = UsernamePasswordAttributes{}
if protoimpl.UnsafeEnabled {
mi := &file_controller_api_resources_credentials_v1_credential_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_controller_api_resources_credentials_v1_credential_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UsernamePasswordAttributes) String() string {
@@ -262,7 +264,7 @@ func (*UsernamePasswordAttributes) ProtoMessage() {}
func (x *UsernamePasswordAttributes) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_credentials_v1_credential_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)
@@ -300,10 +302,7 @@ func (x *UsernamePasswordAttributes) GetPasswordHmac() string {
// The attributes of a SshPrivateKey Credential.
type SshPrivateKeyAttributes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// The username associated with the credential.
Username *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=username,proto3" json:"username,omitempty" class:"public"` // @gotags: `class:"public"`
// Input only. The SSH private key associated with the credential.
@@ -314,15 +313,15 @@ type SshPrivateKeyAttributes struct {
PrivateKeyPassphrase *wrapperspb.StringValue `protobuf:"bytes,40,opt,name=private_key_passphrase,proto3" json:"private_key_passphrase,omitempty" class:"secret"` // @gotags: `class:"secret"`
// Output only. The hmac value of the SSH private key passphrase.
PrivateKeyPassphraseHmac string `protobuf:"bytes,50,opt,name=private_key_passphrase_hmac,proto3" json:"private_key_passphrase_hmac,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SshPrivateKeyAttributes) Reset() {
*x = SshPrivateKeyAttributes{}
if protoimpl.UnsafeEnabled {
mi := &file_controller_api_resources_credentials_v1_credential_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_controller_api_resources_credentials_v1_credential_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SshPrivateKeyAttributes) String() string {
@@ -333,7 +332,7 @@ func (*SshPrivateKeyAttributes) ProtoMessage() {}
func (x *SshPrivateKeyAttributes) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_credentials_v1_credential_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)
@@ -385,23 +384,20 @@ func (x *SshPrivateKeyAttributes) GetPrivateKeyPassphraseHmac() string {
// The attributes of a JSON Credential.
type JsonAttributes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// Input only. The secret associated with the credential.
Object *structpb.Struct `protobuf:"bytes,10,opt,name=object,proto3" json:"object,omitempty" class:"secret"` // @gotags: `class:"secret"`
// Output only. The hmac value of the object.
ObjectHmac string `protobuf:"bytes,20,opt,name=object_hmac,proto3" json:"object_hmac,omitempty" class:"public"` // @gotags: `class:"public"`
ObjectHmac string `protobuf:"bytes,20,opt,name=object_hmac,proto3" json:"object_hmac,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *JsonAttributes) Reset() {
*x = JsonAttributes{}
if protoimpl.UnsafeEnabled {
mi := &file_controller_api_resources_credentials_v1_credential_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_controller_api_resources_credentials_v1_credential_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *JsonAttributes) String() string {
@@ -412,7 +408,7 @@ func (*JsonAttributes) ProtoMessage() {}
func (x *JsonAttributes) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_credentials_v1_credential_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
@@ -663,56 +659,6 @@ func file_controller_api_resources_credentials_v1_credential_proto_init() {
if File_controller_api_resources_credentials_v1_credential_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_resources_credentials_v1_credential_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Credential); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_controller_api_resources_credentials_v1_credential_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*UsernamePasswordAttributes); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_controller_api_resources_credentials_v1_credential_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*SshPrivateKeyAttributes); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_controller_api_resources_credentials_v1_credential_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*JsonAttributes); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_controller_api_resources_credentials_v1_credential_proto_msgTypes[0].OneofWrappers = []any{
(*Credential_Attributes)(nil),
(*Credential_UsernamePasswordAttributes)(nil),