pbacl

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: MPL-2.0 Imports: 11 Imported by: 2

Documentation

Overview

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	AclMarshaler   = &protojson.MarshalOptions{}
	AclUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var ACLService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hashicorp.consul.acl.ACLService",
	HandlerType: (*ACLServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _ACLService_Login_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _ACLService_Logout_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pbacl/acl.proto",
}

ACLService_ServiceDesc is the grpc.ServiceDesc for ACLService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pbacl_acl_proto protoreflect.FileDescriptor

Functions

func RegisterACLServiceServer

func RegisterACLServiceServer(s grpc.ServiceRegistrar, srv ACLServiceServer)

Types

type ACLServiceClient

type ACLServiceClient interface {
	// Login exchanges the presented bearer token for a Consul ACL token using a
	// configured auth method.
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	// Logout destroys the given ACL token once the caller is done with it.
	Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error)
}

ACLServiceClient is the client API for ACLService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewACLServiceClient

func NewACLServiceClient(cc grpc.ClientConnInterface) ACLServiceClient

func NewCloningACLServiceClient added in v0.6.0

func NewCloningACLServiceClient(client ACLServiceClient) ACLServiceClient

type ACLServiceServer

type ACLServiceServer interface {
	// Login exchanges the presented bearer token for a Consul ACL token using a
	// configured auth method.
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	// Logout destroys the given ACL token once the caller is done with it.
	Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
}

ACLServiceServer is the server API for ACLService service. All implementations should embed UnimplementedACLServiceServer for forward compatibility

type CloningACLServiceClient added in v0.6.0

type CloningACLServiceClient struct {
	ACLServiceClient
}

CloningACLServiceClient implements the ACLServiceClient interface by wrapping another implementation and copying all protobuf messages that pass through the client. This is mainly useful to wrap the an in-process client to insulate users of that client from having to care about potential immutability of data they receive or having the server implementation mutate their internal memory.

func (CloningACLServiceClient) IsCloningACLServiceClient added in v0.6.0

func (c CloningACLServiceClient) IsCloningACLServiceClient() bool

IsCloningACLServiceClient implements the IsCloningACLServiceClient interface. This is only used to detect wrapped clients that would be double cloning data and prevent that.

func (CloningACLServiceClient) Login added in v0.6.0

func (CloningACLServiceClient) Logout added in v0.6.0

type IsCloningACLServiceClient added in v0.6.0

type IsCloningACLServiceClient interface {
	IsCloningACLServiceClient() bool
}

IsCloningACLServiceClient is an interface that can be used to detect that a ACLServiceClient is using the in-memory transport and has already been wrapped with a with a CloningACLServiceClient.

type LoginRequest

type LoginRequest struct {

	// auth_method is the name of the configured auth method that will be used to
	// validate the presented bearer token.
	AuthMethod string `protobuf:"bytes,1,opt,name=auth_method,json=authMethod,proto3" json:"auth_method,omitempty"`
	// bearer_token is a token produced by a trusted identity provider as
	// configured by the auth method.
	BearerToken string `protobuf:"bytes,2,opt,name=bearer_token,json=bearerToken,proto3" json:"bearer_token,omitempty"`
	// meta is a collection of arbitrary key-value pairs associated to the token,
	// it is useful for tracking the origin of tokens.
	Meta map[string]string `` /* 149-byte string literal not displayed */
	// namespace (enterprise only) is the namespace in which the auth method
	// resides.
	Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// partition (enterprise only) is the partition in which the auth method
	// resides.
	Partition string `protobuf:"bytes,5,opt,name=partition,proto3" json:"partition,omitempty"`
	// datacenter is the target datacenter in which the request will be processed.
	Datacenter string `protobuf:"bytes,6,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) DeepCopy added in v0.5.1

func (in *LoginRequest) DeepCopy() *LoginRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoginRequest. Required by controller-gen.

func (*LoginRequest) DeepCopyInterface added in v0.5.1

func (in *LoginRequest) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LoginRequest. Required by controller-gen.

func (*LoginRequest) DeepCopyInto added in v0.5.1

func (in *LoginRequest) DeepCopyInto(out *LoginRequest)

DeepCopyInto supports using LoginRequest within kubernetes types, where deepcopy-gen is used.

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetAuthMethod

func (x *LoginRequest) GetAuthMethod() string

func (*LoginRequest) GetBearerToken

func (x *LoginRequest) GetBearerToken() string

func (*LoginRequest) GetDatacenter

func (x *LoginRequest) GetDatacenter() string

func (*LoginRequest) GetMeta

func (x *LoginRequest) GetMeta() map[string]string

func (*LoginRequest) GetNamespace

func (x *LoginRequest) GetNamespace() string

func (*LoginRequest) GetPartition

func (x *LoginRequest) GetPartition() string

func (*LoginRequest) MarshalBinary

func (msg *LoginRequest) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*LoginRequest) MarshalJSON added in v0.5.1

func (this *LoginRequest) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LoginRequest

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) UnmarshalBinary

func (msg *LoginRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*LoginRequest) UnmarshalJSON added in v0.5.1

func (this *LoginRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LoginRequest

type LoginResponse

type LoginResponse struct {

	// token is the generated ACL token.
	Token *LoginToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) DeepCopy added in v0.5.1

func (in *LoginResponse) DeepCopy() *LoginResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoginResponse. Required by controller-gen.

func (*LoginResponse) DeepCopyInterface added in v0.5.1

func (in *LoginResponse) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LoginResponse. Required by controller-gen.

func (*LoginResponse) DeepCopyInto added in v0.5.1

func (in *LoginResponse) DeepCopyInto(out *LoginResponse)

DeepCopyInto supports using LoginResponse within kubernetes types, where deepcopy-gen is used.

func (*LoginResponse) Descriptor deprecated

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() *LoginToken

func (*LoginResponse) MarshalBinary

func (msg *LoginResponse) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*LoginResponse) MarshalJSON added in v0.5.1

func (this *LoginResponse) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LoginResponse

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

func (x *LoginResponse) ProtoReflect() protoreflect.Message

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) UnmarshalBinary

func (msg *LoginResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*LoginResponse) UnmarshalJSON added in v0.5.1

func (this *LoginResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LoginResponse

type LoginToken

type LoginToken struct {

	// accessor_id is a UUID used to identify the ACL token.
	AccessorId string `protobuf:"bytes,1,opt,name=accessor_id,json=accessorId,proto3" json:"accessor_id,omitempty"`
	// secret_id is a UUID presented as a credential by clients.
	SecretId string `protobuf:"bytes,2,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginToken) DeepCopy added in v0.5.1

func (in *LoginToken) DeepCopy() *LoginToken

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoginToken. Required by controller-gen.

func (*LoginToken) DeepCopyInterface added in v0.5.1

func (in *LoginToken) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LoginToken. Required by controller-gen.

func (*LoginToken) DeepCopyInto added in v0.5.1

func (in *LoginToken) DeepCopyInto(out *LoginToken)

DeepCopyInto supports using LoginToken within kubernetes types, where deepcopy-gen is used.

func (*LoginToken) Descriptor deprecated

func (*LoginToken) Descriptor() ([]byte, []int)

Deprecated: Use LoginToken.ProtoReflect.Descriptor instead.

func (*LoginToken) GetAccessorId

func (x *LoginToken) GetAccessorId() string

func (*LoginToken) GetSecretId

func (x *LoginToken) GetSecretId() string

func (*LoginToken) MarshalBinary

func (msg *LoginToken) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*LoginToken) MarshalJSON added in v0.5.1

func (this *LoginToken) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LoginToken

func (*LoginToken) ProtoMessage

func (*LoginToken) ProtoMessage()

func (*LoginToken) ProtoReflect

func (x *LoginToken) ProtoReflect() protoreflect.Message

func (*LoginToken) Reset

func (x *LoginToken) Reset()

func (*LoginToken) String

func (x *LoginToken) String() string

func (*LoginToken) UnmarshalBinary

func (msg *LoginToken) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*LoginToken) UnmarshalJSON added in v0.5.1

func (this *LoginToken) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LoginToken

type LogoutRequest

type LogoutRequest struct {

	// token is the ACL token's secret ID.
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// datacenter is the target datacenter in which the request will be processed.
	Datacenter string `protobuf:"bytes,2,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	// contains filtered or unexported fields
}

func (*LogoutRequest) DeepCopy added in v0.5.1

func (in *LogoutRequest) DeepCopy() *LogoutRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogoutRequest. Required by controller-gen.

func (*LogoutRequest) DeepCopyInterface added in v0.5.1

func (in *LogoutRequest) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LogoutRequest. Required by controller-gen.

func (*LogoutRequest) DeepCopyInto added in v0.5.1

func (in *LogoutRequest) DeepCopyInto(out *LogoutRequest)

DeepCopyInto supports using LogoutRequest within kubernetes types, where deepcopy-gen is used.

func (*LogoutRequest) Descriptor deprecated

func (*LogoutRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.

func (*LogoutRequest) GetDatacenter

func (x *LogoutRequest) GetDatacenter() string

func (*LogoutRequest) GetToken

func (x *LogoutRequest) GetToken() string

func (*LogoutRequest) MarshalBinary

func (msg *LogoutRequest) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*LogoutRequest) MarshalJSON added in v0.5.1

func (this *LogoutRequest) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LogoutRequest

func (*LogoutRequest) ProtoMessage

func (*LogoutRequest) ProtoMessage()

func (*LogoutRequest) ProtoReflect

func (x *LogoutRequest) ProtoReflect() protoreflect.Message

func (*LogoutRequest) Reset

func (x *LogoutRequest) Reset()

func (*LogoutRequest) String

func (x *LogoutRequest) String() string

func (*LogoutRequest) UnmarshalBinary

func (msg *LogoutRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*LogoutRequest) UnmarshalJSON added in v0.5.1

func (this *LogoutRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LogoutRequest

type LogoutResponse

type LogoutResponse struct {
	// contains filtered or unexported fields
}

func (*LogoutResponse) DeepCopy added in v0.5.1

func (in *LogoutResponse) DeepCopy() *LogoutResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogoutResponse. Required by controller-gen.

func (*LogoutResponse) DeepCopyInterface added in v0.5.1

func (in *LogoutResponse) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LogoutResponse. Required by controller-gen.

func (*LogoutResponse) DeepCopyInto added in v0.5.1

func (in *LogoutResponse) DeepCopyInto(out *LogoutResponse)

DeepCopyInto supports using LogoutResponse within kubernetes types, where deepcopy-gen is used.

func (*LogoutResponse) Descriptor deprecated

func (*LogoutResponse) Descriptor() ([]byte, []int)

Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.

func (*LogoutResponse) MarshalBinary

func (msg *LogoutResponse) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*LogoutResponse) MarshalJSON added in v0.5.1

func (this *LogoutResponse) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LogoutResponse

func (*LogoutResponse) ProtoMessage

func (*LogoutResponse) ProtoMessage()

func (*LogoutResponse) ProtoReflect

func (x *LogoutResponse) ProtoReflect() protoreflect.Message

func (*LogoutResponse) Reset

func (x *LogoutResponse) Reset()

func (*LogoutResponse) String

func (x *LogoutResponse) String() string

func (*LogoutResponse) UnmarshalBinary

func (msg *LogoutResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*LogoutResponse) UnmarshalJSON added in v0.5.1

func (this *LogoutResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LogoutResponse

type UnimplementedACLServiceServer

type UnimplementedACLServiceServer struct {
}

UnimplementedACLServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedACLServiceServer) Login

func (UnimplementedACLServiceServer) Logout

type UnsafeACLServiceServer

type UnsafeACLServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeACLServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ACLServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL