initproto

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 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
	// bytes master_secret = 2; removed
	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"`
	// string key_encryption_key_id = 5; removed
	// bool use_existing_kek = 6; removed
	CloudServiceAccountUri string `` /* 131-byte string literal not displayed */
	KubernetesVersion      string `protobuf:"bytes,8,opt,name=kubernetes_version,json=kubernetesVersion,proto3" json:"kubernetes_version,omitempty"`
	// repeated SSHUserKey ssh_user_keys = 9; removed
	// bytes salt = 10; removed
	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"`
	KubernetesComponents []*KubernetesComponent `protobuf:"bytes,15,rep,name=kubernetes_components,json=kubernetesComponents,proto3" json:"kubernetes_components,omitempty"`
	InitSecret           []byte                 `protobuf:"bytes,16,opt,name=init_secret,json=initSecret,proto3" json:"init_secret,omitempty"`
	ClusterName          string                 `protobuf:"bytes,17,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,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) GetClusterName added in v2.6.0

func (x *InitRequest) GetClusterName() 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) GetInitSecret added in v2.3.0

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

func (*InitRequest) GetKmsUri

func (x *InitRequest) GetKmsUri() string

func (*InitRequest) GetKubernetesComponents added in v2.3.0

func (x *InitRequest) GetKubernetesComponents() []*KubernetesComponent

func (*InitRequest) GetKubernetesVersion

func (x *InitRequest) GetKubernetesVersion() string

func (*InitRequest) GetStorageUri

func (x *InitRequest) GetStorageUri() string

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 KubernetesComponent added in v2.3.0

type KubernetesComponent struct {
	Url         string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Hash        string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	InstallPath string `protobuf:"bytes,3,opt,name=install_path,json=installPath,proto3" json:"install_path,omitempty"`
	Extract     bool   `protobuf:"varint,4,opt,name=extract,proto3" json:"extract,omitempty"`
	// contains filtered or unexported fields
}

func (*KubernetesComponent) Descriptor deprecated added in v2.3.0

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

Deprecated: Use KubernetesComponent.ProtoReflect.Descriptor instead.

func (*KubernetesComponent) GetExtract added in v2.3.0

func (x *KubernetesComponent) GetExtract() bool

func (*KubernetesComponent) GetHash added in v2.3.0

func (x *KubernetesComponent) GetHash() string

func (*KubernetesComponent) GetInstallPath added in v2.3.0

func (x *KubernetesComponent) GetInstallPath() string

func (*KubernetesComponent) GetUrl added in v2.3.0

func (x *KubernetesComponent) GetUrl() string

func (*KubernetesComponent) ProtoMessage added in v2.3.0

func (*KubernetesComponent) ProtoMessage()

func (*KubernetesComponent) ProtoReflect added in v2.3.0

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

func (*KubernetesComponent) Reset added in v2.3.0

func (x *KubernetesComponent) Reset()

func (*KubernetesComponent) String added in v2.3.0

func (x *KubernetesComponent) 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