aks_tls_bootstrap

package
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AKSBootstrapTokenRequest_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aks_tls_bootstrap.AKSBootstrapTokenRequest",
	HandlerType: (*AKSBootstrapTokenRequestServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNonce",
			Handler:    _AKSBootstrapTokenRequest_GetNonce_Handler,
		},
		{
			MethodName: "GetToken",
			Handler:    _AKSBootstrapTokenRequest_GetToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/proto/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_proto_bootstrap_proto protoreflect.FileDescriptor

Functions

func RegisterAKSBootstrapTokenRequestServer

func RegisterAKSBootstrapTokenRequestServer(s grpc.ServiceRegistrar, srv AKSBootstrapTokenRequestServer)

Types

type AKSBootstrapTokenRequestClient

type AKSBootstrapTokenRequestClient interface {
	// 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.
	GetToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, 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.

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.
	GetToken(context.Context, *TokenRequest) (*TokenResponse, error)
	// contains filtered or unexported methods
}

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

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 TokenRequest

type TokenRequest 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 token request has to match a valid generated nonce and auth data.

func (*TokenRequest) Descriptor deprecated

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

Deprecated: Use TokenRequest.ProtoReflect.Descriptor instead.

func (*TokenRequest) GetAttestedData

func (x *TokenRequest) GetAttestedData() string

func (*TokenRequest) GetNonce

func (x *TokenRequest) GetNonce() string

func (*TokenRequest) GetResourceId

func (x *TokenRequest) GetResourceId() string

func (*TokenRequest) ProtoMessage

func (*TokenRequest) ProtoMessage()

func (*TokenRequest) ProtoReflect

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

func (*TokenRequest) Reset

func (x *TokenRequest) Reset()

func (*TokenRequest) String

func (x *TokenRequest) String() string

type TokenResponse

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

The response token is used by kubelet to bootstrap itself.

func (*TokenResponse) Descriptor deprecated

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

Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead.

func (*TokenResponse) GetExpiration

func (x *TokenResponse) GetExpiration() string

func (*TokenResponse) GetToken

func (x *TokenResponse) GetToken() string

func (*TokenResponse) ProtoMessage

func (*TokenResponse) ProtoMessage()

func (*TokenResponse) ProtoReflect

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

func (*TokenResponse) Reset

func (x *TokenResponse) Reset()

func (*TokenResponse) String

func (x *TokenResponse) String() string

type UnimplementedAKSBootstrapTokenRequestServer

type UnimplementedAKSBootstrapTokenRequestServer struct {
}

UnimplementedAKSBootstrapTokenRequestServer must be embedded to have forward compatible implementations.

func (UnimplementedAKSBootstrapTokenRequestServer) GetNonce

func (UnimplementedAKSBootstrapTokenRequestServer) GetToken

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.

Jump to

Keyboard shortcuts

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