initproto

package
v2.2.0-pre Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var API_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "init.API",
	HandlerType: (*APIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Init",
			Handler:    _API_Init_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "init.proto",
}

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

Functions

func RegisterAPIServer

func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)

Types

type APIClient

type APIClient interface {
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error)
}

APIClient is the client API for API 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 NewAPIClient

func NewAPIClient(cc grpc.ClientConnInterface) APIClient

type APIServer

type APIServer interface {
	Init(context.Context, *InitRequest) (*InitResponse, error)
	// contains filtered or unexported methods
}

APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility

type InitRequest

type InitRequest struct {

	// repeated string autoscaling_node_groups = 1; removed
	MasterSecret           []byte        `protobuf:"bytes,2,opt,name=master_secret,json=masterSecret,proto3" json:"master_secret,omitempty"`
	KmsUri                 string        `protobuf:"bytes,3,opt,name=kms_uri,json=kmsUri,proto3" json:"kms_uri,omitempty"`
	StorageUri             string        `protobuf:"bytes,4,opt,name=storage_uri,json=storageUri,proto3" json:"storage_uri,omitempty"`
	KeyEncryptionKeyId     string        `protobuf:"bytes,5,opt,name=key_encryption_key_id,json=keyEncryptionKeyId,proto3" json:"key_encryption_key_id,omitempty"`
	UseExistingKek         bool          `protobuf:"varint,6,opt,name=use_existing_kek,json=useExistingKek,proto3" json:"use_existing_kek,omitempty"`
	CloudServiceAccountUri string        `` /* 131-byte string literal not displayed */
	KubernetesVersion      string        `protobuf:"bytes,8,opt,name=kubernetes_version,json=kubernetesVersion,proto3" json:"kubernetes_version,omitempty"`
	SshUserKeys            []*SSHUserKey `protobuf:"bytes,9,rep,name=ssh_user_keys,json=sshUserKeys,proto3" json:"ssh_user_keys,omitempty"`
	Salt                   []byte        `protobuf:"bytes,10,opt,name=salt,proto3" json:"salt,omitempty"`
	HelmDeployments        []byte        `protobuf:"bytes,11,opt,name=helm_deployments,json=helmDeployments,proto3" json:"helm_deployments,omitempty"`
	EnforcedPcrs           []uint32      `protobuf:"varint,12,rep,packed,name=enforced_pcrs,json=enforcedPcrs,proto3" json:"enforced_pcrs,omitempty"`
	EnforceIdkeydigest     bool          `protobuf:"varint,13,opt,name=enforce_idkeydigest,json=enforceIdkeydigest,proto3" json:"enforce_idkeydigest,omitempty"`
	ConformanceMode        bool          `protobuf:"varint,14,opt,name=conformance_mode,json=conformanceMode,proto3" json:"conformance_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*InitRequest) Descriptor deprecated

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

Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.

func (*InitRequest) GetCloudServiceAccountUri

func (x *InitRequest) GetCloudServiceAccountUri() string

func (*InitRequest) GetConformanceMode

func (x *InitRequest) GetConformanceMode() bool

func (*InitRequest) GetEnforceIdkeydigest

func (x *InitRequest) GetEnforceIdkeydigest() bool

func (*InitRequest) GetEnforcedPcrs

func (x *InitRequest) GetEnforcedPcrs() []uint32

func (*InitRequest) GetHelmDeployments

func (x *InitRequest) GetHelmDeployments() []byte

func (*InitRequest) GetKeyEncryptionKeyId

func (x *InitRequest) GetKeyEncryptionKeyId() string

func (*InitRequest) GetKmsUri

func (x *InitRequest) GetKmsUri() string

func (*InitRequest) GetKubernetesVersion

func (x *InitRequest) GetKubernetesVersion() string

func (*InitRequest) GetMasterSecret

func (x *InitRequest) GetMasterSecret() []byte

func (*InitRequest) GetSalt

func (x *InitRequest) GetSalt() []byte

func (*InitRequest) GetSshUserKeys

func (x *InitRequest) GetSshUserKeys() []*SSHUserKey

func (*InitRequest) GetStorageUri

func (x *InitRequest) GetStorageUri() string

func (*InitRequest) GetUseExistingKek

func (x *InitRequest) GetUseExistingKek() bool

func (*InitRequest) ProtoMessage

func (*InitRequest) ProtoMessage()

func (*InitRequest) ProtoReflect

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

func (*InitRequest) Reset

func (x *InitRequest) Reset()

func (*InitRequest) String

func (x *InitRequest) String() string

type InitResponse

type InitResponse struct {
	Kubeconfig []byte `protobuf:"bytes,1,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"`
	OwnerId    []byte `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	ClusterId  []byte `protobuf:"bytes,3,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*InitResponse) Descriptor deprecated

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

Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.

func (*InitResponse) GetClusterId

func (x *InitResponse) GetClusterId() []byte

func (*InitResponse) GetKubeconfig

func (x *InitResponse) GetKubeconfig() []byte

func (*InitResponse) GetOwnerId

func (x *InitResponse) GetOwnerId() []byte

func (*InitResponse) ProtoMessage

func (*InitResponse) ProtoMessage()

func (*InitResponse) ProtoReflect

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

func (*InitResponse) Reset

func (x *InitResponse) Reset()

func (*InitResponse) String

func (x *InitResponse) String() string

type SSHUserKey

type SSHUserKey struct {
	Username  string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// contains filtered or unexported fields
}

func (*SSHUserKey) Descriptor deprecated

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

Deprecated: Use SSHUserKey.ProtoReflect.Descriptor instead.

func (*SSHUserKey) GetPublicKey

func (x *SSHUserKey) GetPublicKey() string

func (*SSHUserKey) GetUsername

func (x *SSHUserKey) GetUsername() string

func (*SSHUserKey) ProtoMessage

func (*SSHUserKey) ProtoMessage()

func (*SSHUserKey) ProtoReflect

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

func (*SSHUserKey) Reset

func (x *SSHUserKey) Reset()

func (*SSHUserKey) String

func (x *SSHUserKey) String() string

type UnimplementedAPIServer

type UnimplementedAPIServer struct {
}

UnimplementedAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedAPIServer) Init

type UnsafeAPIServer

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

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

Jump to

Keyboard shortcuts

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