protos

package
v0.1.0-notokenalpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AKSBootstrapTokenRequest_GetNonce_FullMethodName      = "/azure.aks.tlsbootstrap.AKSBootstrapTokenRequest/GetNonce"
	AKSBootstrapTokenRequest_GetCredential_FullMethodName = "/azure.aks.tlsbootstrap.AKSBootstrapTokenRequest/GetCredential"
)

Variables

View Source
var AKSBootstrapTokenRequest_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azure.aks.tlsbootstrap.AKSBootstrapTokenRequest",
	HandlerType: (*AKSBootstrapTokenRequestServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNonce",
			Handler:    _AKSBootstrapTokenRequest_GetNonce_Handler,
		},
		{
			MethodName: "GetCredential",
			Handler:    _AKSBootstrapTokenRequest_GetCredential_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/protos/bootstrap.proto",
}

AKSBootstrapTokenRequest_ServiceDesc is the grpc.ServiceDesc for AKSBootstrapTokenRequest 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_pkg_protos_bootstrap_proto protoreflect.FileDescriptor

Functions

func RegisterAKSBootstrapTokenRequestServer

func RegisterAKSBootstrapTokenRequestServer(s grpc.ServiceRegistrar, srv AKSBootstrapTokenRequestServer)

Types

type AKSBootstrapTokenRequestClient

type AKSBootstrapTokenRequestClient interface {
	SetGRPCConnection(conn *grpc.ClientConn)

	// Step 1 of retrieving a bootstrap token; generates a nonce to be used by the
	// client when requesting attested data.
	GetNonce(ctx context.Context, in *NonceRequest, opts ...grpc.CallOption) (*NonceResponse, error)
	// Step 2 of retrieving a bootstrap token; validates the attested data and the
	// nonce, then generates and returns the bootstrap token to the client.
	GetCredential(ctx context.Context, in *CredentialRequest, opts ...grpc.CallOption) (*CredentialResponse, error)
}

AKSBootstrapTokenRequestClient is the client API for AKSBootstrapTokenRequest 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 NewAKSBootstrapTokenRequestClient

func NewAKSBootstrapTokenRequestClient() AKSBootstrapTokenRequestClient

type AKSBootstrapTokenRequestServer

type AKSBootstrapTokenRequestServer interface {
	// Step 1 of retrieving a bootstrap token; generates a nonce to be used by the
	// client when requesting attested data.
	GetNonce(context.Context, *NonceRequest) (*NonceResponse, error)
	// Step 2 of retrieving a bootstrap token; validates the attested data and the
	// nonce, then generates and returns the bootstrap token to the client.
	GetCredential(context.Context, *CredentialRequest) (*CredentialResponse, error)
	// contains filtered or unexported methods
}

AKSBootstrapTokenRequestServer is the server API for AKSBootstrapTokenRequest service. All implementations must embed UnimplementedAKSBootstrapTokenRequestServer for forward compatibility

type CredentialRequest

type CredentialRequest struct {
	ResourceId   string `protobuf:"bytes,1,opt,name=ResourceId,proto3" json:"ResourceId,omitempty"`
	Nonce        string `protobuf:"bytes,2,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	AttestedData string `protobuf:"bytes,3,opt,name=AttestedData,proto3" json:"AttestedData,omitempty"`
	// contains filtered or unexported fields
}

A credential request has to match a valid generated nonce and auth data.

func (*CredentialRequest) Descriptor deprecated

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

Deprecated: Use CredentialRequest.ProtoReflect.Descriptor instead.

func (*CredentialRequest) GetAttestedData

func (x *CredentialRequest) GetAttestedData() string

func (*CredentialRequest) GetNonce

func (x *CredentialRequest) GetNonce() string

func (*CredentialRequest) GetResourceId

func (x *CredentialRequest) GetResourceId() string

func (*CredentialRequest) ProtoMessage

func (*CredentialRequest) ProtoMessage()

func (*CredentialRequest) ProtoReflect

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

func (*CredentialRequest) Reset

func (x *CredentialRequest) Reset()

func (*CredentialRequest) String

func (x *CredentialRequest) String() string

type CredentialResponse

type CredentialResponse struct {
	CertificateData string `protobuf:"bytes,1,opt,name=CertificateData,proto3" json:"CertificateData,omitempty"`
	KeyData         string `protobuf:"bytes,2,opt,name=KeyData,proto3" json:"KeyData,omitempty"`
	// contains filtered or unexported fields
}

The response credentials are used by kubelet to bootstrap itself.

func (*CredentialResponse) Descriptor deprecated

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

Deprecated: Use CredentialResponse.ProtoReflect.Descriptor instead.

func (*CredentialResponse) GetCertificateData

func (x *CredentialResponse) GetCertificateData() string

func (*CredentialResponse) GetKeyData

func (x *CredentialResponse) GetKeyData() string

func (*CredentialResponse) ProtoMessage

func (*CredentialResponse) ProtoMessage()

func (*CredentialResponse) ProtoReflect

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

func (*CredentialResponse) Reset

func (x *CredentialResponse) Reset()

func (*CredentialResponse) String

func (x *CredentialResponse) String() string

type NonceRequest

type NonceRequest struct {
	ResourceId string `protobuf:"bytes,1,opt,name=ResourceId,proto3" json:"ResourceId,omitempty"`
	// contains filtered or unexported fields
}

A nonce is generated for a given request.

func (*NonceRequest) Descriptor deprecated

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

Deprecated: Use NonceRequest.ProtoReflect.Descriptor instead.

func (*NonceRequest) GetResourceId

func (x *NonceRequest) GetResourceId() string

func (*NonceRequest) ProtoMessage

func (*NonceRequest) ProtoMessage()

func (*NonceRequest) ProtoReflect

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

func (*NonceRequest) Reset

func (x *NonceRequest) Reset()

func (*NonceRequest) String

func (x *NonceRequest) String() string

type NonceResponse

type NonceResponse struct {
	Nonce string `protobuf:"bytes,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	// contains filtered or unexported fields
}

This Response contains the nonce for the client to use in attested data.

func (*NonceResponse) Descriptor deprecated

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

Deprecated: Use NonceResponse.ProtoReflect.Descriptor instead.

func (*NonceResponse) GetNonce

func (x *NonceResponse) GetNonce() string

func (*NonceResponse) ProtoMessage

func (*NonceResponse) ProtoMessage()

func (*NonceResponse) ProtoReflect

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

func (*NonceResponse) Reset

func (x *NonceResponse) Reset()

func (*NonceResponse) String

func (x *NonceResponse) String() string

type UnimplementedAKSBootstrapTokenRequestServer

type UnimplementedAKSBootstrapTokenRequestServer struct {
}

UnimplementedAKSBootstrapTokenRequestServer must be embedded to have forward compatible implementations.

func (UnimplementedAKSBootstrapTokenRequestServer) GetCredential

func (UnimplementedAKSBootstrapTokenRequestServer) GetNonce

type UnsafeAKSBootstrapTokenRequestServer

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

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

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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