proto

package
v0.0.0-...-cdc24ad Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_kubernetes_proto protoreflect.FileDescriptor
View Source
var Kubernetes_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kubernetes.Kubernetes",
	HandlerType: (*KubernetesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Cluster",
			Handler:    _Kubernetes_Cluster_Handler,
		},
		{
			MethodName: "CreateCluster",
			Handler:    _Kubernetes_CreateCluster_Handler,
		},
		{
			MethodName: "DeleteCluster",
			Handler:    _Kubernetes_DeleteCluster_Handler,
		},
		{
			MethodName: "ClusterConfig",
			Handler:    _Kubernetes_ClusterConfig_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Clusters",
			Handler:       _Kubernetes_Clusters_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ClusterApplications",
			Handler:       _Kubernetes_ClusterApplications_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "proto/kubernetes.proto",
}

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

Functions

func RegisterKubernetesServer

func RegisterKubernetesServer(s grpc.ServiceRegistrar, srv KubernetesServer)

Types

type ApplicationResponse

type ApplicationResponse struct {
	Name      string              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace string              `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Resources []*ResourceResponse `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplicationResponse) Descriptor deprecated

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

Deprecated: Use ApplicationResponse.ProtoReflect.Descriptor instead.

func (*ApplicationResponse) GetName

func (x *ApplicationResponse) GetName() string

func (*ApplicationResponse) GetNamespace

func (x *ApplicationResponse) GetNamespace() string

func (*ApplicationResponse) GetResources

func (x *ApplicationResponse) GetResources() []*ResourceResponse

func (*ApplicationResponse) ProtoMessage

func (*ApplicationResponse) ProtoMessage()

func (*ApplicationResponse) ProtoReflect

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

func (*ApplicationResponse) Reset

func (x *ApplicationResponse) Reset()

func (*ApplicationResponse) String

func (x *ApplicationResponse) String() string

type ApplicationsRequest

type ApplicationsRequest struct {
	Id              string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	FilterNamespace string `protobuf:"bytes,2,opt,name=FilterNamespace,proto3" json:"FilterNamespace,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplicationsRequest) Descriptor deprecated

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

Deprecated: Use ApplicationsRequest.ProtoReflect.Descriptor instead.

func (*ApplicationsRequest) GetFilterNamespace

func (x *ApplicationsRequest) GetFilterNamespace() string

func (*ApplicationsRequest) GetId

func (x *ApplicationsRequest) GetId() string

func (*ApplicationsRequest) ProtoMessage

func (*ApplicationsRequest) ProtoMessage()

func (*ApplicationsRequest) ProtoReflect

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

func (*ApplicationsRequest) Reset

func (x *ApplicationsRequest) Reset()

func (*ApplicationsRequest) String

func (x *ApplicationsRequest) String() string

type ClusterConfigResponse

type ClusterConfigResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterConfigResponse) Descriptor deprecated

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

Deprecated: Use ClusterConfigResponse.ProtoReflect.Descriptor instead.

func (*ClusterConfigResponse) GetData

func (x *ClusterConfigResponse) GetData() []byte

func (*ClusterConfigResponse) ProtoMessage

func (*ClusterConfigResponse) ProtoMessage()

func (*ClusterConfigResponse) ProtoReflect

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

func (*ClusterConfigResponse) Reset

func (x *ClusterConfigResponse) Reset()

func (*ClusterConfigResponse) String

func (x *ClusterConfigResponse) String() string

type ClusterRequest

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

func (*ClusterRequest) Descriptor deprecated

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

Deprecated: Use ClusterRequest.ProtoReflect.Descriptor instead.

func (*ClusterRequest) GetId

func (x *ClusterRequest) GetId() string

func (*ClusterRequest) ProtoMessage

func (*ClusterRequest) ProtoMessage()

func (*ClusterRequest) ProtoReflect

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

func (*ClusterRequest) Reset

func (x *ClusterRequest) Reset()

func (*ClusterRequest) String

func (x *ClusterRequest) String() string

type ClusterResponse

type ClusterResponse struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	State     string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"`
	Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"`
	Version   string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	Location  string `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterResponse) Descriptor deprecated

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

Deprecated: Use ClusterResponse.ProtoReflect.Descriptor instead.

func (*ClusterResponse) GetId

func (x *ClusterResponse) GetId() string

func (*ClusterResponse) GetLocation

func (x *ClusterResponse) GetLocation() string

func (*ClusterResponse) GetName

func (x *ClusterResponse) GetName() string

func (*ClusterResponse) GetReference

func (x *ClusterResponse) GetReference() string

func (*ClusterResponse) GetState

func (x *ClusterResponse) GetState() string

func (*ClusterResponse) GetVersion

func (x *ClusterResponse) GetVersion() string

func (*ClusterResponse) ProtoMessage

func (*ClusterResponse) ProtoMessage()

func (*ClusterResponse) ProtoReflect

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

func (*ClusterResponse) Reset

func (x *ClusterResponse) Reset()

func (*ClusterResponse) String

func (x *ClusterResponse) String() string

type ClustersRequest

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

func (*ClustersRequest) Descriptor deprecated

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

Deprecated: Use ClustersRequest.ProtoReflect.Descriptor instead.

func (*ClustersRequest) GetFilterReference

func (x *ClustersRequest) GetFilterReference() string

func (*ClustersRequest) ProtoMessage

func (*ClustersRequest) ProtoMessage()

func (*ClustersRequest) ProtoReflect

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

func (*ClustersRequest) Reset

func (x *ClustersRequest) Reset()

func (*ClustersRequest) String

func (x *ClustersRequest) String() string

type CreateClusterRequest

type CreateClusterRequest struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"`
	Version   string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Location  string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateClusterRequest) Descriptor deprecated

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

Deprecated: Use CreateClusterRequest.ProtoReflect.Descriptor instead.

func (*CreateClusterRequest) GetLocation

func (x *CreateClusterRequest) GetLocation() string

func (*CreateClusterRequest) GetName

func (x *CreateClusterRequest) GetName() string

func (*CreateClusterRequest) GetReference

func (x *CreateClusterRequest) GetReference() string

func (*CreateClusterRequest) GetVersion

func (x *CreateClusterRequest) GetVersion() string

func (*CreateClusterRequest) ProtoMessage

func (*CreateClusterRequest) ProtoMessage()

func (*CreateClusterRequest) ProtoReflect

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

func (*CreateClusterRequest) Reset

func (x *CreateClusterRequest) Reset()

func (*CreateClusterRequest) String

func (x *CreateClusterRequest) String() string

type DeleteClusterRequest

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

func (*DeleteClusterRequest) Descriptor deprecated

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

Deprecated: Use DeleteClusterRequest.ProtoReflect.Descriptor instead.

func (*DeleteClusterRequest) GetId

func (x *DeleteClusterRequest) GetId() string

func (*DeleteClusterRequest) ProtoMessage

func (*DeleteClusterRequest) ProtoMessage()

func (*DeleteClusterRequest) ProtoReflect

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

func (*DeleteClusterRequest) Reset

func (x *DeleteClusterRequest) Reset()

func (*DeleteClusterRequest) String

func (x *DeleteClusterRequest) String() string

type KubernetesClient

type KubernetesClient interface {
	Cluster(ctx context.Context, in *ClusterRequest, opts ...grpc.CallOption) (*ClusterResponse, error)
	Clusters(ctx context.Context, in *ClustersRequest, opts ...grpc.CallOption) (Kubernetes_ClustersClient, error)
	CreateCluster(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*ClusterResponse, error)
	DeleteCluster(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ClusterConfig(ctx context.Context, in *ClusterRequest, opts ...grpc.CallOption) (*ClusterConfigResponse, error)
	ClusterApplications(ctx context.Context, in *ApplicationsRequest, opts ...grpc.CallOption) (Kubernetes_ClusterApplicationsClient, error)
}

KubernetesClient is the client API for Kubernetes 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 NewKubernetesClient

func NewKubernetesClient(cc grpc.ClientConnInterface) KubernetesClient

type KubernetesServer

type KubernetesServer interface {
	Cluster(context.Context, *ClusterRequest) (*ClusterResponse, error)
	Clusters(*ClustersRequest, Kubernetes_ClustersServer) error
	CreateCluster(context.Context, *CreateClusterRequest) (*ClusterResponse, error)
	DeleteCluster(context.Context, *DeleteClusterRequest) (*emptypb.Empty, error)
	ClusterConfig(context.Context, *ClusterRequest) (*ClusterConfigResponse, error)
	ClusterApplications(*ApplicationsRequest, Kubernetes_ClusterApplicationsServer) error
	// contains filtered or unexported methods
}

KubernetesServer is the server API for Kubernetes service. All implementations must embed UnimplementedKubernetesServer for forward compatibility

type Kubernetes_ClusterApplicationsClient

type Kubernetes_ClusterApplicationsClient interface {
	Recv() (*ApplicationResponse, error)
	grpc.ClientStream
}

type Kubernetes_ClusterApplicationsServer

type Kubernetes_ClusterApplicationsServer interface {
	Send(*ApplicationResponse) error
	grpc.ServerStream
}

type Kubernetes_ClustersClient

type Kubernetes_ClustersClient interface {
	Recv() (*ClusterResponse, error)
	grpc.ClientStream
}

type Kubernetes_ClustersServer

type Kubernetes_ClustersServer interface {
	Send(*ClusterResponse) error
	grpc.ServerStream
}

type ResourceResponse

type ResourceResponse struct {
	Category        string                   `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"`
	Kind            string                   `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	Name            string                   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Namespace       string                   `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Labels          map[string]string        `` /* 153-byte string literal not displayed */
	Annotations     map[string]string        `` /* 163-byte string literal not displayed */
	Status          string                   `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
	Violations      []*ViolationResponse     `protobuf:"bytes,9,rep,name=violations,proto3" json:"violations,omitempty"`
	Vulnerabilities []*VulnerabilityResponse `protobuf:"bytes,10,rep,name=vulnerabilities,proto3" json:"vulnerabilities,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceResponse) Descriptor deprecated

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

Deprecated: Use ResourceResponse.ProtoReflect.Descriptor instead.

func (*ResourceResponse) GetAnnotations

func (x *ResourceResponse) GetAnnotations() map[string]string

func (*ResourceResponse) GetCategory

func (x *ResourceResponse) GetCategory() string

func (*ResourceResponse) GetKind

func (x *ResourceResponse) GetKind() string

func (*ResourceResponse) GetLabels

func (x *ResourceResponse) GetLabels() map[string]string

func (*ResourceResponse) GetName

func (x *ResourceResponse) GetName() string

func (*ResourceResponse) GetNamespace

func (x *ResourceResponse) GetNamespace() string

func (*ResourceResponse) GetStatus

func (x *ResourceResponse) GetStatus() string

func (*ResourceResponse) GetViolations

func (x *ResourceResponse) GetViolations() []*ViolationResponse

func (*ResourceResponse) GetVulnerabilities

func (x *ResourceResponse) GetVulnerabilities() []*VulnerabilityResponse

func (*ResourceResponse) ProtoMessage

func (*ResourceResponse) ProtoMessage()

func (*ResourceResponse) ProtoReflect

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

func (*ResourceResponse) Reset

func (x *ResourceResponse) Reset()

func (*ResourceResponse) String

func (x *ResourceResponse) String() string

type UnimplementedKubernetesServer

type UnimplementedKubernetesServer struct {
}

UnimplementedKubernetesServer must be embedded to have forward compatible implementations.

func (UnimplementedKubernetesServer) Cluster

func (UnimplementedKubernetesServer) ClusterApplications

func (UnimplementedKubernetesServer) ClusterConfig

func (UnimplementedKubernetesServer) Clusters

func (UnimplementedKubernetesServer) CreateCluster

func (UnimplementedKubernetesServer) DeleteCluster

type UnsafeKubernetesServer

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

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

type ViolationResponse

type ViolationResponse struct {
	Category string `protobuf:"bytes,1,opt,name=Category,proto3" json:"Category,omitempty"`
	Policy   string `protobuf:"bytes,2,opt,name=Policy,proto3" json:"Policy,omitempty"`
	Rule     string `protobuf:"bytes,3,opt,name=Rule,proto3" json:"Rule,omitempty"`
	Result   string `protobuf:"bytes,4,opt,name=Result,proto3" json:"Result,omitempty"`
	Severity string `protobuf:"bytes,5,opt,name=Severity,proto3" json:"Severity,omitempty"`
	Message  string `protobuf:"bytes,6,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*ViolationResponse) Descriptor deprecated

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

Deprecated: Use ViolationResponse.ProtoReflect.Descriptor instead.

func (*ViolationResponse) GetCategory

func (x *ViolationResponse) GetCategory() string

func (*ViolationResponse) GetMessage

func (x *ViolationResponse) GetMessage() string

func (*ViolationResponse) GetPolicy

func (x *ViolationResponse) GetPolicy() string

func (*ViolationResponse) GetResult

func (x *ViolationResponse) GetResult() string

func (*ViolationResponse) GetRule

func (x *ViolationResponse) GetRule() string

func (*ViolationResponse) GetSeverity

func (x *ViolationResponse) GetSeverity() string

func (*ViolationResponse) ProtoMessage

func (*ViolationResponse) ProtoMessage()

func (*ViolationResponse) ProtoReflect

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

func (*ViolationResponse) Reset

func (x *ViolationResponse) Reset()

func (*ViolationResponse) String

func (x *ViolationResponse) String() string

type VulnerabilityResponse

type VulnerabilityResponse struct {
	Severity    string `protobuf:"bytes,1,opt,name=severity,proto3" json:"severity,omitempty"`
	Resource    string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	Version     string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Title       string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnerabilityResponse) Descriptor deprecated

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

Deprecated: Use VulnerabilityResponse.ProtoReflect.Descriptor instead.

func (*VulnerabilityResponse) GetDescription

func (x *VulnerabilityResponse) GetDescription() string

func (*VulnerabilityResponse) GetResource

func (x *VulnerabilityResponse) GetResource() string

func (*VulnerabilityResponse) GetSeverity

func (x *VulnerabilityResponse) GetSeverity() string

func (*VulnerabilityResponse) GetTitle

func (x *VulnerabilityResponse) GetTitle() string

func (*VulnerabilityResponse) GetVersion

func (x *VulnerabilityResponse) GetVersion() string

func (*VulnerabilityResponse) ProtoMessage

func (*VulnerabilityResponse) ProtoMessage()

func (*VulnerabilityResponse) ProtoReflect

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

func (*VulnerabilityResponse) Reset

func (x *VulnerabilityResponse) Reset()

func (*VulnerabilityResponse) String

func (x *VulnerabilityResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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