v1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 contains the v1 GRPC client and server definitions for implementing Tenant interactions for the Console.

Package tenant is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Clusters_Create_FullMethodName   = "/chainguard.platform.tenant.Clusters/Create"
	Clusters_Delete_FullMethodName   = "/chainguard.platform.tenant.Clusters/Delete"
	Clusters_Discover_FullMethodName = "/chainguard.platform.tenant.Clusters/Discover"
	Clusters_List_FullMethodName     = "/chainguard.platform.tenant.Clusters/List"
	Clusters_Update_FullMethodName   = "/chainguard.platform.tenant.Clusters/Update"
	Clusters_Profiles_FullMethodName = "/chainguard.platform.tenant.Clusters/Profiles"
	Clusters_Config_FullMethodName   = "/chainguard.platform.tenant.Clusters/Config"
	Clusters_CIDR_FullMethodName     = "/chainguard.platform.tenant.Clusters/CIDR"
)
View Source
const (
	Attestations_List_FullMethodName = "/chainguard.platform.tenant.Attestations/List"
)
View Source
const (
	Namespaces_List_FullMethodName = "/chainguard.platform.tenant.Namespaces/List"
)
View Source
const (
	Nodes_List_FullMethodName = "/chainguard.platform.tenant.Nodes/List"
)
View Source
const (
	PolicyResults_List_FullMethodName = "/chainguard.platform.tenant.PolicyResults/List"
)
View Source
const (
	RecordContexts_List_FullMethodName = "/chainguard.platform.tenant.RecordContexts/List"
)
View Source
const (
	Records_List_FullMethodName = "/chainguard.platform.tenant.Records/List"
)
View Source
const (
	Risks_List_FullMethodName = "/chainguard.platform.tenant.Risks/List"
)
View Source
const (
	Sboms_List_FullMethodName = "/chainguard.platform.tenant.Sboms/List"
)
View Source
const (
	Signatures_List_FullMethodName = "/chainguard.platform.tenant.Signatures/List"
)
View Source
const (
	VulnReports_List_FullMethodName = "/chainguard.platform.tenant.VulnReports/List"
)
View Source
const (
	Workloads_List_FullMethodName = "/chainguard.platform.tenant.Workloads/List"
)

Variables

View Source
var (
	ClusterDiscoveryRequest_State_name = map[int32]string{
		0: "UNKNOWN",
		1: "UNSUPPORTED",
		2: "NEEDS_WORK",
		3: "ELIGIBLE",
		4: "ENROLLED",
	}
	ClusterDiscoveryRequest_State_value = map[string]int32{
		"UNKNOWN":     0,
		"UNSUPPORTED": 1,
		"NEEDS_WORK":  2,
		"ELIGIBLE":    3,
		"ENROLLED":    4,
	}
)

Enum value maps for ClusterDiscoveryRequest_State.

View Source
var (
	Cluster_NamespaceEnforcementMode_name = map[int32]string{
		0: "OptOut",
		1: "OptIn",
	}
	Cluster_NamespaceEnforcementMode_value = map[string]int32{
		"OptOut": 0,
		"OptIn":  1,
	}
)

Enum value maps for Cluster_NamespaceEnforcementMode.

View Source
var (
	Cluster_Provider_name = map[int32]string{
		0:   "UNKNOWN",
		1:   "GKE",
		2:   "EKS",
		10:  "CLOUD_RUN",
		20:  "ECS",
		21:  "APP_RUNNER",
		100: "KIND",
	}
	Cluster_Provider_value = map[string]int32{
		"UNKNOWN":    0,
		"GKE":        1,
		"EKS":        2,
		"CLOUD_RUN":  10,
		"ECS":        20,
		"APP_RUNNER": 21,
		"KIND":       100,
	}
)

Enum value maps for Cluster_Provider.

View Source
var (
	Cluster_Location_name = map[int32]string{
		0:   "AUTO",
		101: "US_EAST",
		102: "US_CENTRAL",
		103: "US_WEST",
	}
	Cluster_Location_value = map[string]int32{
		"AUTO":       0,
		"US_EAST":    101,
		"US_CENTRAL": 102,
		"US_WEST":    103,
	}
)

Enum value maps for Cluster_Location.

View Source
var (
	Cluster_Status_State_name = map[int32]string{
		0: "UNKNOWN",
		1: "Ready",
		2: "NotReady",
	}
	Cluster_Status_State_value = map[string]int32{
		"UNKNOWN":  0,
		"Ready":    1,
		"NotReady": 2,
	}
)

Enum value maps for Cluster_Status_State.

View Source
var (
	ClusterConfigRequest_NamespaceEnforcementMode_name = map[int32]string{
		0: "OptOut",
		1: "OptIn",
	}
	ClusterConfigRequest_NamespaceEnforcementMode_value = map[string]int32{
		"OptOut": 0,
		"OptIn":  1,
	}
)

Enum value maps for ClusterConfigRequest_NamespaceEnforcementMode.

View Source
var (
	RecordContext_Ancestry_Role_name = map[int32]string{
		0: "UNKNOWN",
		1: "BASE",
		2: "DERIVED",
	}
	RecordContext_Ancestry_Role_value = map[string]int32{
		"UNKNOWN": 0,
		"BASE":    1,
		"DERIVED": 2,
	}
)

Enum value maps for RecordContext_Ancestry_Role.

View Source
var (
	RecordContext_Variant_Role_name = map[int32]string{
		0: "UNKNOWN",
		1: "INDEX",
		2: "VARIANT",
	}
	RecordContext_Variant_Role_value = map[string]int32{
		"UNKNOWN": 0,
		"INDEX":   1,
		"VARIANT": 2,
	}
)

Enum value maps for RecordContext_Variant_Role.

View Source
var (
	PolicyResult_Result_name = map[int32]string{
		0: "UNKNOWN",
		1: "PASS",
		2: "WARN",
		3: "FAIL",
	}
	PolicyResult_Result_value = map[string]int32{
		"UNKNOWN": 0,
		"PASS":    1,
		"WARN":    2,
		"FAIL":    3,
	}
)

Enum value maps for PolicyResult_Result.

View Source
var (
	PolicyResult_ParentType_name = map[int32]string{
		0: "PARENT_TYPE_UNKNOWN",
		1: "RECORD",
		2: "RECORD_CONTEXT",
		3: "WORKLOAD",
	}
	PolicyResult_ParentType_value = map[string]int32{
		"PARENT_TYPE_UNKNOWN": 0,
		"RECORD":              1,
		"RECORD_CONTEXT":      2,
		"WORKLOAD":            3,
	}
)

Enum value maps for PolicyResult_ParentType.

View Source
var (
	RecordStatus_Result_name = map[int32]string{
		0: "UNKNOWN",
		1: "PASS",
		2: "FAIL",
	}
	RecordStatus_Result_value = map[string]int32{
		"UNKNOWN": 0,
		"PASS":    1,
		"FAIL":    2,
	}
)

Enum value maps for RecordStatus_Result.

View Source
var (
	Context_Ancestry_Role_name = map[int32]string{
		0: "UNKNOWN",
		1: "BASE",
		2: "DERIVED",
	}
	Context_Ancestry_Role_value = map[string]int32{
		"UNKNOWN": 0,
		"BASE":    1,
		"DERIVED": 2,
	}
)

Enum value maps for Context_Ancestry_Role.

View Source
var (
	Context_Variant_Role_name = map[int32]string{
		0: "UNKNOWN",
		1: "INDEX",
		2: "VARIANT",
	}
	Context_Variant_Role_value = map[string]int32{
		"UNKNOWN": 0,
		"INDEX":   1,
		"VARIANT": 2,
	}
)

Enum value maps for Context_Variant_Role.

View Source
var (
	Risk_MissingData_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "SIGNATURE",
		2: "SBOM",
		3: "POLICY",
	}
	Risk_MissingData_Type_value = map[string]int32{
		"UNKNOWN":   0,
		"SIGNATURE": 1,
		"SBOM":      2,
		"POLICY":    3,
	}
)

Enum value maps for Risk_MissingData_Type.

View Source
var (
	Risk_Vulnerability_Severity_name = map[int32]string{
		0: "UNKNOWN",
		1: "LOW",
		2: "MEDIUM",
		3: "HIGH",
		4: "CRITICAL",
	}
	Risk_Vulnerability_Severity_value = map[string]int32{
		"UNKNOWN":  0,
		"LOW":      1,
		"MEDIUM":   2,
		"HIGH":     3,
		"CRITICAL": 4,
	}
)

Enum value maps for Risk_Vulnerability_Severity.

View Source
var (
	Sbom2_Source_name = map[int32]string{
		0: "UNKNOWN",
		1: "INGESTED",
		2: "GENERATED",
	}
	Sbom2_Source_value = map[string]int32{
		"UNKNOWN":   0,
		"INGESTED":  1,
		"GENERATED": 2,
	}
)

Enum value maps for Sbom2_Source.

View Source
var (
	ComponentGraph_Edge_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "DESCRIBES",
		2: "CONTAINS",
		3: "DEPENDS_ON",
		4: "GENERATED_FROM",
	}
	ComponentGraph_Edge_Type_value = map[string]int32{
		"UNKNOWN":        0,
		"DESCRIBES":      1,
		"CONTAINS":       2,
		"DEPENDS_ON":     3,
		"GENERATED_FROM": 4,
	}
)

Enum value maps for ComponentGraph_Edge_Type.

View Source
var (
	VulnerabilityRecord_Severity_name = map[int32]string{
		0: "UNKNOWN",
		1: "LOW",
		2: "MEDIUM",
		3: "HIGH",
		4: "CRITICAL",
	}
	VulnerabilityRecord_Severity_value = map[string]int32{
		"UNKNOWN":  0,
		"LOW":      1,
		"MEDIUM":   2,
		"HIGH":     3,
		"CRITICAL": 4,
	}
)

Enum value maps for VulnerabilityRecord_Severity.

View Source
var (
	Fix_State_name = map[int32]string{
		0: "UNKNOWN",
		1: "FIXED",
		2: "NOT_FIXED",
		3: "WONT_FIX",
	}
	Fix_State_value = map[string]int32{
		"UNKNOWN":   0,
		"FIXED":     1,
		"NOT_FIXED": 2,
		"WONT_FIX":  3,
	}
)

Enum value maps for Fix_State.

View Source
var Attestations_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.Attestations",
	HandlerType: (*AttestationsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Attestations_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "attestation.platform.proto",
}

Attestations_ServiceDesc is the grpc.ServiceDesc for Attestations 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 Clusters_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.Clusters",
	HandlerType: (*ClustersServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Clusters_Create_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Clusters_Delete_Handler,
		},
		{
			MethodName: "Discover",
			Handler:    _Clusters_Discover_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Clusters_List_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Clusters_Update_Handler,
		},
		{
			MethodName: "Profiles",
			Handler:    _Clusters_Profiles_Handler,
		},
		{
			MethodName: "Config",
			Handler:    _Clusters_Config_Handler,
		},
		{
			MethodName: "CIDR",
			Handler:    _Clusters_CIDR_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cluster.platform.proto",
}

Clusters_ServiceDesc is the grpc.ServiceDesc for Clusters 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_attestation_platform_proto protoreflect.FileDescriptor
View Source
var File_cluster_platform_proto protoreflect.FileDescriptor
View Source
var File_context_platform_proto protoreflect.FileDescriptor
View Source
var File_namespace_platform_proto protoreflect.FileDescriptor
View Source
var File_node_platform_proto protoreflect.FileDescriptor
View Source
var File_policy_results_platform_proto protoreflect.FileDescriptor
View Source
var File_record_platform_proto protoreflect.FileDescriptor
View Source
var File_risk_platform_proto protoreflect.FileDescriptor
View Source
var File_sbom_platform_proto protoreflect.FileDescriptor
View Source
var File_signature_platform_proto protoreflect.FileDescriptor
View Source
var File_vuln_platform_proto protoreflect.FileDescriptor
View Source
var File_workload_platform_proto protoreflect.FileDescriptor
View Source
var Namespaces_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.Namespaces",
	HandlerType: (*NamespacesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Namespaces_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "namespace.platform.proto",
}

Namespaces_ServiceDesc is the grpc.ServiceDesc for Namespaces 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 Nodes_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.Nodes",
	HandlerType: (*NodesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Nodes_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "node.platform.proto",
}

Nodes_ServiceDesc is the grpc.ServiceDesc for Nodes 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 PolicyResults_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.PolicyResults",
	HandlerType: (*PolicyResultsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _PolicyResults_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "policy_results.platform.proto",
}

PolicyResults_ServiceDesc is the grpc.ServiceDesc for PolicyResults 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 RecordContexts_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.RecordContexts",
	HandlerType: (*RecordContextsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _RecordContexts_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "context.platform.proto",
}

RecordContexts_ServiceDesc is the grpc.ServiceDesc for RecordContexts 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 Records_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.Records",
	HandlerType: (*RecordsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Records_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "record.platform.proto",
}

Records_ServiceDesc is the grpc.ServiceDesc for Records 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 Risks_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.Risks",
	HandlerType: (*RisksServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Risks_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "risk.platform.proto",
}

Risks_ServiceDesc is the grpc.ServiceDesc for Risks 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 Sboms_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.Sboms",
	HandlerType: (*SbomsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Sboms_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sbom.platform.proto",
}

Sboms_ServiceDesc is the grpc.ServiceDesc for Sboms 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 Signatures_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.Signatures",
	HandlerType: (*SignaturesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Signatures_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "signature.platform.proto",
}

Signatures_ServiceDesc is the grpc.ServiceDesc for Signatures 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 VulnReports_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.VulnReports",
	HandlerType: (*VulnReportsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _VulnReports_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "vuln.platform.proto",
}

VulnReports_ServiceDesc is the grpc.ServiceDesc for VulnReports 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 Workloads_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.tenant.Workloads",
	HandlerType: (*WorkloadsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Workloads_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "workload.platform.proto",
}

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

Functions

func RegisterAttestationsHandler

func RegisterAttestationsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAttestationsHandler registers the http handlers for service Attestations to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAttestationsHandlerClient

func RegisterAttestationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AttestationsClient) error

RegisterAttestationsHandlerClient registers the http handlers for service Attestations to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AttestationsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AttestationsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AttestationsClient" to call the correct interceptors.

func RegisterAttestationsHandlerFromEndpoint

func RegisterAttestationsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAttestationsHandlerFromEndpoint is same as RegisterAttestationsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAttestationsHandlerServer

func RegisterAttestationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AttestationsServer) error

RegisterAttestationsHandlerServer registers the http handlers for service Attestations to "mux". UnaryRPC :call AttestationsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAttestationsHandlerFromEndpoint instead.

func RegisterAttestationsServer

func RegisterAttestationsServer(s grpc.ServiceRegistrar, srv AttestationsServer)

func RegisterClustersHandler

func RegisterClustersHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterClustersHandler registers the http handlers for service Clusters to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterClustersHandlerClient

func RegisterClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ClustersClient) error

RegisterClustersHandlerClient registers the http handlers for service Clusters to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ClustersClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ClustersClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ClustersClient" to call the correct interceptors.

func RegisterClustersHandlerFromEndpoint

func RegisterClustersHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterClustersHandlerFromEndpoint is same as RegisterClustersHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterClustersHandlerServer

func RegisterClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ClustersServer) error

RegisterClustersHandlerServer registers the http handlers for service Clusters to "mux". UnaryRPC :call ClustersServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterClustersHandlerFromEndpoint instead.

func RegisterClustersServer

func RegisterClustersServer(s grpc.ServiceRegistrar, srv ClustersServer)

func RegisterNamespacesServer

func RegisterNamespacesServer(s grpc.ServiceRegistrar, srv NamespacesServer)

func RegisterNodesServer

func RegisterNodesServer(s grpc.ServiceRegistrar, srv NodesServer)

func RegisterPolicyResultsHandler

func RegisterPolicyResultsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPolicyResultsHandler registers the http handlers for service PolicyResults to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPolicyResultsHandlerClient

func RegisterPolicyResultsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PolicyResultsClient) error

RegisterPolicyResultsHandlerClient registers the http handlers for service PolicyResults to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PolicyResultsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PolicyResultsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PolicyResultsClient" to call the correct interceptors.

func RegisterPolicyResultsHandlerFromEndpoint

func RegisterPolicyResultsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPolicyResultsHandlerFromEndpoint is same as RegisterPolicyResultsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPolicyResultsHandlerServer

func RegisterPolicyResultsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PolicyResultsServer) error

RegisterPolicyResultsHandlerServer registers the http handlers for service PolicyResults to "mux". UnaryRPC :call PolicyResultsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPolicyResultsHandlerFromEndpoint instead.

func RegisterPolicyResultsServer

func RegisterPolicyResultsServer(s grpc.ServiceRegistrar, srv PolicyResultsServer)

func RegisterRecordContextsServer

func RegisterRecordContextsServer(s grpc.ServiceRegistrar, srv RecordContextsServer)

func RegisterRecordsHandler

func RegisterRecordsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterRecordsHandler registers the http handlers for service Records to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterRecordsHandlerClient

func RegisterRecordsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RecordsClient) error

RegisterRecordsHandlerClient registers the http handlers for service Records to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RecordsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RecordsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RecordsClient" to call the correct interceptors.

func RegisterRecordsHandlerFromEndpoint

func RegisterRecordsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterRecordsHandlerFromEndpoint is same as RegisterRecordsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterRecordsHandlerServer

func RegisterRecordsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RecordsServer) error

RegisterRecordsHandlerServer registers the http handlers for service Records to "mux". UnaryRPC :call RecordsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRecordsHandlerFromEndpoint instead.

func RegisterRecordsServer

func RegisterRecordsServer(s grpc.ServiceRegistrar, srv RecordsServer)

func RegisterRisksHandler

func RegisterRisksHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterRisksHandler registers the http handlers for service Risks to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterRisksHandlerClient

func RegisterRisksHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RisksClient) error

RegisterRisksHandlerClient registers the http handlers for service Risks to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RisksClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RisksClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RisksClient" to call the correct interceptors.

func RegisterRisksHandlerFromEndpoint

func RegisterRisksHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterRisksHandlerFromEndpoint is same as RegisterRisksHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterRisksHandlerServer

func RegisterRisksHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RisksServer) error

RegisterRisksHandlerServer registers the http handlers for service Risks to "mux". UnaryRPC :call RisksServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRisksHandlerFromEndpoint instead.

func RegisterRisksServer

func RegisterRisksServer(s grpc.ServiceRegistrar, srv RisksServer)

func RegisterSbomsHandler

func RegisterSbomsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSbomsHandler registers the http handlers for service Sboms to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSbomsHandlerClient

func RegisterSbomsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SbomsClient) error

RegisterSbomsHandlerClient registers the http handlers for service Sboms to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SbomsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SbomsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SbomsClient" to call the correct interceptors.

func RegisterSbomsHandlerFromEndpoint

func RegisterSbomsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSbomsHandlerFromEndpoint is same as RegisterSbomsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSbomsHandlerServer

func RegisterSbomsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SbomsServer) error

RegisterSbomsHandlerServer registers the http handlers for service Sboms to "mux". UnaryRPC :call SbomsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSbomsHandlerFromEndpoint instead.

func RegisterSbomsServer

func RegisterSbomsServer(s grpc.ServiceRegistrar, srv SbomsServer)

func RegisterSignaturesServer

func RegisterSignaturesServer(s grpc.ServiceRegistrar, srv SignaturesServer)

func RegisterVulnReportsHandler

func RegisterVulnReportsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterVulnReportsHandler registers the http handlers for service VulnReports to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterVulnReportsHandlerClient

func RegisterVulnReportsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VulnReportsClient) error

RegisterVulnReportsHandlerClient registers the http handlers for service VulnReports to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "VulnReportsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "VulnReportsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "VulnReportsClient" to call the correct interceptors.

func RegisterVulnReportsHandlerFromEndpoint

func RegisterVulnReportsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterVulnReportsHandlerFromEndpoint is same as RegisterVulnReportsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterVulnReportsHandlerServer

func RegisterVulnReportsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VulnReportsServer) error

RegisterVulnReportsHandlerServer registers the http handlers for service VulnReports to "mux". UnaryRPC :call VulnReportsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterVulnReportsHandlerFromEndpoint instead.

func RegisterVulnReportsServer

func RegisterVulnReportsServer(s grpc.ServiceRegistrar, srv VulnReportsServer)

func RegisterWorkloadsServer

func RegisterWorkloadsServer(s grpc.ServiceRegistrar, srv WorkloadsServer)

Types

type Attestation

type Attestation struct {

	// id, The Attestation UIDP at which this Attestation resides in the hierarchy.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// raw_attestation is a free form type to stub in any attestations so we don't end up a
	// adding new tables for all the new type of attestations, initial goal is to add image configs
	// and anything which comes up after that
	RawAttestation []byte `protobuf:"bytes,2,opt,name=raw_attestation,json=rawAttestation,proto3" json:"raw_attestation,omitempty"`
	// format holds the Document format type
	Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"`
	// generated_at holds when the Attestation was generated.
	GeneratedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"`
	// Name of the Attestation.
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// Short description of the Attestation
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// digest of the Attestation when ingested
	Digest *string `protobuf:"bytes,7,opt,name=digest,proto3,oneof" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

Attestation represents a normalized Attestation that we have ingested into our datastore. They are linked to Signatures via ID, as in they are 'children' of Signatures There can be multiple of these that we keep.

func (*Attestation) Descriptor deprecated

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

Deprecated: Use Attestation.ProtoReflect.Descriptor instead.

func (*Attestation) GetDescription

func (x *Attestation) GetDescription() string

func (*Attestation) GetDigest

func (x *Attestation) GetDigest() string

func (*Attestation) GetFormat

func (x *Attestation) GetFormat() string

func (*Attestation) GetGeneratedAt

func (x *Attestation) GetGeneratedAt() *timestamppb.Timestamp

func (*Attestation) GetId

func (x *Attestation) GetId() string

func (*Attestation) GetName

func (x *Attestation) GetName() string

func (*Attestation) GetRawAttestation

func (x *Attestation) GetRawAttestation() []byte

func (*Attestation) ProtoMessage

func (*Attestation) ProtoMessage()

func (*Attestation) ProtoReflect

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

func (*Attestation) Reset

func (x *Attestation) Reset()

func (*Attestation) String

func (x *Attestation) String() string

type AttestationFilter

type AttestationFilter struct {

	// id is the exact UID of the record.
	Id   string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Uidp *v1.UIDPFilter `protobuf:"bytes,2,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// contains filtered or unexported fields
}

func (*AttestationFilter) Descriptor deprecated

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

Deprecated: Use AttestationFilter.ProtoReflect.Descriptor instead.

func (*AttestationFilter) GetId

func (x *AttestationFilter) GetId() string

func (*AttestationFilter) GetUidp

func (x *AttestationFilter) GetUidp() *v1.UIDPFilter

func (*AttestationFilter) ProtoMessage

func (*AttestationFilter) ProtoMessage()

func (*AttestationFilter) ProtoReflect

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

func (*AttestationFilter) Reset

func (x *AttestationFilter) Reset()

func (*AttestationFilter) String

func (x *AttestationFilter) String() string

type AttestationList

type AttestationList struct {
	Items []*Attestation `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*AttestationList) Descriptor deprecated

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

Deprecated: Use AttestationList.ProtoReflect.Descriptor instead.

func (*AttestationList) GetItems

func (x *AttestationList) GetItems() []*Attestation

func (*AttestationList) ProtoMessage

func (*AttestationList) ProtoMessage()

func (*AttestationList) ProtoReflect

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

func (*AttestationList) Reset

func (x *AttestationList) Reset()

func (*AttestationList) String

func (x *AttestationList) String() string

type AttestationsClient

type AttestationsClient interface {
	List(ctx context.Context, in *AttestationFilter, opts ...grpc.CallOption) (*AttestationList, error)
}

AttestationsClient is the client API for Attestations 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 AttestationsServer

type AttestationsServer interface {
	List(context.Context, *AttestationFilter) (*AttestationList, error)
	// contains filtered or unexported methods
}

AttestationsServer is the server API for Attestations service. All implementations must embed UnimplementedAttestationsServer for forward compatibility

type Clients

type Clients interface {
	Clusters() ClustersClient
	Records() RecordsClient
	RecordContexts() RecordContextsClient
	Sboms() SbomsClient
	Risks() RisksClient
	Signatures() SignaturesClient
	PolicyResults() PolicyResultsClient
	VulnReports() VulnReportsClient

	Nodes() NodesClient
	Namespaces() NamespacesClient
	Workloads() WorkloadsClient

	Close() error
}

func NewClients

func NewClients(ctx context.Context, addr string, token string) (Clients, error)

func NewClientsFromConnection

func NewClientsFromConnection(conn *grpc.ClientConn) Clients

type Cluster

type Cluster struct {

	// id, The Cluster UIDP under which this Cluster resides.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// remote_id is the remote ID of this cluster.
	RemoteId string `protobuf:"bytes,2,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
	// issuer is the identity issuer tied to this cluster.
	Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// registered tracks the timestamp at which this cluster was registered.
	Registered *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=registered,proto3" json:"registered,omitempty"`
	// last_seen tracks the timestamp at which this cluster was last seen.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// version holds the Kubernetes version last reported by the cluster.
	Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
	// agent_version holds the version of the Chainguard agent last reported by the cluster.
	AgentVersion string `protobuf:"bytes,7,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
	// activity is a mapping from "Source" URLs to an activity record summarizing
	// recent activity from this source.
	Activity map[string]*ClusterActivity `` /* 157-byte string literal not displayed */
	// name of the cluster.
	Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"`
	// a short description of this cluster.
	Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"`
	// group the cluster resides in
	Group *v1.Group `protobuf:"bytes,99,opt,name=group,proto3" json:"group,omitempty"`
	// managed_name is the unique name we have given to this cluster's managed agent.
	// This field is output-only, and is populated only when this cluster is "managed".
	ManagedName string `protobuf:"bytes,100,opt,name=managed_name,json=managedName,proto3" json:"managed_name,omitempty"`
	// provider holds the flavor of cluster provider, which is used to determine how we
	// authenticate with the cluster.
	Provider Cluster_Provider `protobuf:"varint,101,opt,name=provider,proto3,enum=chainguard.platform.tenant.Cluster_Provider" json:"provider,omitempty"`
	// affinity specifies a scheduling preference for where to run the managed agent.
	// Other factors, such as the provider may be taken into account when choosing a
	// host cluster.
	Affinity Cluster_Location `protobuf:"varint,105,opt,name=affinity,proto3,enum=chainguard.platform.tenant.Cluster_Location" json:"affinity,omitempty"`
	// info contains the cluster information from the kubeconfig context.
	Info *Cluster_Info `protobuf:"bytes,102,opt,name=info,proto3" json:"info,omitempty"`
	// auth_info holds authentication details for connecting to KinD in test scenarios.
	AuthInfo *Cluster_AuthInfo `protobuf:"bytes,104,opt,name=auth_info,json=authInfo,proto3" json:"auth_info,omitempty"`
	// status contains the managed cluster's status.
	Status *Cluster_Status `protobuf:"bytes,103,opt,name=status,proto3" json:"status,omitempty"`
	// host_cluster surfaces the opaque identifier for the Chainguard cluster hosting
	// this agent.
	HostCluster string `protobuf:"bytes,106,opt,name=host_cluster,json=hostCluster,proto3" json:"host_cluster,omitempty"`
	// profiles specifies the root set of tenant configurations that we want to run
	// on this cluster.
	Profiles []string `protobuf:"bytes,107,rep,name=profiles,proto3" json:"profiles,omitempty"`
	// EnforcerOptions contains additional Enforcer configuration settings.
	// +optional
	EnforcerOptions *Cluster_EnforcerOptions `protobuf:"bytes,108,opt,name=enforcer_options,json=enforcerOptions,proto3,oneof" json:"enforcer_options,omitempty"`
	// contains filtered or unexported fields
}

func (*Cluster) CloudEventsExtension

func (x *Cluster) CloudEventsExtension(key string) (string, bool)

CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension

func (*Cluster) CloudEventsSubject

func (x *Cluster) CloudEventsSubject() string

CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject.

func (*Cluster) Descriptor deprecated

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

Deprecated: Use Cluster.ProtoReflect.Descriptor instead.

func (*Cluster) GetActivity

func (x *Cluster) GetActivity() map[string]*ClusterActivity

func (*Cluster) GetAffinity

func (x *Cluster) GetAffinity() Cluster_Location

func (*Cluster) GetAgentVersion

func (x *Cluster) GetAgentVersion() string

func (*Cluster) GetAuthInfo

func (x *Cluster) GetAuthInfo() *Cluster_AuthInfo

func (*Cluster) GetDescription

func (x *Cluster) GetDescription() string

func (*Cluster) GetEnforcerOptions

func (x *Cluster) GetEnforcerOptions() *Cluster_EnforcerOptions

func (*Cluster) GetGroup

func (x *Cluster) GetGroup() *v1.Group

func (*Cluster) GetHostCluster

func (x *Cluster) GetHostCluster() string

func (*Cluster) GetId

func (x *Cluster) GetId() string

func (*Cluster) GetInfo

func (x *Cluster) GetInfo() *Cluster_Info

func (*Cluster) GetIssuer

func (x *Cluster) GetIssuer() string

func (*Cluster) GetLastSeen

func (x *Cluster) GetLastSeen() *timestamppb.Timestamp

func (*Cluster) GetManagedName

func (x *Cluster) GetManagedName() string

func (*Cluster) GetName

func (x *Cluster) GetName() string

func (*Cluster) GetProfiles

func (x *Cluster) GetProfiles() []string

func (*Cluster) GetProvider

func (x *Cluster) GetProvider() Cluster_Provider

func (*Cluster) GetRegistered

func (x *Cluster) GetRegistered() *timestamppb.Timestamp

func (*Cluster) GetRemoteId

func (x *Cluster) GetRemoteId() string

func (*Cluster) GetStatus

func (x *Cluster) GetStatus() *Cluster_Status

func (*Cluster) GetVersion

func (x *Cluster) GetVersion() string

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect

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

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) String

func (x *Cluster) String() string

type ClusterActivity

type ClusterActivity struct {

	// profile is the Chainguard profile to which the source of this activity belongs.
	Profile string `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"`
	// namespace is the namespace in which the source of this cluster activity lives.
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// controller_name is the name of the Controller CRD which was the source of this
	// activity on the tenant cluster.
	ControllerName string `protobuf:"bytes,2,opt,name=controller_name,json=controllerName,proto3" json:"controller_name,omitempty"`
	// webhook_name is the name of the Webhook CRD which was the source of this
	// activity on the tenant cluster.
	WebhookName string `protobuf:"bytes,3,opt,name=webhook_name,json=webhookName,proto3" json:"webhook_name,omitempty"`
	// spec_hash is the hash of the Controller or Webhook CRD's spec, which forms a
	// loose form of versioning.
	SpecHash string `protobuf:"bytes,4,opt,name=spec_hash,json=specHash,proto3" json:"spec_hash,omitempty"`
	// last_seen tracks the timestamp at which this source was last active.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterActivity) Descriptor deprecated

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

Deprecated: Use ClusterActivity.ProtoReflect.Descriptor instead.

func (*ClusterActivity) GetControllerName

func (x *ClusterActivity) GetControllerName() string

func (*ClusterActivity) GetLastSeen

func (x *ClusterActivity) GetLastSeen() *timestamppb.Timestamp

func (*ClusterActivity) GetNamespace

func (x *ClusterActivity) GetNamespace() string

func (*ClusterActivity) GetProfile

func (x *ClusterActivity) GetProfile() string

func (*ClusterActivity) GetSpecHash

func (x *ClusterActivity) GetSpecHash() string

func (*ClusterActivity) GetWebhookName

func (x *ClusterActivity) GetWebhookName() string

func (*ClusterActivity) ProtoMessage

func (*ClusterActivity) ProtoMessage()

func (*ClusterActivity) ProtoReflect

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

func (*ClusterActivity) Reset

func (x *ClusterActivity) Reset()

func (*ClusterActivity) String

func (x *ClusterActivity) String() string

type ClusterCIDRRequest

type ClusterCIDRRequest struct {
	// contains filtered or unexported fields
}

func (*ClusterCIDRRequest) Descriptor deprecated

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

Deprecated: Use ClusterCIDRRequest.ProtoReflect.Descriptor instead.

func (*ClusterCIDRRequest) ProtoMessage

func (*ClusterCIDRRequest) ProtoMessage()

func (*ClusterCIDRRequest) ProtoReflect

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

func (*ClusterCIDRRequest) Reset

func (x *ClusterCIDRRequest) Reset()

func (*ClusterCIDRRequest) String

func (x *ClusterCIDRRequest) String() string

type ClusterCIDRResponse

type ClusterCIDRResponse struct {

	// cidr_blocks specifies the cidr blocks enforce uses to communicate with clusters.
	CidrBlocks []string `protobuf:"bytes,1,rep,name=cidr_blocks,json=cidrBlocks,proto3" json:"cidr_blocks,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterCIDRResponse) Descriptor deprecated

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

Deprecated: Use ClusterCIDRResponse.ProtoReflect.Descriptor instead.

func (*ClusterCIDRResponse) GetCidrBlocks

func (x *ClusterCIDRResponse) GetCidrBlocks() []string

func (*ClusterCIDRResponse) ProtoMessage

func (*ClusterCIDRResponse) ProtoMessage()

func (*ClusterCIDRResponse) ProtoReflect

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

func (*ClusterCIDRResponse) Reset

func (x *ClusterCIDRResponse) Reset()

func (*ClusterCIDRResponse) String

func (x *ClusterCIDRResponse) String() string

type ClusterConfigRequest

type ClusterConfigRequest struct {

	// profiles specifies the root profiles we want as part of this configuration.
	Profiles []string `protobuf:"bytes,1,rep,name=profiles,proto3" json:"profiles,omitempty"`
	// EnforcerOptions contains additional Enforcer configuration settings.
	EnforcerOptions *ClusterConfigRequest_EnforcerOptions `protobuf:"bytes,2,opt,name=enforcer_options,json=enforcerOptions,proto3,oneof" json:"enforcer_options,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterConfigRequest) Descriptor deprecated

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

Deprecated: Use ClusterConfigRequest.ProtoReflect.Descriptor instead.

func (*ClusterConfigRequest) GetEnforcerOptions

func (*ClusterConfigRequest) GetProfiles

func (x *ClusterConfigRequest) GetProfiles() []string

func (*ClusterConfigRequest) ProtoMessage

func (*ClusterConfigRequest) ProtoMessage()

func (*ClusterConfigRequest) ProtoReflect

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

func (*ClusterConfigRequest) Reset

func (x *ClusterConfigRequest) Reset()

func (*ClusterConfigRequest) String

func (x *ClusterConfigRequest) String() string

type ClusterConfigRequest_EnforcerOptions

type ClusterConfigRequest_EnforcerOptions struct {

	// +optional
	WebhookFailOpen *bool `protobuf:"varint,1,opt,name=webhook_fail_open,json=webhookFailOpen,proto3,oneof" json:"webhook_fail_open,omitempty"`
	// +optional
	EnableCipCache *bool `protobuf:"varint,2,opt,name=enable_cip_cache,json=enableCipCache,proto3,oneof" json:"enable_cip_cache,omitempty"`
	// +optional
	NamespaceEnforcementMode *ClusterConfigRequest_NamespaceEnforcementMode `` /* 220-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ClusterConfigRequest_EnforcerOptions) Descriptor deprecated

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

Deprecated: Use ClusterConfigRequest_EnforcerOptions.ProtoReflect.Descriptor instead.

func (*ClusterConfigRequest_EnforcerOptions) GetEnableCipCache

func (x *ClusterConfigRequest_EnforcerOptions) GetEnableCipCache() bool

func (*ClusterConfigRequest_EnforcerOptions) GetNamespaceEnforcementMode

func (*ClusterConfigRequest_EnforcerOptions) GetWebhookFailOpen

func (x *ClusterConfigRequest_EnforcerOptions) GetWebhookFailOpen() bool

func (*ClusterConfigRequest_EnforcerOptions) ProtoMessage

func (*ClusterConfigRequest_EnforcerOptions) ProtoMessage()

func (*ClusterConfigRequest_EnforcerOptions) ProtoReflect

func (*ClusterConfigRequest_EnforcerOptions) Reset

func (*ClusterConfigRequest_EnforcerOptions) String

type ClusterConfigRequest_NamespaceEnforcementMode

type ClusterConfigRequest_NamespaceEnforcementMode int32
const (
	ClusterConfigRequest_OptOut ClusterConfigRequest_NamespaceEnforcementMode = 0
	ClusterConfigRequest_OptIn  ClusterConfigRequest_NamespaceEnforcementMode = 1
)

func (ClusterConfigRequest_NamespaceEnforcementMode) Descriptor

func (ClusterConfigRequest_NamespaceEnforcementMode) Enum

func (ClusterConfigRequest_NamespaceEnforcementMode) EnumDescriptor deprecated

func (ClusterConfigRequest_NamespaceEnforcementMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ClusterConfigRequest_NamespaceEnforcementMode.Descriptor instead.

func (ClusterConfigRequest_NamespaceEnforcementMode) Number

func (ClusterConfigRequest_NamespaceEnforcementMode) String

func (ClusterConfigRequest_NamespaceEnforcementMode) Type

type ClusterConfigResponse

type ClusterConfigResponse struct {
	McpConfig    []byte `protobuf:"bytes,1,opt,name=mcp_config,json=mcpConfig,proto3" json:"mcp_config,omitempty"`
	TenantConfig []byte `protobuf:"bytes,2,opt,name=tenant_config,json=tenantConfig,proto3" json:"tenant_config,omitempty"`
	// profiles includes the full set of profiles returned (including transitive
	// dependencies of the input profiles)
	Profiles []string `protobuf:"bytes,3,rep,name=profiles,proto3" json:"profiles,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterConfigResponse) Descriptor deprecated

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

Deprecated: Use ClusterConfigResponse.ProtoReflect.Descriptor instead.

func (*ClusterConfigResponse) GetMcpConfig

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

func (*ClusterConfigResponse) GetProfiles

func (x *ClusterConfigResponse) GetProfiles() []string

func (*ClusterConfigResponse) GetTenantConfig

func (x *ClusterConfigResponse) GetTenantConfig() []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 ClusterDiscoveryRequest

type ClusterDiscoveryRequest struct {

	// id is the exact UIDP of the group to impersonate to search for clusters.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// providers is the list of providers to perform discovery on.
	Providers []Cluster_Provider `` /* 128-byte string literal not displayed */
	// profiles includes the set of profiles to perform discovery for,
	// which may impact eligibility (some profiles may not be supported
	// on some providers).
	Profiles []string `protobuf:"bytes,3,rep,name=profiles,proto3" json:"profiles,omitempty"`
	// states is a collection of the states to return, or all if
	// none are specified.
	States []ClusterDiscoveryRequest_State `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ClusterDiscoveryRequest) Descriptor deprecated

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

Deprecated: Use ClusterDiscoveryRequest.ProtoReflect.Descriptor instead.

func (*ClusterDiscoveryRequest) GetId

func (x *ClusterDiscoveryRequest) GetId() string

func (*ClusterDiscoveryRequest) GetProfiles

func (x *ClusterDiscoveryRequest) GetProfiles() []string

func (*ClusterDiscoveryRequest) GetProviders

func (x *ClusterDiscoveryRequest) GetProviders() []Cluster_Provider

func (*ClusterDiscoveryRequest) GetStates

func (*ClusterDiscoveryRequest) ProtoMessage

func (*ClusterDiscoveryRequest) ProtoMessage()

func (*ClusterDiscoveryRequest) ProtoReflect

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

func (*ClusterDiscoveryRequest) Reset

func (x *ClusterDiscoveryRequest) Reset()

func (*ClusterDiscoveryRequest) String

func (x *ClusterDiscoveryRequest) String() string

type ClusterDiscoveryRequest_State

type ClusterDiscoveryRequest_State int32
const (
	ClusterDiscoveryRequest_UNKNOWN     ClusterDiscoveryRequest_State = 0
	ClusterDiscoveryRequest_UNSUPPORTED ClusterDiscoveryRequest_State = 1
	ClusterDiscoveryRequest_NEEDS_WORK  ClusterDiscoveryRequest_State = 2
	ClusterDiscoveryRequest_ELIGIBLE    ClusterDiscoveryRequest_State = 3
	ClusterDiscoveryRequest_ENROLLED    ClusterDiscoveryRequest_State = 4
)

func (ClusterDiscoveryRequest_State) Descriptor

func (ClusterDiscoveryRequest_State) Enum

func (ClusterDiscoveryRequest_State) EnumDescriptor deprecated

func (ClusterDiscoveryRequest_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use ClusterDiscoveryRequest_State.Descriptor instead.

func (ClusterDiscoveryRequest_State) Number

func (ClusterDiscoveryRequest_State) String

func (ClusterDiscoveryRequest_State) Type

type ClusterDiscoveryResponse

type ClusterDiscoveryResponse struct {
	Results []*ClusterDiscoveryResponse_Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterDiscoveryResponse) Descriptor deprecated

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

Deprecated: Use ClusterDiscoveryResponse.ProtoReflect.Descriptor instead.

func (*ClusterDiscoveryResponse) GetResults

func (*ClusterDiscoveryResponse) ProtoMessage

func (*ClusterDiscoveryResponse) ProtoMessage()

func (*ClusterDiscoveryResponse) ProtoReflect

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

func (*ClusterDiscoveryResponse) Reset

func (x *ClusterDiscoveryResponse) Reset()

func (*ClusterDiscoveryResponse) String

func (x *ClusterDiscoveryResponse) String() string

type ClusterDiscoveryResponse_Result

type ClusterDiscoveryResponse_Result struct {
	Provider Cluster_Provider `protobuf:"varint,1,opt,name=provider,proto3,enum=chainguard.platform.tenant.Cluster_Provider" json:"provider,omitempty"`
	Account  string           `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	Location Cluster_Location `protobuf:"varint,3,opt,name=location,proto3,enum=chainguard.platform.tenant.Cluster_Location" json:"location,omitempty"`
	Name     string           `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to State:
	//
	//	*ClusterDiscoveryResponse_Result_Unsupported_
	//	*ClusterDiscoveryResponse_Result_NeedsWork_
	//	*ClusterDiscoveryResponse_Result_Eligible_
	//	*ClusterDiscoveryResponse_Result_Enrolled_
	State isClusterDiscoveryResponse_Result_State `protobuf_oneof:"state"`
	// contains filtered or unexported fields
}

func (*ClusterDiscoveryResponse_Result) Descriptor deprecated

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

Deprecated: Use ClusterDiscoveryResponse_Result.ProtoReflect.Descriptor instead.

func (*ClusterDiscoveryResponse_Result) GetAccount

func (x *ClusterDiscoveryResponse_Result) GetAccount() string

func (*ClusterDiscoveryResponse_Result) GetEligible

func (*ClusterDiscoveryResponse_Result) GetEnrolled

func (*ClusterDiscoveryResponse_Result) GetLocation

func (*ClusterDiscoveryResponse_Result) GetName

func (*ClusterDiscoveryResponse_Result) GetNeedsWork

func (*ClusterDiscoveryResponse_Result) GetProvider

func (*ClusterDiscoveryResponse_Result) GetState

func (m *ClusterDiscoveryResponse_Result) GetState() isClusterDiscoveryResponse_Result_State

func (*ClusterDiscoveryResponse_Result) GetUnsupported

func (*ClusterDiscoveryResponse_Result) ProtoMessage

func (*ClusterDiscoveryResponse_Result) ProtoMessage()

func (*ClusterDiscoveryResponse_Result) ProtoReflect

func (*ClusterDiscoveryResponse_Result) Reset

func (*ClusterDiscoveryResponse_Result) String

type ClusterDiscoveryResponse_Result_Eligible

type ClusterDiscoveryResponse_Result_Eligible struct {
	Info *Cluster_Info `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterDiscoveryResponse_Result_Eligible) Descriptor deprecated

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

Deprecated: Use ClusterDiscoveryResponse_Result_Eligible.ProtoReflect.Descriptor instead.

func (*ClusterDiscoveryResponse_Result_Eligible) GetInfo

func (*ClusterDiscoveryResponse_Result_Eligible) ProtoMessage

func (*ClusterDiscoveryResponse_Result_Eligible) ProtoReflect

func (*ClusterDiscoveryResponse_Result_Eligible) Reset

func (*ClusterDiscoveryResponse_Result_Eligible) String

type ClusterDiscoveryResponse_Result_Eligible_

type ClusterDiscoveryResponse_Result_Eligible_ struct {
	// eligible clusters are able to be directly enrolled as
	// agentless tenants immediately.  This message contains
	// all of the information needed to enroll this cluster.
	Eligible *ClusterDiscoveryResponse_Result_Eligible `protobuf:"bytes,12,opt,name=eligible,proto3,oneof"`
}

type ClusterDiscoveryResponse_Result_Enrolled

type ClusterDiscoveryResponse_Result_Enrolled struct {

	// id is the UIDP of the tenant Cluster.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// profiles contains the set of profiles that this
	// cluster was enrolled with.
	Profiles []string      `protobuf:"bytes,2,rep,name=profiles,proto3" json:"profiles,omitempty"`
	Info     *Cluster_Info `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterDiscoveryResponse_Result_Enrolled) Descriptor deprecated

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

Deprecated: Use ClusterDiscoveryResponse_Result_Enrolled.ProtoReflect.Descriptor instead.

func (*ClusterDiscoveryResponse_Result_Enrolled) GetId

func (*ClusterDiscoveryResponse_Result_Enrolled) GetInfo

func (*ClusterDiscoveryResponse_Result_Enrolled) GetProfiles

func (*ClusterDiscoveryResponse_Result_Enrolled) ProtoMessage

func (*ClusterDiscoveryResponse_Result_Enrolled) ProtoReflect

func (*ClusterDiscoveryResponse_Result_Enrolled) Reset

func (*ClusterDiscoveryResponse_Result_Enrolled) String

type ClusterDiscoveryResponse_Result_Enrolled_

type ClusterDiscoveryResponse_Result_Enrolled_ struct {
	// enrolled clusters are clusters that have already been
	// enrolled as agentless tenants.
	Enrolled *ClusterDiscoveryResponse_Result_Enrolled `protobuf:"bytes,13,opt,name=enrolled,proto3,oneof"`
}

type ClusterDiscoveryResponse_Result_NeedsWork

type ClusterDiscoveryResponse_Result_NeedsWork struct {

	// steps holds the set of changes the user needs to make in order
	// for the cluster to become eligible.
	Steps []string `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterDiscoveryResponse_Result_NeedsWork) Descriptor deprecated

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

Deprecated: Use ClusterDiscoveryResponse_Result_NeedsWork.ProtoReflect.Descriptor instead.

func (*ClusterDiscoveryResponse_Result_NeedsWork) GetSteps

func (*ClusterDiscoveryResponse_Result_NeedsWork) ProtoMessage

func (*ClusterDiscoveryResponse_Result_NeedsWork) ProtoReflect

func (*ClusterDiscoveryResponse_Result_NeedsWork) Reset

func (*ClusterDiscoveryResponse_Result_NeedsWork) String

type ClusterDiscoveryResponse_Result_NeedsWork_

type ClusterDiscoveryResponse_Result_NeedsWork_ struct {
	// needs_work clusters can be modified in some way so
	// that they are supported by our Agentless infrastructure.
	NeedsWork *ClusterDiscoveryResponse_Result_NeedsWork `protobuf:"bytes,11,opt,name=needs_work,json=needsWork,proto3,oneof"`
}

type ClusterDiscoveryResponse_Result_Unsupported

type ClusterDiscoveryResponse_Result_Unsupported struct {

	// reason holds the reason the cluster is not currently supported.
	Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterDiscoveryResponse_Result_Unsupported) Descriptor deprecated

Deprecated: Use ClusterDiscoveryResponse_Result_Unsupported.ProtoReflect.Descriptor instead.

func (*ClusterDiscoveryResponse_Result_Unsupported) GetReason

func (*ClusterDiscoveryResponse_Result_Unsupported) ProtoMessage

func (*ClusterDiscoveryResponse_Result_Unsupported) ProtoReflect

func (*ClusterDiscoveryResponse_Result_Unsupported) Reset

func (*ClusterDiscoveryResponse_Result_Unsupported) String

type ClusterDiscoveryResponse_Result_Unsupported_

type ClusterDiscoveryResponse_Result_Unsupported_ struct {
	// unsupported clusters cannot be enrolled with our
	// Agentless cluster support.
	Unsupported *ClusterDiscoveryResponse_Result_Unsupported `protobuf:"bytes,10,opt,name=unsupported,proto3,oneof"`
}

type ClusterFilter

type ClusterFilter struct {

	// id is the exact UID of the record.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// active_since is the timestamp after which returned clusters should have been active.
	// This applies to both cluster registration and when it was "last seen".
	ActiveSince *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
	// uidp filers records based on their position in the group hierarchy.
	Uidp *v11.UIDPFilter `protobuf:"bytes,3,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// remote_id is the remote ID of this cluster.
	RemoteId string `protobuf:"bytes,4,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
	// name is the exact name of the cluster.
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterFilter) Descriptor deprecated

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

Deprecated: Use ClusterFilter.ProtoReflect.Descriptor instead.

func (*ClusterFilter) GetActiveSince

func (x *ClusterFilter) GetActiveSince() *timestamppb.Timestamp

func (*ClusterFilter) GetId

func (x *ClusterFilter) GetId() string

func (*ClusterFilter) GetName

func (x *ClusterFilter) GetName() string

func (*ClusterFilter) GetRemoteId

func (x *ClusterFilter) GetRemoteId() string

func (*ClusterFilter) GetUidp

func (x *ClusterFilter) GetUidp() *v11.UIDPFilter

func (*ClusterFilter) ProtoMessage

func (*ClusterFilter) ProtoMessage()

func (*ClusterFilter) ProtoReflect

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

func (*ClusterFilter) Reset

func (x *ClusterFilter) Reset()

func (*ClusterFilter) String

func (x *ClusterFilter) String() string

type ClusterList

type ClusterList struct {
	Items []*Cluster `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterList) Descriptor deprecated

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

Deprecated: Use ClusterList.ProtoReflect.Descriptor instead.

func (*ClusterList) GetItems

func (x *ClusterList) GetItems() []*Cluster

func (*ClusterList) ProtoMessage

func (*ClusterList) ProtoMessage()

func (*ClusterList) ProtoReflect

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

func (*ClusterList) Reset

func (x *ClusterList) Reset()

func (*ClusterList) String

func (x *ClusterList) String() string

type ClusterProfilesRequest

type ClusterProfilesRequest struct {
	// contains filtered or unexported fields
}

func (*ClusterProfilesRequest) Descriptor deprecated

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

Deprecated: Use ClusterProfilesRequest.ProtoReflect.Descriptor instead.

func (*ClusterProfilesRequest) ProtoMessage

func (*ClusterProfilesRequest) ProtoMessage()

func (*ClusterProfilesRequest) ProtoReflect

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

func (*ClusterProfilesRequest) Reset

func (x *ClusterProfilesRequest) Reset()

func (*ClusterProfilesRequest) String

func (x *ClusterProfilesRequest) String() string

type ClusterProfilesResponse

type ClusterProfilesResponse struct {
	Profile []*ClusterProfilesResponse_Profile `protobuf:"bytes,1,rep,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterProfilesResponse) Descriptor deprecated

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

Deprecated: Use ClusterProfilesResponse.ProtoReflect.Descriptor instead.

func (*ClusterProfilesResponse) GetProfile

func (*ClusterProfilesResponse) ProtoMessage

func (*ClusterProfilesResponse) ProtoMessage()

func (*ClusterProfilesResponse) ProtoReflect

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

func (*ClusterProfilesResponse) Reset

func (x *ClusterProfilesResponse) Reset()

func (*ClusterProfilesResponse) String

func (x *ClusterProfilesResponse) String() string

type ClusterProfilesResponse_Profile

type ClusterProfilesResponse_Profile struct {
	Name         string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description  string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Dependencies []string `protobuf:"bytes,3,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterProfilesResponse_Profile) Descriptor deprecated

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

Deprecated: Use ClusterProfilesResponse_Profile.ProtoReflect.Descriptor instead.

func (*ClusterProfilesResponse_Profile) GetDependencies

func (x *ClusterProfilesResponse_Profile) GetDependencies() []string

func (*ClusterProfilesResponse_Profile) GetDescription

func (x *ClusterProfilesResponse_Profile) GetDescription() string

func (*ClusterProfilesResponse_Profile) GetName

func (*ClusterProfilesResponse_Profile) ProtoMessage

func (*ClusterProfilesResponse_Profile) ProtoMessage()

func (*ClusterProfilesResponse_Profile) ProtoReflect

func (*ClusterProfilesResponse_Profile) Reset

func (*ClusterProfilesResponse_Profile) String

type Cluster_AuthInfo

type Cluster_AuthInfo struct {

	// client_certificate_data contains PEM-encoded data from a client cert file for TLS.
	ClientCertificateData []byte `` /* 126-byte string literal not displayed */
	// client_key_data contains PEM-encoded data from a client key file for TLS.
	ClientKeyData []byte `protobuf:"bytes,4,opt,name=client_key_data,json=clientKeyData,proto3" json:"client_key_data,omitempty"`
	// contains filtered or unexported fields
}

This is based off of k8s.io/client-go/tools/clientcmd/api/v1.AuthInfo This should only ever be used with KinD clusters during testing, it WILL NOT be stored securely.

func (*Cluster_AuthInfo) Descriptor deprecated

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

Deprecated: Use Cluster_AuthInfo.ProtoReflect.Descriptor instead.

func (*Cluster_AuthInfo) GetClientCertificateData

func (x *Cluster_AuthInfo) GetClientCertificateData() []byte

func (*Cluster_AuthInfo) GetClientKeyData

func (x *Cluster_AuthInfo) GetClientKeyData() []byte

func (*Cluster_AuthInfo) ProtoMessage

func (*Cluster_AuthInfo) ProtoMessage()

func (*Cluster_AuthInfo) ProtoReflect

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

func (*Cluster_AuthInfo) Reset

func (x *Cluster_AuthInfo) Reset()

func (*Cluster_AuthInfo) String

func (x *Cluster_AuthInfo) String() string

type Cluster_EnforcerOptions

type Cluster_EnforcerOptions struct {

	// +optional
	WebhookFailOpen *bool `protobuf:"varint,1,opt,name=webhook_fail_open,json=webhookFailOpen,proto3,oneof" json:"webhook_fail_open,omitempty"`
	// +optional
	EnableCipCache *bool `protobuf:"varint,2,opt,name=enable_cip_cache,json=enableCipCache,proto3,oneof" json:"enable_cip_cache,omitempty"`
	// +optional
	NamespaceEnforcementMode *Cluster_NamespaceEnforcementMode `` /* 207-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Cluster_EnforcerOptions) Descriptor deprecated

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

Deprecated: Use Cluster_EnforcerOptions.ProtoReflect.Descriptor instead.

func (*Cluster_EnforcerOptions) GetEnableCipCache

func (x *Cluster_EnforcerOptions) GetEnableCipCache() bool

func (*Cluster_EnforcerOptions) GetNamespaceEnforcementMode

func (x *Cluster_EnforcerOptions) GetNamespaceEnforcementMode() Cluster_NamespaceEnforcementMode

func (*Cluster_EnforcerOptions) GetWebhookFailOpen

func (x *Cluster_EnforcerOptions) GetWebhookFailOpen() bool

func (*Cluster_EnforcerOptions) ProtoMessage

func (*Cluster_EnforcerOptions) ProtoMessage()

func (*Cluster_EnforcerOptions) ProtoReflect

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

func (*Cluster_EnforcerOptions) Reset

func (x *Cluster_EnforcerOptions) Reset()

func (*Cluster_EnforcerOptions) String

func (x *Cluster_EnforcerOptions) String() string

type Cluster_Info

type Cluster_Info struct {

	// Server is the address of the kubernetes cluster (https://hostname:port).
	Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	// CertificateAuthorityData contains PEM-encoded certificate authority certificates.
	// Overrides CertificateAuthority
	CertificateAuthorityData []byte `protobuf:"bytes,5,opt,name=CertificateAuthorityData,proto3" json:"CertificateAuthorityData,omitempty"`
	// contains filtered or unexported fields
}

This is based off of k8s.io/client-go/tools/clientcmd/api/v1.Cluster This can be extracted from kubectl for a named cluster (replace CLUSTER_NAME) with:

kubectl config view \
  --flatten -o jsonpath='{.clusters[?(@.name == "CLUSTER_NAME")].cluster}'

func (*Cluster_Info) Descriptor deprecated

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

Deprecated: Use Cluster_Info.ProtoReflect.Descriptor instead.

func (*Cluster_Info) GetCertificateAuthorityData

func (x *Cluster_Info) GetCertificateAuthorityData() []byte

func (*Cluster_Info) GetServer

func (x *Cluster_Info) GetServer() string

func (*Cluster_Info) ProtoMessage

func (*Cluster_Info) ProtoMessage()

func (*Cluster_Info) ProtoReflect

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

func (*Cluster_Info) Reset

func (x *Cluster_Info) Reset()

func (*Cluster_Info) String

func (x *Cluster_Info) String() string

type Cluster_Location

type Cluster_Location int32
const (
	Cluster_AUTO Cluster_Location = 0
	// Use 1xx for US
	Cluster_US_EAST    Cluster_Location = 101
	Cluster_US_CENTRAL Cluster_Location = 102
	Cluster_US_WEST    Cluster_Location = 103
)

func (Cluster_Location) Descriptor

func (Cluster_Location) Enum

func (Cluster_Location) EnumDescriptor deprecated

func (Cluster_Location) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cluster_Location.Descriptor instead.

func (Cluster_Location) Number

func (Cluster_Location) String

func (x Cluster_Location) String() string

func (Cluster_Location) Type

type Cluster_NamespaceEnforcementMode

type Cluster_NamespaceEnforcementMode int32
const (
	Cluster_OptOut Cluster_NamespaceEnforcementMode = 0
	Cluster_OptIn  Cluster_NamespaceEnforcementMode = 1
)

func (Cluster_NamespaceEnforcementMode) Descriptor

func (Cluster_NamespaceEnforcementMode) Enum

func (Cluster_NamespaceEnforcementMode) EnumDescriptor deprecated

func (Cluster_NamespaceEnforcementMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cluster_NamespaceEnforcementMode.Descriptor instead.

func (Cluster_NamespaceEnforcementMode) Number

func (Cluster_NamespaceEnforcementMode) String

func (Cluster_NamespaceEnforcementMode) Type

type Cluster_Provider

type Cluster_Provider int32
const (
	Cluster_UNKNOWN Cluster_Provider = 0
	Cluster_GKE     Cluster_Provider = 1
	Cluster_EKS     Cluster_Provider = 2
	// GCP Services (10+)
	Cluster_CLOUD_RUN Cluster_Provider = 10
	// AWS Services (20+)
	Cluster_ECS        Cluster_Provider = 20
	Cluster_APP_RUNNER Cluster_Provider = 21
	// For testing.
	Cluster_KIND Cluster_Provider = 100
)

func (Cluster_Provider) Descriptor

func (Cluster_Provider) Enum

func (Cluster_Provider) EnumDescriptor deprecated

func (Cluster_Provider) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cluster_Provider.Descriptor instead.

func (Cluster_Provider) Number

func (Cluster_Provider) String

func (x Cluster_Provider) String() string

func (Cluster_Provider) Type

type Cluster_Status

type Cluster_Status struct {
	Ready   Cluster_Status_State `protobuf:"varint,1,opt,name=ready,proto3,enum=chainguard.platform.tenant.Cluster_Status_State" json:"ready,omitempty"`
	Reason  string               `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	Message string               `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Cluster_Status) Descriptor deprecated

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

Deprecated: Use Cluster_Status.ProtoReflect.Descriptor instead.

func (*Cluster_Status) GetMessage

func (x *Cluster_Status) GetMessage() string

func (*Cluster_Status) GetReady

func (x *Cluster_Status) GetReady() Cluster_Status_State

func (*Cluster_Status) GetReason

func (x *Cluster_Status) GetReason() string

func (*Cluster_Status) ProtoMessage

func (*Cluster_Status) ProtoMessage()

func (*Cluster_Status) ProtoReflect

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

func (*Cluster_Status) Reset

func (x *Cluster_Status) Reset()

func (*Cluster_Status) String

func (x *Cluster_Status) String() string

type Cluster_Status_State

type Cluster_Status_State int32
const (
	Cluster_Status_UNKNOWN  Cluster_Status_State = 0
	Cluster_Status_Ready    Cluster_Status_State = 1
	Cluster_Status_NotReady Cluster_Status_State = 2
)

func (Cluster_Status_State) Descriptor

func (Cluster_Status_State) Enum

func (Cluster_Status_State) EnumDescriptor deprecated

func (Cluster_Status_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cluster_Status_State.Descriptor instead.

func (Cluster_Status_State) Number

func (Cluster_Status_State) String

func (x Cluster_Status_State) String() string

func (Cluster_Status_State) Type

type ClustersClient

ClustersClient is the client API for Clusters 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 NewClustersClient

func NewClustersClient(cc grpc.ClientConnInterface) ClustersClient

type ClustersServer

ClustersServer is the server API for Clusters service. All implementations must embed UnimplementedClustersServer for forward compatibility

type ComponentGraph

type ComponentGraph struct {
	Nodes []*ComponentGraph_Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	Edges []*ComponentGraph_Edge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentGraph) Descriptor deprecated

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

Deprecated: Use ComponentGraph.ProtoReflect.Descriptor instead.

func (*ComponentGraph) GetEdges

func (x *ComponentGraph) GetEdges() []*ComponentGraph_Edge

func (*ComponentGraph) GetNodes

func (x *ComponentGraph) GetNodes() []*ComponentGraph_Node

func (*ComponentGraph) ProtoMessage

func (*ComponentGraph) ProtoMessage()

func (*ComponentGraph) ProtoReflect

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

func (*ComponentGraph) Reset

func (x *ComponentGraph) Reset()

func (*ComponentGraph) String

func (x *ComponentGraph) String() string

type ComponentGraph_Edge

type ComponentGraph_Edge struct {
	SubjectId   string                   `protobuf:"bytes,1,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"`
	PredicateId string                   `protobuf:"bytes,2,opt,name=predicate_id,json=predicateId,proto3" json:"predicate_id,omitempty"`
	Type        ComponentGraph_Edge_Type `protobuf:"varint,3,opt,name=type,proto3,enum=chainguard.platform.tenant.ComponentGraph_Edge_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentGraph_Edge) Descriptor deprecated

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

Deprecated: Use ComponentGraph_Edge.ProtoReflect.Descriptor instead.

func (*ComponentGraph_Edge) GetPredicateId

func (x *ComponentGraph_Edge) GetPredicateId() string

func (*ComponentGraph_Edge) GetSubjectId

func (x *ComponentGraph_Edge) GetSubjectId() string

func (*ComponentGraph_Edge) GetType

func (*ComponentGraph_Edge) ProtoMessage

func (*ComponentGraph_Edge) ProtoMessage()

func (*ComponentGraph_Edge) ProtoReflect

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

func (*ComponentGraph_Edge) Reset

func (x *ComponentGraph_Edge) Reset()

func (*ComponentGraph_Edge) String

func (x *ComponentGraph_Edge) String() string

type ComponentGraph_Edge_Type

type ComponentGraph_Edge_Type int32
const (
	ComponentGraph_Edge_UNKNOWN        ComponentGraph_Edge_Type = 0
	ComponentGraph_Edge_DESCRIBES      ComponentGraph_Edge_Type = 1
	ComponentGraph_Edge_CONTAINS       ComponentGraph_Edge_Type = 2
	ComponentGraph_Edge_DEPENDS_ON     ComponentGraph_Edge_Type = 3
	ComponentGraph_Edge_GENERATED_FROM ComponentGraph_Edge_Type = 4 // and so on...; for inspiration, see https://spdx.github.io/spdx-spec/v2.3/relationships-between-SPDX-elements/
)

func (ComponentGraph_Edge_Type) Descriptor

func (ComponentGraph_Edge_Type) Enum

func (ComponentGraph_Edge_Type) EnumDescriptor deprecated

func (ComponentGraph_Edge_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use ComponentGraph_Edge_Type.Descriptor instead.

func (ComponentGraph_Edge_Type) Number

func (ComponentGraph_Edge_Type) String

func (x ComponentGraph_Edge_Type) String() string

func (ComponentGraph_Edge_Type) Type

type ComponentGraph_Node

type ComponentGraph_Node struct {

	// Types that are assignable to TypedNode:
	//
	//	*ComponentGraph_Node_Package
	//	*ComponentGraph_Node_File
	TypedNode isComponentGraph_Node_TypedNode `protobuf_oneof:"typed_node"`
	// contains filtered or unexported fields
}

func (*ComponentGraph_Node) Descriptor deprecated

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

Deprecated: Use ComponentGraph_Node.ProtoReflect.Descriptor instead.

func (*ComponentGraph_Node) GetFile

func (x *ComponentGraph_Node) GetFile() *File2

func (*ComponentGraph_Node) GetPackage

func (x *ComponentGraph_Node) GetPackage() *Package2

func (*ComponentGraph_Node) GetTypedNode

func (m *ComponentGraph_Node) GetTypedNode() isComponentGraph_Node_TypedNode

func (*ComponentGraph_Node) ProtoMessage

func (*ComponentGraph_Node) ProtoMessage()

func (*ComponentGraph_Node) ProtoReflect

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

func (*ComponentGraph_Node) Reset

func (x *ComponentGraph_Node) Reset()

func (*ComponentGraph_Node) String

func (x *ComponentGraph_Node) String() string

type ComponentGraph_Node_File

type ComponentGraph_Node_File struct {
	File *File2 `protobuf:"bytes,2,opt,name=file,proto3,oneof"`
}

type ComponentGraph_Node_Package

type ComponentGraph_Node_Package struct {
	Package *Package2 `protobuf:"bytes,1,opt,name=package,proto3,oneof"`
}

type Context

type Context struct {

	// context_id is a unique ID, output only.
	ContextId string `protobuf:"bytes,1,opt,name=context_id,json=contextId,proto3" json:"context_id,omitempty"`
	// last_seen is the last time we've seen the image_id in this context.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// Types that are assignable to Context:
	//
	//	*Context_Workload_
	//	*Context_Ancestry_
	//	*Context_Variant_
	Context isContext_Context `protobuf_oneof:"context"`
	// contains filtered or unexported fields
}

func (*Context) Descriptor deprecated

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

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) GetAncestry

func (x *Context) GetAncestry() *Context_Ancestry

func (*Context) GetContext

func (m *Context) GetContext() isContext_Context

func (*Context) GetContextId

func (x *Context) GetContextId() string

func (*Context) GetLastSeen

func (x *Context) GetLastSeen() *timestamppb.Timestamp

func (*Context) GetVariant

func (x *Context) GetVariant() *Context_Variant

func (*Context) GetWorkload

func (x *Context) GetWorkload() *Context_Workload

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) ProtoReflect

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

func (*Context) Reset

func (x *Context) Reset()

func (*Context) String

func (x *Context) String() string

type Context_Ancestry

type Context_Ancestry struct {
	Role Context_Ancestry_Role `protobuf:"varint,1,opt,name=role,proto3,enum=chainguard.platform.tenant.Context_Ancestry_Role" json:"role,omitempty"`
	// The id of the other image's record in this ancestry relationship.
	// If our Role is BASE, then this will hold the ID of the DERIVED
	// image's record, and vice versa.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Ancestry relationships are added to records when a "base image" relationship has been uncovered. This context is added to BOTH records with their respective roles. The base image will get the Role BASE, and the derivative image will get the Rile DERIVED.

func (*Context_Ancestry) Descriptor deprecated

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

Deprecated: Use Context_Ancestry.ProtoReflect.Descriptor instead.

func (*Context_Ancestry) GetId

func (x *Context_Ancestry) GetId() string

func (*Context_Ancestry) GetRole

func (*Context_Ancestry) ProtoMessage

func (*Context_Ancestry) ProtoMessage()

func (*Context_Ancestry) ProtoReflect

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

func (*Context_Ancestry) Reset

func (x *Context_Ancestry) Reset()

func (*Context_Ancestry) String

func (x *Context_Ancestry) String() string

type Context_Ancestry_

type Context_Ancestry_ struct {
	Ancestry *Context_Ancestry `protobuf:"bytes,11,opt,name=ancestry,proto3,oneof"`
}

type Context_Ancestry_Role

type Context_Ancestry_Role int32
const (
	Context_Ancestry_UNKNOWN Context_Ancestry_Role = 0
	Context_Ancestry_BASE    Context_Ancestry_Role = 1
	Context_Ancestry_DERIVED Context_Ancestry_Role = 2
)

func (Context_Ancestry_Role) Descriptor

func (Context_Ancestry_Role) Enum

func (Context_Ancestry_Role) EnumDescriptor deprecated

func (Context_Ancestry_Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use Context_Ancestry_Role.Descriptor instead.

func (Context_Ancestry_Role) Number

func (Context_Ancestry_Role) String

func (x Context_Ancestry_Role) String() string

func (Context_Ancestry_Role) Type

type Context_Variant

type Context_Variant struct {
	Role Context_Variant_Role `protobuf:"varint,1,opt,name=role,proto3,enum=chainguard.platform.tenant.Context_Variant_Role" json:"role,omitempty"`
	// The id of the image index's record linking this
	// image (transitively) to the cluster.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// The version information distinguishing this variant
	// from other possible variants of the index.
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

Variant relationships are added to records when we find an "index" containing multiple different variations (typically os/arch) of the same logical image. These are referred to as "OCI Image Index", "Docker Manifest List", and occasionally "fat images". This context is added to ALL records including the INDEX and all VARIANTs of that index. The INDEX will typically contain N contexts carrying the Role INDEX, the id of the VARIANT's record, and the version information that discriminates that VARIANT from other VARIANTs. The VARIANT will typically (but not always!) contain 1 context varrying the Role VARIANT, the id of the INDEX's record, and the version information that discriminates it among the other VARIANTs in the INDEX.

func (*Context_Variant) Descriptor deprecated

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

Deprecated: Use Context_Variant.ProtoReflect.Descriptor instead.

func (*Context_Variant) GetId

func (x *Context_Variant) GetId() string

func (*Context_Variant) GetRole

func (*Context_Variant) GetVersion

func (x *Context_Variant) GetVersion() string

func (*Context_Variant) ProtoMessage

func (*Context_Variant) ProtoMessage()

func (*Context_Variant) ProtoReflect

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

func (*Context_Variant) Reset

func (x *Context_Variant) Reset()

func (*Context_Variant) String

func (x *Context_Variant) String() string

type Context_Variant_

type Context_Variant_ struct {
	Variant *Context_Variant `protobuf:"bytes,12,opt,name=variant,proto3,oneof"`
}

type Context_Variant_Role

type Context_Variant_Role int32
const (
	Context_Variant_UNKNOWN Context_Variant_Role = 0
	Context_Variant_INDEX   Context_Variant_Role = 1
	Context_Variant_VARIANT Context_Variant_Role = 2
)

func (Context_Variant_Role) Descriptor

func (Context_Variant_Role) Enum

func (Context_Variant_Role) EnumDescriptor deprecated

func (Context_Variant_Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use Context_Variant_Role.Descriptor instead.

func (Context_Variant_Role) Number

func (Context_Variant_Role) String

func (x Context_Variant_Role) String() string

func (Context_Variant_Role) Type

type Context_Workload

type Context_Workload struct {
	Kind      *GroupVersionKind `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	Namespace string            `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string            `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Uid       string            `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

Workload contexts are added to existence records that have been observed running on a cluster.

func (*Context_Workload) Descriptor deprecated

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

Deprecated: Use Context_Workload.ProtoReflect.Descriptor instead.

func (*Context_Workload) GetKind

func (x *Context_Workload) GetKind() *GroupVersionKind

func (*Context_Workload) GetName

func (x *Context_Workload) GetName() string

func (*Context_Workload) GetNamespace

func (x *Context_Workload) GetNamespace() string

func (*Context_Workload) GetUid

func (x *Context_Workload) GetUid() string

func (*Context_Workload) ProtoMessage

func (*Context_Workload) ProtoMessage()

func (*Context_Workload) ProtoReflect

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

func (*Context_Workload) Reset

func (x *Context_Workload) Reset()

func (*Context_Workload) String

func (x *Context_Workload) String() string

type Context_Workload_

type Context_Workload_ struct {
	Workload *Context_Workload `protobuf:"bytes,10,opt,name=workload,proto3,oneof"`
}

type CreateClusterRequest

type CreateClusterRequest struct {

	// parent_id, The Group under which this Cluster resides.
	ParentId string `protobuf:"bytes,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// Cluster is the definition of the managed cluster to create.
	Cluster *Cluster `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateClusterRequest) Descriptor deprecated

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

Deprecated: Use CreateClusterRequest.ProtoReflect.Descriptor instead.

func (*CreateClusterRequest) GetCluster

func (x *CreateClusterRequest) GetCluster() *Cluster

func (*CreateClusterRequest) GetParentId

func (x *CreateClusterRequest) GetParentId() 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 is the exact UIDP of the record.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteClusterRequest) CloudEventsExtension

func (x *DeleteClusterRequest) CloudEventsExtension(key string) (string, bool)

CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension

func (*DeleteClusterRequest) CloudEventsRedact

func (x *DeleteClusterRequest) CloudEventsRedact() interface{}

CloudEventsRedact implements chainguard.dev/sdk/events/Redactable.Redact.

func (*DeleteClusterRequest) CloudEventsSubject

func (x *DeleteClusterRequest) CloudEventsSubject() string

CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject.

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 File2

type File2 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"`
	Types []string `protobuf:"bytes,4,rep,name=types,proto3" json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (*File2) Descriptor deprecated

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

Deprecated: Use File2.ProtoReflect.Descriptor instead.

func (*File2) GetId

func (x *File2) GetId() string

func (*File2) GetName

func (x *File2) GetName() string

func (*File2) GetTypes

func (x *File2) GetTypes() []string

func (*File2) ProtoMessage

func (*File2) ProtoMessage()

func (*File2) ProtoReflect

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

func (*File2) Reset

func (x *File2) Reset()

func (*File2) String

func (x *File2) String() string

type Fix

type Fix struct {

	// List of in versions of the package on which the vulnerability has been solved.
	Versions []string `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	// state reflects the state of the fix, e.g. fixed, unknown, not-fixed, won't-fix.
	State Fix_State `protobuf:"varint,2,opt,name=state,proto3,enum=chainguard.platform.tenant.Fix_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*Fix) Descriptor deprecated

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

Deprecated: Use Fix.ProtoReflect.Descriptor instead.

func (*Fix) GetState

func (x *Fix) GetState() Fix_State

func (*Fix) GetVersions

func (x *Fix) GetVersions() []string

func (*Fix) ProtoMessage

func (*Fix) ProtoMessage()

func (*Fix) ProtoReflect

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

func (*Fix) Reset

func (x *Fix) Reset()

func (*Fix) String

func (x *Fix) String() string

type Fix_State

type Fix_State int32
const (
	Fix_UNKNOWN   Fix_State = 0
	Fix_FIXED     Fix_State = 1
	Fix_NOT_FIXED Fix_State = 2
	Fix_WONT_FIX  Fix_State = 3
)

func (Fix_State) Descriptor

func (Fix_State) Descriptor() protoreflect.EnumDescriptor

func (Fix_State) Enum

func (x Fix_State) Enum() *Fix_State

func (Fix_State) EnumDescriptor deprecated

func (Fix_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Fix_State.Descriptor instead.

func (Fix_State) Number

func (x Fix_State) Number() protoreflect.EnumNumber

func (Fix_State) String

func (x Fix_State) String() string

func (Fix_State) Type

type GroupVersionKind

type GroupVersionKind struct {
	Group   string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Kind    string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

TODO: Replace with upstream proto messages wherever possible.

func (*GroupVersionKind) Descriptor deprecated

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

Deprecated: Use GroupVersionKind.ProtoReflect.Descriptor instead.

func (*GroupVersionKind) GetGroup

func (x *GroupVersionKind) GetGroup() string

func (*GroupVersionKind) GetKind

func (x *GroupVersionKind) GetKind() string

func (*GroupVersionKind) GetVersion

func (x *GroupVersionKind) GetVersion() string

func (*GroupVersionKind) ProtoMessage

func (*GroupVersionKind) ProtoMessage()

func (*GroupVersionKind) ProtoReflect

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

func (*GroupVersionKind) Reset

func (x *GroupVersionKind) Reset()

func (*GroupVersionKind) String

func (x *GroupVersionKind) String() string

type Namespace

type Namespace struct {

	// id, The Namespace UIDP at which this Namespace resides.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name of the Namespace.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// a short description of this Namespace.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// remote_id is the remote ID of this Namespace.
	RemoteId string `protobuf:"bytes,4,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
	Labels   string `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"`
	// last_seen tracks the timestamp at which this namespace was last seen.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// contains filtered or unexported fields
}

func (*Namespace) Descriptor deprecated

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

Deprecated: Use Namespace.ProtoReflect.Descriptor instead.

func (*Namespace) GetDescription

func (x *Namespace) GetDescription() string

func (*Namespace) GetId

func (x *Namespace) GetId() string

func (*Namespace) GetLabels

func (x *Namespace) GetLabels() string

func (*Namespace) GetLastSeen

func (x *Namespace) GetLastSeen() *timestamppb.Timestamp

func (*Namespace) GetName

func (x *Namespace) GetName() string

func (*Namespace) GetRemoteId

func (x *Namespace) GetRemoteId() string

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) ProtoReflect

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

func (*Namespace) Reset

func (x *Namespace) Reset()

func (*Namespace) String

func (x *Namespace) String() string

type NamespaceFilter

type NamespaceFilter struct {

	// remote_id is the remote ID of this Namespace.
	RemoteId string `protobuf:"bytes,2,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
	// active_since is the timestamp after which returned namespaces
	// should have been active (last seen).
	ActiveSince *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
	// name filters on the resource name.
	Name string         `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Uidp *v1.UIDPFilter `protobuf:"bytes,100,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceFilter) Descriptor deprecated

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

Deprecated: Use NamespaceFilter.ProtoReflect.Descriptor instead.

func (*NamespaceFilter) GetActiveSince

func (x *NamespaceFilter) GetActiveSince() *timestamppb.Timestamp

func (*NamespaceFilter) GetName

func (x *NamespaceFilter) GetName() string

func (*NamespaceFilter) GetRemoteId

func (x *NamespaceFilter) GetRemoteId() string

func (*NamespaceFilter) GetUidp

func (x *NamespaceFilter) GetUidp() *v1.UIDPFilter

func (*NamespaceFilter) ProtoMessage

func (*NamespaceFilter) ProtoMessage()

func (*NamespaceFilter) ProtoReflect

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

func (*NamespaceFilter) Reset

func (x *NamespaceFilter) Reset()

func (*NamespaceFilter) String

func (x *NamespaceFilter) String() string

type NamespaceList

type NamespaceList struct {
	Items []*Namespace `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceList) Descriptor deprecated

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

Deprecated: Use NamespaceList.ProtoReflect.Descriptor instead.

func (*NamespaceList) GetItems

func (x *NamespaceList) GetItems() []*Namespace

func (*NamespaceList) ProtoMessage

func (*NamespaceList) ProtoMessage()

func (*NamespaceList) ProtoReflect

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

func (*NamespaceList) Reset

func (x *NamespaceList) Reset()

func (*NamespaceList) String

func (x *NamespaceList) String() string

type NamespacesClient

type NamespacesClient interface {
	List(ctx context.Context, in *NamespaceFilter, opts ...grpc.CallOption) (*NamespaceList, error)
}

NamespacesClient is the client API for Namespaces 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 NewNamespacesClient

func NewNamespacesClient(cc grpc.ClientConnInterface) NamespacesClient

type NamespacesServer

type NamespacesServer interface {
	List(context.Context, *NamespaceFilter) (*NamespaceList, error)
	// contains filtered or unexported methods
}

NamespacesServer is the server API for Namespaces service. All implementations must embed UnimplementedNamespacesServer for forward compatibility

type Node

type Node struct {

	// id, The Node UIDP at which this Node resides.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name of the Node.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// a short description of this Node.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// remote_id is the remote ID of this Node.
	RemoteId string `protobuf:"bytes,4,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
	Labels   string `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"`
	// last_seen tracks the timestamp at which this node was last seen.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// Platform/Architecture-level information (10+)
	OperatingSystem string `protobuf:"bytes,10,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"`
	Architecture    string `protobuf:"bytes,11,opt,name=architecture,proto3" json:"architecture,omitempty"`
	// Assorted versions (20+)
	KubeletVersion          string `protobuf:"bytes,20,opt,name=kubelet_version,json=kubeletVersion,proto3" json:"kubelet_version,omitempty"`
	ContainerRuntimeVersion string `` /* 133-byte string literal not displayed */
	KernelVersion           string `protobuf:"bytes,22,opt,name=kernel_version,json=kernelVersion,proto3" json:"kernel_version,omitempty"`
	// Node capacity information (30+)
	CpuCapacity    string `protobuf:"bytes,30,opt,name=cpu_capacity,json=cpuCapacity,proto3" json:"cpu_capacity,omitempty"`
	MemoryCapacity string `protobuf:"bytes,31,opt,name=memory_capacity,json=memoryCapacity,proto3" json:"memory_capacity,omitempty"`
	PodCapacity    string `protobuf:"bytes,32,opt,name=pod_capacity,json=podCapacity,proto3" json:"pod_capacity,omitempty"`
	// Location information (40+)
	Zone   string `protobuf:"bytes,40,opt,name=zone,proto3" json:"zone,omitempty"`
	Region string `protobuf:"bytes,41,opt,name=region,proto3" json:"region,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetArchitecture

func (x *Node) GetArchitecture() string

func (*Node) GetContainerRuntimeVersion

func (x *Node) GetContainerRuntimeVersion() string

func (*Node) GetCpuCapacity

func (x *Node) GetCpuCapacity() string

func (*Node) GetDescription

func (x *Node) GetDescription() string

func (*Node) GetId

func (x *Node) GetId() string

func (*Node) GetKernelVersion

func (x *Node) GetKernelVersion() string

func (*Node) GetKubeletVersion

func (x *Node) GetKubeletVersion() string

func (*Node) GetLabels

func (x *Node) GetLabels() string

func (*Node) GetLastSeen

func (x *Node) GetLastSeen() *timestamppb.Timestamp

func (*Node) GetMemoryCapacity

func (x *Node) GetMemoryCapacity() string

func (*Node) GetName

func (x *Node) GetName() string

func (*Node) GetOperatingSystem

func (x *Node) GetOperatingSystem() string

func (*Node) GetPodCapacity

func (x *Node) GetPodCapacity() string

func (*Node) GetRegion

func (x *Node) GetRegion() string

func (*Node) GetRemoteId

func (x *Node) GetRemoteId() string

func (*Node) GetZone

func (x *Node) GetZone() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type NodeFilter

type NodeFilter struct {

	// remote_id is the remote ID of this Node.
	RemoteId string `protobuf:"bytes,2,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
	// active_since is the timestamp after which returned nodes
	// should have been active (last seen).
	ActiveSince *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
	// name filters on the resource name.
	Name string         `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Uidp *v1.UIDPFilter `protobuf:"bytes,100,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeFilter) Descriptor deprecated

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

Deprecated: Use NodeFilter.ProtoReflect.Descriptor instead.

func (*NodeFilter) GetActiveSince

func (x *NodeFilter) GetActiveSince() *timestamppb.Timestamp

func (*NodeFilter) GetName

func (x *NodeFilter) GetName() string

func (*NodeFilter) GetRemoteId

func (x *NodeFilter) GetRemoteId() string

func (*NodeFilter) GetUidp

func (x *NodeFilter) GetUidp() *v1.UIDPFilter

func (*NodeFilter) ProtoMessage

func (*NodeFilter) ProtoMessage()

func (*NodeFilter) ProtoReflect

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

func (*NodeFilter) Reset

func (x *NodeFilter) Reset()

func (*NodeFilter) String

func (x *NodeFilter) String() string

type NodeList

type NodeList struct {
	Items []*Node `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeList) Descriptor deprecated

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

Deprecated: Use NodeList.ProtoReflect.Descriptor instead.

func (*NodeList) GetItems

func (x *NodeList) GetItems() []*Node

func (*NodeList) ProtoMessage

func (*NodeList) ProtoMessage()

func (*NodeList) ProtoReflect

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

func (*NodeList) Reset

func (x *NodeList) Reset()

func (*NodeList) String

func (x *NodeList) String() string

type NodesClient

type NodesClient interface {
	List(ctx context.Context, in *NodeFilter, opts ...grpc.CallOption) (*NodeList, error)
}

NodesClient is the client API for Nodes 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 NewNodesClient

func NewNodesClient(cc grpc.ClientConnInterface) NodesClient

type NodesServer

type NodesServer interface {
	List(context.Context, *NodeFilter) (*NodeList, error)
	// contains filtered or unexported methods
}

NodesServer is the server API for Nodes service. All implementations must embed UnimplementedNodesServer for forward compatibility

type Package

type Package struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Purl    string `protobuf:"bytes,3,opt,name=purl,proto3" json:"purl,omitempty"`
	// contains filtered or unexported fields
}

func (*Package) Descriptor deprecated

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

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetName

func (x *Package) GetName() string

func (*Package) GetPurl

func (x *Package) GetPurl() string

func (*Package) GetVersion

func (x *Package) GetVersion() string

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

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

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

type Package2

type Package2 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"`
	Version     string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	License     string `protobuf:"bytes,4,opt,name=license,proto3" json:"license,omitempty"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Purl        string `protobuf:"bytes,6,opt,name=purl,proto3" json:"purl,omitempty"`
	// contains filtered or unexported fields
}

func (*Package2) Descriptor deprecated

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

Deprecated: Use Package2.ProtoReflect.Descriptor instead.

func (*Package2) GetDescription

func (x *Package2) GetDescription() string

func (*Package2) GetId

func (x *Package2) GetId() string

func (*Package2) GetLicense

func (x *Package2) GetLicense() string

func (*Package2) GetName

func (x *Package2) GetName() string

func (*Package2) GetPurl

func (x *Package2) GetPurl() string

func (*Package2) GetVersion

func (x *Package2) GetVersion() string

func (*Package2) ProtoMessage

func (*Package2) ProtoMessage()

func (*Package2) ProtoReflect

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

func (*Package2) Reset

func (x *Package2) Reset()

func (*Package2) String

func (x *Package2) String() string

type Policy

type Policy struct {

	// last_checked holds when this policy was last evaluated.
	LastChecked *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_checked,json=lastChecked,proto3" json:"last_checked,omitempty"`
	// valid holds whether the policy evaluation was successful.
	Valid bool `protobuf:"varint,2,opt,name=valid,proto3" json:"valid,omitempty"`
	// diagnostic holds any messages surfaced by the policy evaluation.
	Diagnostic string `protobuf:"bytes,3,opt,name=diagnostic,proto3" json:"diagnostic,omitempty"`
	// contains filtered or unexported fields
}

func (*Policy) Descriptor deprecated

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

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetDiagnostic

func (x *Policy) GetDiagnostic() string

func (*Policy) GetLastChecked

func (x *Policy) GetLastChecked() *timestamppb.Timestamp

func (*Policy) GetValid

func (x *Policy) GetValid() bool

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

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

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) String

func (x *Policy) String() string

type PolicyResult

type PolicyResult struct {

	// id, The PolicyResult UIDP at which this PolicyResult resides.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name of the PolicyResult.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// a short description of this PolicyResult.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// policy_id is the metadata.uid of the Policy this result captures an evaluation of.
	PolicyId string `protobuf:"bytes,4,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	// version is the metadata.resourceVersion of the Policy this result captures an evaluation of.
	Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
	// last_checked tracks the timestamp at which this policy result was last checked.
	LastChecked *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_checked,json=lastChecked,proto3" json:"last_checked,omitempty"`
	// result holds the result of this policy evaluation.
	Result PolicyResult_Result `protobuf:"varint,7,opt,name=result,proto3,enum=chainguard.platform.tenant.PolicyResult_Result" json:"result,omitempty"`
	// diagnostic holds the diagnostic message associated with the result of this policy evaluation.
	Diagnostic string `protobuf:"bytes,8,opt,name=diagnostic,proto3" json:"diagnostic,omitempty"`
	// This loosely tracks the policy-controller's PolicyResult type found here:
	// https://github.com/sigstore/policy-controller/blob/f777dcc2e/pkg/webhook/validator_result.go
	AuthorityMatches map[string]*PolicyResult_AuthorityMatch `` /* 197-byte string literal not displayed */
	// parent_type, It is the parent type associated with the PolicyResult, can be Record, RecordContext or Workload.
	ParentType PolicyResult_ParentType `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PolicyResult) Descriptor deprecated

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

Deprecated: Use PolicyResult.ProtoReflect.Descriptor instead.

func (*PolicyResult) GetAuthorityMatches

func (x *PolicyResult) GetAuthorityMatches() map[string]*PolicyResult_AuthorityMatch

func (*PolicyResult) GetDescription

func (x *PolicyResult) GetDescription() string

func (*PolicyResult) GetDiagnostic

func (x *PolicyResult) GetDiagnostic() string

func (*PolicyResult) GetId

func (x *PolicyResult) GetId() string

func (*PolicyResult) GetLastChecked

func (x *PolicyResult) GetLastChecked() *timestamppb.Timestamp

func (*PolicyResult) GetName

func (x *PolicyResult) GetName() string

func (*PolicyResult) GetParentType

func (x *PolicyResult) GetParentType() PolicyResult_ParentType

func (*PolicyResult) GetPolicyId

func (x *PolicyResult) GetPolicyId() string

func (*PolicyResult) GetResult

func (x *PolicyResult) GetResult() PolicyResult_Result

func (*PolicyResult) GetVersion

func (x *PolicyResult) GetVersion() string

func (*PolicyResult) ProtoMessage

func (*PolicyResult) ProtoMessage()

func (*PolicyResult) ProtoReflect

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

func (*PolicyResult) Reset

func (x *PolicyResult) Reset()

func (*PolicyResult) String

func (x *PolicyResult) String() string

type PolicyResultFilter

type PolicyResultFilter struct {
	Uidp *v1.UIDPFilter `protobuf:"bytes,1,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// checked_since is the timestamp after which the policy should
	// have last been checked.
	CheckedSince *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=checked_since,json=checkedSince,proto3" json:"checked_since,omitempty"`
	// policy_id looks up evaluations of the policy identified by this metadata.uid
	PolicyId string `protobuf:"bytes,3,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	// results filters policy results with one of the provided result.
	Results []PolicyResult_Result `` /* 127-byte string literal not displayed */
	// parent_type filters policy results with the provided parent_type.
	ParentType PolicyResult_ParentType `` /* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PolicyResultFilter) Descriptor deprecated

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

Deprecated: Use PolicyResultFilter.ProtoReflect.Descriptor instead.

func (*PolicyResultFilter) GetCheckedSince

func (x *PolicyResultFilter) GetCheckedSince() *timestamppb.Timestamp

func (*PolicyResultFilter) GetParentType

func (x *PolicyResultFilter) GetParentType() PolicyResult_ParentType

func (*PolicyResultFilter) GetPolicyId

func (x *PolicyResultFilter) GetPolicyId() string

func (*PolicyResultFilter) GetResults

func (x *PolicyResultFilter) GetResults() []PolicyResult_Result

func (*PolicyResultFilter) GetUidp

func (x *PolicyResultFilter) GetUidp() *v1.UIDPFilter

func (*PolicyResultFilter) ProtoMessage

func (*PolicyResultFilter) ProtoMessage()

func (*PolicyResultFilter) ProtoReflect

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

func (*PolicyResultFilter) Reset

func (x *PolicyResultFilter) Reset()

func (*PolicyResultFilter) String

func (x *PolicyResultFilter) String() string

type PolicyResultList

type PolicyResultList struct {
	Items []*PolicyResult `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*PolicyResultList) Descriptor deprecated

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

Deprecated: Use PolicyResultList.ProtoReflect.Descriptor instead.

func (*PolicyResultList) GetItems

func (x *PolicyResultList) GetItems() []*PolicyResult

func (*PolicyResultList) ProtoMessage

func (*PolicyResultList) ProtoMessage()

func (*PolicyResultList) ProtoReflect

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

func (*PolicyResultList) Reset

func (x *PolicyResultList) Reset()

func (*PolicyResultList) String

func (x *PolicyResultList) String() string

type PolicyResult_AuthorityMatch

type PolicyResult_AuthorityMatch struct {

	// The matched signatures.
	Signatures *PolicyResult_AuthorityMatch_SignatureMatches `protobuf:"bytes,1,opt,name=signatures,proto3" json:"signatures,omitempty"`
	// A map from attestation name to matched attestations.
	Attestations map[string]*PolicyResult_AuthorityMatch_SignatureMatches `` /* 165-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PolicyResult_AuthorityMatch) Descriptor deprecated

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

Deprecated: Use PolicyResult_AuthorityMatch.ProtoReflect.Descriptor instead.

func (*PolicyResult_AuthorityMatch) GetAttestations

func (*PolicyResult_AuthorityMatch) GetSignatures

func (*PolicyResult_AuthorityMatch) ProtoMessage

func (*PolicyResult_AuthorityMatch) ProtoMessage()

func (*PolicyResult_AuthorityMatch) ProtoReflect

func (*PolicyResult_AuthorityMatch) Reset

func (x *PolicyResult_AuthorityMatch) Reset()

func (*PolicyResult_AuthorityMatch) String

func (x *PolicyResult_AuthorityMatch) String() string

type PolicyResult_AuthorityMatch_SignatureMatches

type PolicyResult_AuthorityMatch_SignatureMatches struct {

	// The list of signature record UIDPs
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*PolicyResult_AuthorityMatch_SignatureMatches) Descriptor deprecated

Deprecated: Use PolicyResult_AuthorityMatch_SignatureMatches.ProtoReflect.Descriptor instead.

func (*PolicyResult_AuthorityMatch_SignatureMatches) GetIds

func (*PolicyResult_AuthorityMatch_SignatureMatches) ProtoMessage

func (*PolicyResult_AuthorityMatch_SignatureMatches) ProtoReflect

func (*PolicyResult_AuthorityMatch_SignatureMatches) Reset

func (*PolicyResult_AuthorityMatch_SignatureMatches) String

type PolicyResult_ParentType

type PolicyResult_ParentType int32
const (
	PolicyResult_PARENT_TYPE_UNKNOWN PolicyResult_ParentType = 0
	PolicyResult_RECORD              PolicyResult_ParentType = 1
	PolicyResult_RECORD_CONTEXT      PolicyResult_ParentType = 2
	PolicyResult_WORKLOAD            PolicyResult_ParentType = 3
)

func (PolicyResult_ParentType) Descriptor

func (PolicyResult_ParentType) Enum

func (PolicyResult_ParentType) EnumDescriptor deprecated

func (PolicyResult_ParentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PolicyResult_ParentType.Descriptor instead.

func (PolicyResult_ParentType) Number

func (PolicyResult_ParentType) String

func (x PolicyResult_ParentType) String() string

func (PolicyResult_ParentType) Type

type PolicyResult_Result

type PolicyResult_Result int32
const (
	PolicyResult_UNKNOWN PolicyResult_Result = 0
	// PASS represents when a policy evaluation completed without any
	// diagnostics returned.
	PolicyResult_PASS PolicyResult_Result = 1
	// WARN represents when a policy evaluation completed with warnings
	// (e.g. the policy used mode: warn).
	PolicyResult_WARN PolicyResult_Result = 2
	// FAIL represents when a policy evaluation completed with errors
	// (e.g. the policy used mode: enforce).
	PolicyResult_FAIL PolicyResult_Result = 3
)

func (PolicyResult_Result) Descriptor

func (PolicyResult_Result) Enum

func (PolicyResult_Result) EnumDescriptor deprecated

func (PolicyResult_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use PolicyResult_Result.Descriptor instead.

func (PolicyResult_Result) Number

func (PolicyResult_Result) String

func (x PolicyResult_Result) String() string

func (PolicyResult_Result) Type

type PolicyResultsClient

type PolicyResultsClient interface {
	List(ctx context.Context, in *PolicyResultFilter, opts ...grpc.CallOption) (*PolicyResultList, error)
}

PolicyResultsClient is the client API for PolicyResults 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 PolicyResultsServer

type PolicyResultsServer interface {
	List(context.Context, *PolicyResultFilter) (*PolicyResultList, error)
	// contains filtered or unexported methods
}

PolicyResultsServer is the server API for PolicyResults service. All implementations must embed UnimplementedPolicyResultsServer for forward compatibility

type Recommendation

type Recommendation struct {

	// Classification of what kind of remediation this is, e.g.:
	// upgrade, replace, etc.
	//
	// Types that are assignable to Action:
	//
	//	*Recommendation_Replace
	Action isRecommendation_Action `protobuf_oneof:"action"`
	// Output only. Free form text describing how this can be resolved.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Output only. Chainguard EDU link for more details on this Recommendation.
	DocumentationUrl string `protobuf:"bytes,4,opt,name=documentation_url,json=documentationUrl,proto3" json:"documentation_url,omitempty"`
	// contains filtered or unexported fields
}

func (*Recommendation) Descriptor deprecated

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

Deprecated: Use Recommendation.ProtoReflect.Descriptor instead.

func (*Recommendation) GetAction

func (m *Recommendation) GetAction() isRecommendation_Action

func (*Recommendation) GetDescription

func (x *Recommendation) GetDescription() string

func (*Recommendation) GetDocumentationUrl

func (x *Recommendation) GetDocumentationUrl() string

func (*Recommendation) GetReplace

func (*Recommendation) ProtoMessage

func (*Recommendation) ProtoMessage()

func (*Recommendation) ProtoReflect

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

func (*Recommendation) Reset

func (x *Recommendation) Reset()

func (*Recommendation) String

func (x *Recommendation) String() string

type Recommendation_Replace

type Recommendation_Replace struct {
	Replace *Recommendation_ReplaceArtifact `protobuf:"bytes,1,opt,name=replace,proto3,oneof"`
}

type Recommendation_ReplaceArtifact

type Recommendation_ReplaceArtifact struct {
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// Target artifact that may be able to resolve this Risk.
	To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*Recommendation_ReplaceArtifact) Descriptor deprecated

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

Deprecated: Use Recommendation_ReplaceArtifact.ProtoReflect.Descriptor instead.

func (*Recommendation_ReplaceArtifact) GetFrom

func (*Recommendation_ReplaceArtifact) GetTo

func (*Recommendation_ReplaceArtifact) ProtoMessage

func (*Recommendation_ReplaceArtifact) ProtoMessage()

func (*Recommendation_ReplaceArtifact) ProtoReflect

func (*Recommendation_ReplaceArtifact) Reset

func (x *Recommendation_ReplaceArtifact) Reset()

func (*Recommendation_ReplaceArtifact) String

type Record

type Record struct {

	// id holds the UIDP for this image's record
	Id string `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
	// cluster identifies the specific cluster for the record.
	Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// image is the container image for the record.
	Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	// last_seen is the last time we've seen this image anywhere on this cluster.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// last_refreshed will hold a PredicateType => Last time it was successfully
	// refreshed.
	LastRefreshed map[string]*timestamppb.Timestamp `` /* 188-byte string literal not displayed */
	Sboms         []*Sbom                           `protobuf:"bytes,6,rep,name=sboms,proto3" json:"sboms,omitempty"`
	// status is a map from analysis type (e.g. "sbom", "vuln") => RecordStatus to indidate success/failure,
	// the analysis timestamp, as well as any diagnostic message in case of failures.
	Status map[string]*RecordStatus `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetCluster

func (x *Record) GetCluster() string

func (*Record) GetId

func (x *Record) GetId() string

func (*Record) GetImage

func (x *Record) GetImage() string

func (*Record) GetLastRefreshed

func (x *Record) GetLastRefreshed() map[string]*timestamppb.Timestamp

func (*Record) GetLastSeen

func (x *Record) GetLastSeen() *timestamppb.Timestamp

func (*Record) GetSboms

func (x *Record) GetSboms() []*Sbom

func (*Record) GetStatus

func (x *Record) GetStatus() map[string]*RecordStatus

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type RecordContext

type RecordContext struct {

	// id, The RecordContext UIDP at which this RecordContext resides.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name of the RecordContext.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// a short description of this RecordContext.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// last_seen tracks the timestamp at which this RecordContext was last seen.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// Types that are assignable to Kind:
	//
	//	*RecordContext_Workload_
	//	*RecordContext_Ancestry_
	//	*RecordContext_Variant_
	Kind isRecordContext_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*RecordContext) Descriptor deprecated

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

Deprecated: Use RecordContext.ProtoReflect.Descriptor instead.

func (*RecordContext) GetAncestry

func (x *RecordContext) GetAncestry() *RecordContext_Ancestry

func (*RecordContext) GetDescription

func (x *RecordContext) GetDescription() string

func (*RecordContext) GetId

func (x *RecordContext) GetId() string

func (*RecordContext) GetKind

func (m *RecordContext) GetKind() isRecordContext_Kind

func (*RecordContext) GetLastSeen

func (x *RecordContext) GetLastSeen() *timestamppb.Timestamp

func (*RecordContext) GetName

func (x *RecordContext) GetName() string

func (*RecordContext) GetVariant

func (x *RecordContext) GetVariant() *RecordContext_Variant

func (*RecordContext) GetWorkload

func (x *RecordContext) GetWorkload() *RecordContext_Workload

func (*RecordContext) ProtoMessage

func (*RecordContext) ProtoMessage()

func (*RecordContext) ProtoReflect

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

func (*RecordContext) Reset

func (x *RecordContext) Reset()

func (*RecordContext) String

func (x *RecordContext) String() string

type RecordContextFilter

type RecordContextFilter struct {
	Uidp *v1.UIDPFilter `protobuf:"bytes,1,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// active_since is the timestamp after which the records should
	// have last been observed in the returned context.
	ActiveSince *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
	// Allow filtering results based on matching fields in the context
	// ranging from just a particular "kind" to the exact workload shape.
	// Only specified fields will be used as part of the match.
	//
	// Types that are assignable to Kind:
	//
	//	*RecordContextFilter_Workload
	//	*RecordContextFilter_Ancestry
	//	*RecordContextFilter_Variant
	Kind isRecordContextFilter_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*RecordContextFilter) Descriptor deprecated

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

Deprecated: Use RecordContextFilter.ProtoReflect.Descriptor instead.

func (*RecordContextFilter) GetActiveSince

func (x *RecordContextFilter) GetActiveSince() *timestamppb.Timestamp

func (*RecordContextFilter) GetAncestry

func (x *RecordContextFilter) GetAncestry() *RecordContext_Ancestry

func (*RecordContextFilter) GetKind

func (m *RecordContextFilter) GetKind() isRecordContextFilter_Kind

func (*RecordContextFilter) GetUidp

func (x *RecordContextFilter) GetUidp() *v1.UIDPFilter

func (*RecordContextFilter) GetVariant

func (x *RecordContextFilter) GetVariant() *RecordContext_Variant

func (*RecordContextFilter) GetWorkload

func (x *RecordContextFilter) GetWorkload() *RecordContext_Workload

func (*RecordContextFilter) ProtoMessage

func (*RecordContextFilter) ProtoMessage()

func (*RecordContextFilter) ProtoReflect

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

func (*RecordContextFilter) Reset

func (x *RecordContextFilter) Reset()

func (*RecordContextFilter) String

func (x *RecordContextFilter) String() string

type RecordContextFilter_Ancestry

type RecordContextFilter_Ancestry struct {
	Ancestry *RecordContext_Ancestry `protobuf:"bytes,101,opt,name=ancestry,proto3,oneof"`
}

type RecordContextFilter_Variant

type RecordContextFilter_Variant struct {
	Variant *RecordContext_Variant `protobuf:"bytes,102,opt,name=variant,proto3,oneof"`
}

type RecordContextFilter_Workload

type RecordContextFilter_Workload struct {
	Workload *RecordContext_Workload `protobuf:"bytes,100,opt,name=workload,proto3,oneof"`
}

type RecordContextList

type RecordContextList struct {
	Items []*RecordContext `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordContextList) Descriptor deprecated

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

Deprecated: Use RecordContextList.ProtoReflect.Descriptor instead.

func (*RecordContextList) GetItems

func (x *RecordContextList) GetItems() []*RecordContext

func (*RecordContextList) ProtoMessage

func (*RecordContextList) ProtoMessage()

func (*RecordContextList) ProtoReflect

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

func (*RecordContextList) Reset

func (x *RecordContextList) Reset()

func (*RecordContextList) String

func (x *RecordContextList) String() string

type RecordContext_Ancestry

type RecordContext_Ancestry struct {
	Role RecordContext_Ancestry_Role `protobuf:"varint,1,opt,name=role,proto3,enum=chainguard.platform.tenant.RecordContext_Ancestry_Role" json:"role,omitempty"`
	// image_id holds the digest of the related image, which can be used
	// to efficiently retrieve it's record.
	ImageId string `protobuf:"bytes,2,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	// contains filtered or unexported fields
}

Ancestry relationships are added to records when a "base image" relationship has been uncovered. This context is added to BOTH records with their respective roles. The base image will get the Role BASE, and the derivative image will get the Role DERIVED.

func (*RecordContext_Ancestry) Descriptor deprecated

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

Deprecated: Use RecordContext_Ancestry.ProtoReflect.Descriptor instead.

func (*RecordContext_Ancestry) GetImageId

func (x *RecordContext_Ancestry) GetImageId() string

func (*RecordContext_Ancestry) GetRole

func (*RecordContext_Ancestry) ProtoMessage

func (*RecordContext_Ancestry) ProtoMessage()

func (*RecordContext_Ancestry) ProtoReflect

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

func (*RecordContext_Ancestry) Reset

func (x *RecordContext_Ancestry) Reset()

func (*RecordContext_Ancestry) String

func (x *RecordContext_Ancestry) String() string

type RecordContext_Ancestry_

type RecordContext_Ancestry_ struct {
	Ancestry *RecordContext_Ancestry `protobuf:"bytes,101,opt,name=ancestry,proto3,oneof"`
}

type RecordContext_Ancestry_Role

type RecordContext_Ancestry_Role int32
const (
	RecordContext_Ancestry_UNKNOWN RecordContext_Ancestry_Role = 0
	RecordContext_Ancestry_BASE    RecordContext_Ancestry_Role = 1
	RecordContext_Ancestry_DERIVED RecordContext_Ancestry_Role = 2
)

func (RecordContext_Ancestry_Role) Descriptor

func (RecordContext_Ancestry_Role) Enum

func (RecordContext_Ancestry_Role) EnumDescriptor deprecated

func (RecordContext_Ancestry_Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use RecordContext_Ancestry_Role.Descriptor instead.

func (RecordContext_Ancestry_Role) Number

func (RecordContext_Ancestry_Role) String

func (RecordContext_Ancestry_Role) Type

type RecordContext_Variant

type RecordContext_Variant struct {
	Role RecordContext_Variant_Role `protobuf:"varint,1,opt,name=role,proto3,enum=chainguard.platform.tenant.RecordContext_Variant_Role" json:"role,omitempty"`
	// image_id holds the digest of the related image, which can be used
	// to efficiently retrieve it's record.
	ImageId string `protobuf:"bytes,2,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	// The version information distinguishing this variant
	// from other possible variants of the index.
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

Variant relationships are added to records when we find an "index" containing multiple different variations (typically os/arch) of the same logical image. These are referred to as "OCI Image Index", "Docker Manifest List", and occasionally "fat images". This context is added to ALL records including the INDEX and all VARIANTs of that index. The INDEX will typically contain N contexts carrying the Role INDEX, the id of the VARIANT's record, and the version information that discriminates that VARIANT from other VARIANTs. The VARIANT will typically (but not always!) contain 1 context carrying the Role VARIANT, the id of the INDEX's record, and the version information that discriminates it among the other VARIANTs in the INDEX.

func (*RecordContext_Variant) Descriptor deprecated

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

Deprecated: Use RecordContext_Variant.ProtoReflect.Descriptor instead.

func (*RecordContext_Variant) GetImageId

func (x *RecordContext_Variant) GetImageId() string

func (*RecordContext_Variant) GetRole

func (*RecordContext_Variant) GetVersion

func (x *RecordContext_Variant) GetVersion() string

func (*RecordContext_Variant) ProtoMessage

func (*RecordContext_Variant) ProtoMessage()

func (*RecordContext_Variant) ProtoReflect

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

func (*RecordContext_Variant) Reset

func (x *RecordContext_Variant) Reset()

func (*RecordContext_Variant) String

func (x *RecordContext_Variant) String() string

type RecordContext_Variant_

type RecordContext_Variant_ struct {
	Variant *RecordContext_Variant `protobuf:"bytes,102,opt,name=variant,proto3,oneof"`
}

type RecordContext_Variant_Role

type RecordContext_Variant_Role int32
const (
	RecordContext_Variant_UNKNOWN RecordContext_Variant_Role = 0
	RecordContext_Variant_INDEX   RecordContext_Variant_Role = 1
	RecordContext_Variant_VARIANT RecordContext_Variant_Role = 2
)

func (RecordContext_Variant_Role) Descriptor

func (RecordContext_Variant_Role) Enum

func (RecordContext_Variant_Role) EnumDescriptor deprecated

func (RecordContext_Variant_Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use RecordContext_Variant_Role.Descriptor instead.

func (RecordContext_Variant_Role) Number

func (RecordContext_Variant_Role) String

func (RecordContext_Variant_Role) Type

type RecordContext_Workload

type RecordContext_Workload struct {

	// remote_id is the metadata.uid of the workload in which this
	// container was observed.
	RemoteId string `protobuf:"bytes,1,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
	// contains filtered or unexported fields
}

Workload contexts are added to existence records that have been observed running on a cluster.

func (*RecordContext_Workload) Descriptor deprecated

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

Deprecated: Use RecordContext_Workload.ProtoReflect.Descriptor instead.

func (*RecordContext_Workload) GetRemoteId

func (x *RecordContext_Workload) GetRemoteId() string

func (*RecordContext_Workload) ProtoMessage

func (*RecordContext_Workload) ProtoMessage()

func (*RecordContext_Workload) ProtoReflect

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

func (*RecordContext_Workload) Reset

func (x *RecordContext_Workload) Reset()

func (*RecordContext_Workload) String

func (x *RecordContext_Workload) String() string

type RecordContext_Workload_

type RecordContext_Workload_ struct {
	Workload *RecordContext_Workload `protobuf:"bytes,100,opt,name=workload,proto3,oneof"`
}

type RecordContextsClient

type RecordContextsClient interface {
	List(ctx context.Context, in *RecordContextFilter, opts ...grpc.CallOption) (*RecordContextList, error)
}

RecordContextsClient is the client API for RecordContexts 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 RecordContextsServer

type RecordContextsServer interface {
	List(context.Context, *RecordContextFilter) (*RecordContextList, error)
	// contains filtered or unexported methods
}

RecordContextsServer is the server API for RecordContexts service. All implementations must embed UnimplementedRecordContextsServer for forward compatibility

type RecordFilter

type RecordFilter struct {

	// id is the exact UID of the record.
	Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
	// uidp filters records based on their position in the group hierarchy.
	Uidp *v1.UIDPFilter `protobuf:"bytes,6,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// image is specified if a specific Record is desired.
	Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// predicate specifies to fetch Records where either there's no
	// LastRefreshed for this predicate type, or if it needs to be refreshed.
	Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// cluster is specified if restricting to a given cluster id.
	// This field is required.
	Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// active_since is the timestamp after which returned records should have been active.
	// This applies to when an image was "last seen".
	ActiveSince *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordFilter) Descriptor deprecated

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

Deprecated: Use RecordFilter.ProtoReflect.Descriptor instead.

func (*RecordFilter) GetActiveSince

func (x *RecordFilter) GetActiveSince() *timestamppb.Timestamp

func (*RecordFilter) GetCluster

func (x *RecordFilter) GetCluster() string

func (*RecordFilter) GetId

func (x *RecordFilter) GetId() string

func (*RecordFilter) GetImage

func (x *RecordFilter) GetImage() string

func (*RecordFilter) GetPredicate

func (x *RecordFilter) GetPredicate() string

func (*RecordFilter) GetUidp

func (x *RecordFilter) GetUidp() *v1.UIDPFilter

func (*RecordFilter) ProtoMessage

func (*RecordFilter) ProtoMessage()

func (*RecordFilter) ProtoReflect

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

func (*RecordFilter) Reset

func (x *RecordFilter) Reset()

func (*RecordFilter) String

func (x *RecordFilter) String() string

type RecordList

type RecordList struct {
	Items []*Record `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordList) Descriptor deprecated

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

Deprecated: Use RecordList.ProtoReflect.Descriptor instead.

func (*RecordList) GetItems

func (x *RecordList) GetItems() []*Record

func (*RecordList) ProtoMessage

func (*RecordList) ProtoMessage()

func (*RecordList) ProtoReflect

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

func (*RecordList) Reset

func (x *RecordList) Reset()

func (*RecordList) String

func (x *RecordList) String() string

type RecordStatus

type RecordStatus struct {
	LastChecked *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_checked,json=lastChecked,proto3" json:"last_checked,omitempty"`
	Result      RecordStatus_Result    `protobuf:"varint,2,opt,name=result,proto3,enum=chainguard.platform.tenant.RecordStatus_Result" json:"result,omitempty"`
	Diagnostic  string                 `protobuf:"bytes,3,opt,name=diagnostic,proto3" json:"diagnostic,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordStatus) Descriptor deprecated

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

Deprecated: Use RecordStatus.ProtoReflect.Descriptor instead.

func (*RecordStatus) GetDiagnostic

func (x *RecordStatus) GetDiagnostic() string

func (*RecordStatus) GetLastChecked

func (x *RecordStatus) GetLastChecked() *timestamppb.Timestamp

func (*RecordStatus) GetResult

func (x *RecordStatus) GetResult() RecordStatus_Result

func (*RecordStatus) ProtoMessage

func (*RecordStatus) ProtoMessage()

func (*RecordStatus) ProtoReflect

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

func (*RecordStatus) Reset

func (x *RecordStatus) Reset()

func (*RecordStatus) String

func (x *RecordStatus) String() string

type RecordStatus_Result

type RecordStatus_Result int32
const (
	RecordStatus_UNKNOWN RecordStatus_Result = 0
	RecordStatus_PASS    RecordStatus_Result = 1
	RecordStatus_FAIL    RecordStatus_Result = 2
)

func (RecordStatus_Result) Descriptor

func (RecordStatus_Result) Enum

func (RecordStatus_Result) EnumDescriptor deprecated

func (RecordStatus_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use RecordStatus_Result.Descriptor instead.

func (RecordStatus_Result) Number

func (RecordStatus_Result) String

func (x RecordStatus_Result) String() string

func (RecordStatus_Result) Type

type RecordsClient

type RecordsClient interface {
	List(ctx context.Context, in *RecordFilter, opts ...grpc.CallOption) (*RecordList, error)
}

RecordsClient is the client API for Records 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 NewRecordsClient

func NewRecordsClient(cc grpc.ClientConnInterface) RecordsClient

type RecordsServer

type RecordsServer interface {
	List(context.Context, *RecordFilter) (*RecordList, error)
	// contains filtered or unexported methods
}

RecordsServer is the server API for Records service. All implementations must embed UnimplementedRecordsServer for forward compatibility

type Risk

type Risk struct {

	// Risk ID (UIDP resource + unique ID)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Grouping identifier to associate Risks in the same UIDP
	// to each other.
	GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// List of UIDPs that were used to determine this Risk.
	Inputs []string `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// What kind of risk is this? Lack of signatures, vulnerability, SBOM quality, etc.
	Details *Risk_Details `protobuf:"bytes,4,opt,name=details,proto3" json:"details,omitempty"`
	// Output only. Free form text describing this Risk.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Output only. Chainguard EDU link for more details on this Risk.
	DocumentationUrl string `protobuf:"bytes,6,opt,name=documentation_url,json=documentationUrl,proto3" json:"documentation_url,omitempty"`
	// Optional. Chainguard's recommendation(s) for how to resolve this Risk.
	Recommendations []*Recommendation `protobuf:"bytes,7,rep,name=recommendations,proto3" json:"recommendations,omitempty"`
	// Output only. When Enforce last saw this Risk.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// contains filtered or unexported fields
}

func (*Risk) Descriptor deprecated

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

Deprecated: Use Risk.ProtoReflect.Descriptor instead.

func (*Risk) GetDescription

func (x *Risk) GetDescription() string

func (*Risk) GetDetails

func (x *Risk) GetDetails() *Risk_Details

func (*Risk) GetDocumentationUrl

func (x *Risk) GetDocumentationUrl() string

func (*Risk) GetGroupId

func (x *Risk) GetGroupId() string

func (*Risk) GetId

func (x *Risk) GetId() string

func (*Risk) GetInputs

func (x *Risk) GetInputs() []string

func (*Risk) GetLastSeen

func (x *Risk) GetLastSeen() *timestamppb.Timestamp

func (*Risk) GetRecommendations

func (x *Risk) GetRecommendations() []*Recommendation

func (*Risk) ProtoMessage

func (*Risk) ProtoMessage()

func (*Risk) ProtoReflect

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

func (*Risk) Reset

func (x *Risk) Reset()

func (*Risk) String

func (x *Risk) String() string

type RiskFilter

type RiskFilter struct {

	// id is the exact UID of the record.
	Id   string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Uidp *v1.UIDPFilter `protobuf:"bytes,2,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// contains filtered or unexported fields
}

func (*RiskFilter) Descriptor deprecated

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

Deprecated: Use RiskFilter.ProtoReflect.Descriptor instead.

func (*RiskFilter) GetId

func (x *RiskFilter) GetId() string

func (*RiskFilter) GetUidp

func (x *RiskFilter) GetUidp() *v1.UIDPFilter

func (*RiskFilter) ProtoMessage

func (*RiskFilter) ProtoMessage()

func (*RiskFilter) ProtoReflect

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

func (*RiskFilter) Reset

func (x *RiskFilter) Reset()

func (*RiskFilter) String

func (x *RiskFilter) String() string

type RiskList

type RiskList struct {
	Items []*Risk `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*RiskList) Descriptor deprecated

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

Deprecated: Use RiskList.ProtoReflect.Descriptor instead.

func (*RiskList) GetItems

func (x *RiskList) GetItems() []*Risk

func (*RiskList) ProtoMessage

func (*RiskList) ProtoMessage()

func (*RiskList) ProtoReflect

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

func (*RiskList) Reset

func (x *RiskList) Reset()

func (*RiskList) String

func (x *RiskList) String() string

type Risk_Details

type Risk_Details struct {

	// Types that are assignable to Data:
	//
	//	*Risk_Details_MissingData
	Data isRisk_Details_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*Risk_Details) Descriptor deprecated

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

Deprecated: Use Risk_Details.ProtoReflect.Descriptor instead.

func (*Risk_Details) GetData

func (m *Risk_Details) GetData() isRisk_Details_Data

func (*Risk_Details) GetMissingData

func (x *Risk_Details) GetMissingData() *Risk_MissingData

func (*Risk_Details) ProtoMessage

func (*Risk_Details) ProtoMessage()

func (*Risk_Details) ProtoReflect

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

func (*Risk_Details) Reset

func (x *Risk_Details) Reset()

func (*Risk_Details) String

func (x *Risk_Details) String() string

type Risk_Details_MissingData

type Risk_Details_MissingData struct {
	MissingData *Risk_MissingData `protobuf:"bytes,1,opt,name=missing_data,json=missingData,proto3,oneof"`
}

type Risk_MissingData

type Risk_MissingData struct {

	// What kind of data is missing (e.g. signature, sbom, policy, etc.)
	Type Risk_MissingData_Type `protobuf:"varint,1,opt,name=type,proto3,enum=chainguard.platform.tenant.Risk_MissingData_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Risk_MissingData) Descriptor deprecated

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

Deprecated: Use Risk_MissingData.ProtoReflect.Descriptor instead.

func (*Risk_MissingData) GetType

func (*Risk_MissingData) ProtoMessage

func (*Risk_MissingData) ProtoMessage()

func (*Risk_MissingData) ProtoReflect

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

func (*Risk_MissingData) Reset

func (x *Risk_MissingData) Reset()

func (*Risk_MissingData) String

func (x *Risk_MissingData) String() string

type Risk_MissingData_Type

type Risk_MissingData_Type int32
const (
	Risk_MissingData_UNKNOWN   Risk_MissingData_Type = 0
	Risk_MissingData_SIGNATURE Risk_MissingData_Type = 1
	Risk_MissingData_SBOM      Risk_MissingData_Type = 2
	Risk_MissingData_POLICY    Risk_MissingData_Type = 3
)

func (Risk_MissingData_Type) Descriptor

func (Risk_MissingData_Type) Enum

func (Risk_MissingData_Type) EnumDescriptor deprecated

func (Risk_MissingData_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Risk_MissingData_Type.Descriptor instead.

func (Risk_MissingData_Type) Number

func (Risk_MissingData_Type) String

func (x Risk_MissingData_Type) String() string

func (Risk_MissingData_Type) Type

type Risk_Vulnerability

type Risk_Vulnerability struct {
	Severity Risk_Vulnerability_Severity `` /* 130-byte string literal not displayed */
	// External identifier of the source of the vuln - e.g. CVE ID.
	Source string `protobuf:"bytes,7,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*Risk_Vulnerability) Descriptor deprecated

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

Deprecated: Use Risk_Vulnerability.ProtoReflect.Descriptor instead.

func (*Risk_Vulnerability) GetSeverity

func (*Risk_Vulnerability) GetSource

func (x *Risk_Vulnerability) GetSource() string

func (*Risk_Vulnerability) ProtoMessage

func (*Risk_Vulnerability) ProtoMessage()

func (*Risk_Vulnerability) ProtoReflect

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

func (*Risk_Vulnerability) Reset

func (x *Risk_Vulnerability) Reset()

func (*Risk_Vulnerability) String

func (x *Risk_Vulnerability) String() string

type Risk_Vulnerability_Severity

type Risk_Vulnerability_Severity int32
const (
	Risk_Vulnerability_UNKNOWN  Risk_Vulnerability_Severity = 0
	Risk_Vulnerability_LOW      Risk_Vulnerability_Severity = 1
	Risk_Vulnerability_MEDIUM   Risk_Vulnerability_Severity = 2
	Risk_Vulnerability_HIGH     Risk_Vulnerability_Severity = 3
	Risk_Vulnerability_CRITICAL Risk_Vulnerability_Severity = 4
)

func (Risk_Vulnerability_Severity) Descriptor

func (Risk_Vulnerability_Severity) Enum

func (Risk_Vulnerability_Severity) EnumDescriptor deprecated

func (Risk_Vulnerability_Severity) EnumDescriptor() ([]byte, []int)

Deprecated: Use Risk_Vulnerability_Severity.Descriptor instead.

func (Risk_Vulnerability_Severity) Number

func (Risk_Vulnerability_Severity) String

func (Risk_Vulnerability_Severity) Type

type RisksClient

type RisksClient interface {
	List(ctx context.Context, in *RiskFilter, opts ...grpc.CallOption) (*RiskList, error)
}

RisksClient is the client API for Risks 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 NewRisksClient

func NewRisksClient(cc grpc.ClientConnInterface) RisksClient

type RisksServer

type RisksServer interface {
	List(context.Context, *RiskFilter) (*RiskList, error)
	// contains filtered or unexported methods
}

RisksServer is the server API for Risks service. All implementations must embed UnimplementedRisksServer for forward compatibility

type Sbom

type Sbom struct {
	Packages []*Package `protobuf:"bytes,1,rep,name=packages,proto3" json:"packages,omitempty"`
	// contains filtered or unexported fields
}

func (*Sbom) Descriptor deprecated

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

Deprecated: Use Sbom.ProtoReflect.Descriptor instead.

func (*Sbom) GetPackages

func (x *Sbom) GetPackages() []*Package

func (*Sbom) ProtoMessage

func (*Sbom) ProtoMessage()

func (*Sbom) ProtoReflect

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

func (*Sbom) Reset

func (x *Sbom) Reset()

func (*Sbom) String

func (x *Sbom) String() string

type Sbom2

type Sbom2 struct {

	// id, The Sbom UIDP at which this Sbom resides in the hierarchy.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// raw_sbom may or may not be useful in the long term, but for now to make
	// progress on this, we'll just yolo and serialize it here.
	RawSbom []byte          `protobuf:"bytes,2,opt,name=raw_sbom,json=rawSbom,proto3" json:"raw_sbom,omitempty"`
	Graph   *ComponentGraph `protobuf:"bytes,3,opt,name=graph,proto3" json:"graph,omitempty"`
	// last_seen tracks the timestamp at which this sbom was last seen.
	// TODO(vaikas): Does this really make any sense?
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// tool holds the name of the tool that produced the SBOM.
	Tool string `protobuf:"bytes,5,opt,name=tool,proto3" json:"tool,omitempty"`
	// format holds whether the SBOM is SPDX, CycloneDX, or other.
	Format string `protobuf:"bytes,6,opt,name=format,proto3" json:"format,omitempty"`
	// generated_at holds when the SBOM was generated.
	GeneratedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"`
	// authors is zero or more authors concatenated.
	Authors string `protobuf:"bytes,8,opt,name=authors,proto3" json:"authors,omitempty"`
	// source is where the SBOM came from. For example, we want to know if sbom
	// was generated by us, or ingested.
	Source Sbom2_Source `protobuf:"varint,9,opt,name=source,proto3,enum=chainguard.platform.tenant.Sbom2_Source" json:"source,omitempty"`
	// Name of the Sbom.
	Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
	// Short description of the Sbom
	Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"`
	// digest of the SBOM when ingested
	Digest *string `protobuf:"bytes,12,opt,name=digest,proto3,oneof" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

Sbom represents a normalized SBOM that we have ingested into our datastore. They are linked to Signatures via ID, as in they are 'children' of Signatures There can be multiple of these that we keep.

func (*Sbom2) Descriptor deprecated

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

Deprecated: Use Sbom2.ProtoReflect.Descriptor instead.

func (*Sbom2) GetAuthors

func (x *Sbom2) GetAuthors() string

func (*Sbom2) GetDescription

func (x *Sbom2) GetDescription() string

func (*Sbom2) GetDigest

func (x *Sbom2) GetDigest() string

func (*Sbom2) GetFormat

func (x *Sbom2) GetFormat() string

func (*Sbom2) GetGeneratedAt

func (x *Sbom2) GetGeneratedAt() *timestamppb.Timestamp

func (*Sbom2) GetGraph

func (x *Sbom2) GetGraph() *ComponentGraph

func (*Sbom2) GetId

func (x *Sbom2) GetId() string

func (*Sbom2) GetLastSeen

func (x *Sbom2) GetLastSeen() *timestamppb.Timestamp

func (*Sbom2) GetName

func (x *Sbom2) GetName() string

func (*Sbom2) GetRawSbom

func (x *Sbom2) GetRawSbom() []byte

func (*Sbom2) GetSource

func (x *Sbom2) GetSource() Sbom2_Source

func (*Sbom2) GetTool

func (x *Sbom2) GetTool() string

func (*Sbom2) ProtoMessage

func (*Sbom2) ProtoMessage()

func (*Sbom2) ProtoReflect

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

func (*Sbom2) Reset

func (x *Sbom2) Reset()

func (*Sbom2) String

func (x *Sbom2) String() string

type Sbom2Filter

type Sbom2Filter struct {

	// id is the exact UID of the record.
	Id   string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Uidp *v1.UIDPFilter `protobuf:"bytes,2,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// active_since is the timestamp after which the records should
	// have last been observed in the returned context.
	ActiveSince *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
	// include_raw_sbom is a flag to return the raw sbom field in the record.
	IncludeRawSbom bool `protobuf:"varint,4,opt,name=include_raw_sbom,json=includeRawSbom,proto3" json:"include_raw_sbom,omitempty"`
	// contains filtered or unexported fields
}

func (*Sbom2Filter) Descriptor deprecated

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

Deprecated: Use Sbom2Filter.ProtoReflect.Descriptor instead.

func (*Sbom2Filter) GetActiveSince

func (x *Sbom2Filter) GetActiveSince() *timestamppb.Timestamp

func (*Sbom2Filter) GetId

func (x *Sbom2Filter) GetId() string

func (*Sbom2Filter) GetIncludeRawSbom

func (x *Sbom2Filter) GetIncludeRawSbom() bool

func (*Sbom2Filter) GetUidp

func (x *Sbom2Filter) GetUidp() *v1.UIDPFilter

func (*Sbom2Filter) ProtoMessage

func (*Sbom2Filter) ProtoMessage()

func (*Sbom2Filter) ProtoReflect

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

func (*Sbom2Filter) Reset

func (x *Sbom2Filter) Reset()

func (*Sbom2Filter) String

func (x *Sbom2Filter) String() string

type Sbom2List

type Sbom2List struct {
	Items []*Sbom2 `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*Sbom2List) Descriptor deprecated

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

Deprecated: Use Sbom2List.ProtoReflect.Descriptor instead.

func (*Sbom2List) GetItems

func (x *Sbom2List) GetItems() []*Sbom2

func (*Sbom2List) ProtoMessage

func (*Sbom2List) ProtoMessage()

func (*Sbom2List) ProtoReflect

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

func (*Sbom2List) Reset

func (x *Sbom2List) Reset()

func (*Sbom2List) String

func (x *Sbom2List) String() string

type Sbom2_Source

type Sbom2_Source int32

Type

const (
	Sbom2_UNKNOWN   Sbom2_Source = 0
	Sbom2_INGESTED  Sbom2_Source = 1
	Sbom2_GENERATED Sbom2_Source = 2
)

func (Sbom2_Source) Descriptor

func (Sbom2_Source) Enum

func (x Sbom2_Source) Enum() *Sbom2_Source

func (Sbom2_Source) EnumDescriptor deprecated

func (Sbom2_Source) EnumDescriptor() ([]byte, []int)

Deprecated: Use Sbom2_Source.Descriptor instead.

func (Sbom2_Source) Number

func (Sbom2_Source) String

func (x Sbom2_Source) String() string

func (Sbom2_Source) Type

type SbomsClient

type SbomsClient interface {
	List(ctx context.Context, in *Sbom2Filter, opts ...grpc.CallOption) (*Sbom2List, error)
}

SbomsClient is the client API for Sboms 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 NewSbomsClient

func NewSbomsClient(cc grpc.ClientConnInterface) SbomsClient

type SbomsServer

type SbomsServer interface {
	List(context.Context, *Sbom2Filter) (*Sbom2List, error)
	// contains filtered or unexported methods
}

SbomsServer is the server API for Sboms service. All implementations must embed UnimplementedSbomsServer for forward compatibility

type Signature

type Signature struct {

	// id, The Signature UIDP at which this Signature resides.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name of the Signature.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// a short description of this Signature.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// last_seen tracks the timestamp at which this signature was last seen.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// predicate_type is an optional field that captures the type of signed
	// metadata this signature has signed.
	//   - For simple signatures (e.g. directly signed artifact), this will
	//     be empty to represent the "null claim".
	//   - For signed claims (e.g. attestations), this will hold the in-toto
	//     predicate type of the signed claim.
	PredicateType string `protobuf:"bytes,5,opt,name=predicate_type,json=predicateType,proto3" json:"predicate_type,omitempty"`
	// Types that are assignable to Kind:
	//
	//	*Signature_None
	//	*Signature_Keyless_
	//	*Signature_Key_
	Kind isSignature_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetDescription

func (x *Signature) GetDescription() string

func (*Signature) GetId

func (x *Signature) GetId() string

func (*Signature) GetKey

func (x *Signature) GetKey() *Signature_Key

func (*Signature) GetKeyless

func (x *Signature) GetKeyless() *Signature_Keyless

func (*Signature) GetKind

func (m *Signature) GetKind() isSignature_Kind

func (*Signature) GetLastSeen

func (x *Signature) GetLastSeen() *timestamppb.Timestamp

func (*Signature) GetName

func (x *Signature) GetName() string

func (*Signature) GetNone

func (x *Signature) GetNone() *emptypb.Empty

func (*Signature) GetPredicateType

func (x *Signature) GetPredicateType() string

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type SignatureFilter

type SignatureFilter struct {
	Uidp *v1.UIDPFilter `protobuf:"bytes,1,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// active_since is the timestamp after which the records should
	// have last been observed in the returned context.
	ActiveSince   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
	Name          string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	PredicateType *string                `protobuf:"bytes,4,opt,name=predicate_type,json=predicateType,proto3,oneof" json:"predicate_type,omitempty"`
	// contains filtered or unexported fields
}

func (*SignatureFilter) Descriptor deprecated

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

Deprecated: Use SignatureFilter.ProtoReflect.Descriptor instead.

func (*SignatureFilter) GetActiveSince

func (x *SignatureFilter) GetActiveSince() *timestamppb.Timestamp

func (*SignatureFilter) GetName

func (x *SignatureFilter) GetName() string

func (*SignatureFilter) GetPredicateType

func (x *SignatureFilter) GetPredicateType() string

func (*SignatureFilter) GetUidp

func (x *SignatureFilter) GetUidp() *v1.UIDPFilter

func (*SignatureFilter) ProtoMessage

func (*SignatureFilter) ProtoMessage()

func (*SignatureFilter) ProtoReflect

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

func (*SignatureFilter) Reset

func (x *SignatureFilter) Reset()

func (*SignatureFilter) String

func (x *SignatureFilter) String() string

type SignatureList

type SignatureList struct {
	Items []*Signature `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*SignatureList) Descriptor deprecated

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

Deprecated: Use SignatureList.ProtoReflect.Descriptor instead.

func (*SignatureList) GetItems

func (x *SignatureList) GetItems() []*Signature

func (*SignatureList) ProtoMessage

func (*SignatureList) ProtoMessage()

func (*SignatureList) ProtoReflect

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

func (*SignatureList) Reset

func (x *SignatureList) Reset()

func (*SignatureList) String

func (x *SignatureList) String() string

type Signature_Key

type Signature_Key struct {
	// contains filtered or unexported fields
}

func (*Signature_Key) Descriptor deprecated

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

Deprecated: Use Signature_Key.ProtoReflect.Descriptor instead.

func (*Signature_Key) ProtoMessage

func (*Signature_Key) ProtoMessage()

func (*Signature_Key) ProtoReflect

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

func (*Signature_Key) Reset

func (x *Signature_Key) Reset()

func (*Signature_Key) String

func (x *Signature_Key) String() string

type Signature_Key_

type Signature_Key_ struct {
	// key is the kind of signature that is attached when a signature
	// was produced via a static key pair.
	Key *Signature_Key `protobuf:"bytes,12,opt,name=key,proto3,oneof"`
}

type Signature_Keyless

type Signature_Keyless struct {
	Issuer  string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	// TODO: Consider making this a oneof when other providers
	// start producing interesting claims.
	Github *Signature_Keyless_Github `protobuf:"bytes,3,opt,name=github,proto3" json:"github,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature_Keyless) Descriptor deprecated

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

Deprecated: Use Signature_Keyless.ProtoReflect.Descriptor instead.

func (*Signature_Keyless) GetGithub

func (*Signature_Keyless) GetIssuer

func (x *Signature_Keyless) GetIssuer() string

func (*Signature_Keyless) GetSubject

func (x *Signature_Keyless) GetSubject() string

func (*Signature_Keyless) ProtoMessage

func (*Signature_Keyless) ProtoMessage()

func (*Signature_Keyless) ProtoReflect

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

func (*Signature_Keyless) Reset

func (x *Signature_Keyless) Reset()

func (*Signature_Keyless) String

func (x *Signature_Keyless) String() string

type Signature_Keyless_

type Signature_Keyless_ struct {
	// keyless is the kind of signature that is attached when a signature
	// was produced via a "keyless" flow.
	Keyless *Signature_Keyless `protobuf:"bytes,11,opt,name=keyless,proto3,oneof"`
}

type Signature_Keyless_Github

type Signature_Keyless_Github struct {

	// OID: 1.3.6.1.4.1.57264.1.2
	WorkflowTrigger string `protobuf:"bytes,1,opt,name=workflow_trigger,json=workflowTrigger,proto3" json:"workflow_trigger,omitempty"`
	// OID: 1.3.6.1.4.1.57264.1.3
	WorkflowSha string `protobuf:"bytes,2,opt,name=workflow_sha,json=workflowSha,proto3" json:"workflow_sha,omitempty"`
	// OID: 1.3.6.1.4.1.57264.1.4
	WorkflowName string `protobuf:"bytes,3,opt,name=workflow_name,json=workflowName,proto3" json:"workflow_name,omitempty"`
	// OID: 1.3.6.1.4.1.57264.1.5
	WorkflowRepo string `protobuf:"bytes,4,opt,name=workflow_repo,json=workflowRepo,proto3" json:"workflow_repo,omitempty"`
	// OID: 1.3.6.1.4.1.57264.1.6
	WorkflowRef string `protobuf:"bytes,5,opt,name=workflow_ref,json=workflowRef,proto3" json:"workflow_ref,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature_Keyless_Github) Descriptor deprecated

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

Deprecated: Use Signature_Keyless_Github.ProtoReflect.Descriptor instead.

func (*Signature_Keyless_Github) GetWorkflowName

func (x *Signature_Keyless_Github) GetWorkflowName() string

func (*Signature_Keyless_Github) GetWorkflowRef

func (x *Signature_Keyless_Github) GetWorkflowRef() string

func (*Signature_Keyless_Github) GetWorkflowRepo

func (x *Signature_Keyless_Github) GetWorkflowRepo() string

func (*Signature_Keyless_Github) GetWorkflowSha

func (x *Signature_Keyless_Github) GetWorkflowSha() string

func (*Signature_Keyless_Github) GetWorkflowTrigger

func (x *Signature_Keyless_Github) GetWorkflowTrigger() string

func (*Signature_Keyless_Github) ProtoMessage

func (*Signature_Keyless_Github) ProtoMessage()

func (*Signature_Keyless_Github) ProtoReflect

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

func (*Signature_Keyless_Github) Reset

func (x *Signature_Keyless_Github) Reset()

func (*Signature_Keyless_Github) String

func (x *Signature_Keyless_Github) String() string

type Signature_None

type Signature_None struct {
	// none is the kind of signature that is attached when a policy
	// designates an image as "statically" trusted.
	None *emptypb.Empty `protobuf:"bytes,10,opt,name=none,proto3,oneof"`
}

type SignaturesClient

type SignaturesClient interface {
	List(ctx context.Context, in *SignatureFilter, opts ...grpc.CallOption) (*SignatureList, error)
}

SignaturesClient is the client API for Signatures 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 NewSignaturesClient

func NewSignaturesClient(cc grpc.ClientConnInterface) SignaturesClient

type SignaturesServer

type SignaturesServer interface {
	List(context.Context, *SignatureFilter) (*SignatureList, error)
	// contains filtered or unexported methods
}

SignaturesServer is the server API for Signatures service. All implementations must embed UnimplementedSignaturesServer for forward compatibility

type UnimplementedAttestationsServer

type UnimplementedAttestationsServer struct {
}

UnimplementedAttestationsServer must be embedded to have forward compatible implementations.

func (UnimplementedAttestationsServer) List

type UnimplementedClustersServer

type UnimplementedClustersServer struct {
}

UnimplementedClustersServer must be embedded to have forward compatible implementations.

func (UnimplementedClustersServer) CIDR

func (UnimplementedClustersServer) Config

func (UnimplementedClustersServer) Create

func (UnimplementedClustersServer) Delete

func (UnimplementedClustersServer) List

func (UnimplementedClustersServer) Update

type UnimplementedNamespacesServer

type UnimplementedNamespacesServer struct {
}

UnimplementedNamespacesServer must be embedded to have forward compatible implementations.

func (UnimplementedNamespacesServer) List

type UnimplementedNodesServer

type UnimplementedNodesServer struct {
}

UnimplementedNodesServer must be embedded to have forward compatible implementations.

func (UnimplementedNodesServer) List

type UnimplementedPolicyResultsServer

type UnimplementedPolicyResultsServer struct {
}

UnimplementedPolicyResultsServer must be embedded to have forward compatible implementations.

func (UnimplementedPolicyResultsServer) List

type UnimplementedRecordContextsServer

type UnimplementedRecordContextsServer struct {
}

UnimplementedRecordContextsServer must be embedded to have forward compatible implementations.

func (UnimplementedRecordContextsServer) List

type UnimplementedRecordsServer

type UnimplementedRecordsServer struct {
}

UnimplementedRecordsServer must be embedded to have forward compatible implementations.

func (UnimplementedRecordsServer) List

type UnimplementedRisksServer

type UnimplementedRisksServer struct {
}

UnimplementedRisksServer must be embedded to have forward compatible implementations.

func (UnimplementedRisksServer) List

type UnimplementedSbomsServer

type UnimplementedSbomsServer struct {
}

UnimplementedSbomsServer must be embedded to have forward compatible implementations.

func (UnimplementedSbomsServer) List

type UnimplementedSignaturesServer

type UnimplementedSignaturesServer struct {
}

UnimplementedSignaturesServer must be embedded to have forward compatible implementations.

func (UnimplementedSignaturesServer) List

type UnimplementedVulnReportsServer

type UnimplementedVulnReportsServer struct {
}

UnimplementedVulnReportsServer must be embedded to have forward compatible implementations.

func (UnimplementedVulnReportsServer) List

type UnimplementedWorkloadsServer

type UnimplementedWorkloadsServer struct {
}

UnimplementedWorkloadsServer must be embedded to have forward compatible implementations.

func (UnimplementedWorkloadsServer) List

type UnsafeAttestationsServer

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

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

type UnsafeClustersServer

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

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

type UnsafeNamespacesServer

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

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

type UnsafeNodesServer

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

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

type UnsafePolicyResultsServer

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

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

type UnsafeRecordContextsServer

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

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

type UnsafeRecordsServer

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

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

type UnsafeRisksServer

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

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

type UnsafeSbomsServer

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

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

type UnsafeSignaturesServer

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

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

type UnsafeVulnReportsServer

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

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

type UnsafeWorkloadsServer

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

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

type VulnReport

type VulnReport struct {

	// id, The VulnReport UIDP at which this VulnReport resides.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// vulnerability_db_last_build_time holds the time when the vulnerability database was built last time.
	VulnerabilityDbLastBuildTime *timestamppb.Timestamp `` /* 151-byte string literal not displayed */
	// Report's list of vulnerability matches(s).
	VulnerabilityMatches []*VulnerabilityMatch `protobuf:"bytes,3,rep,name=vulnerability_matches,json=vulnerabilityMatches,proto3" json:"vulnerability_matches,omitempty"`
	// scanner contains some information about the scanner used to generate the report.
	Scanner *VulnReport_Scanner `protobuf:"bytes,4,opt,name=scanner,proto3" json:"scanner,omitempty"`
	// report_generation tracks the timestamp at which this report was generated.
	ReportGeneration *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=report_generation,json=reportGeneration,proto3" json:"report_generation,omitempty"`
	// raw_vuln_report may or may not be useful in the long term, but for now to make
	// progress on this, we'll just yolo and serialize it here.
	RawVulnReport []byte `protobuf:"bytes,6,opt,name=raw_vuln_report,json=rawVulnReport,proto3" json:"raw_vuln_report,omitempty"`
	// last_seen tracks the timestamp at which this vuln report was last seen.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnReport) Descriptor deprecated

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

Deprecated: Use VulnReport.ProtoReflect.Descriptor instead.

func (*VulnReport) GetId

func (x *VulnReport) GetId() string

func (*VulnReport) GetLastSeen

func (x *VulnReport) GetLastSeen() *timestamppb.Timestamp

func (*VulnReport) GetRawVulnReport

func (x *VulnReport) GetRawVulnReport() []byte

func (*VulnReport) GetReportGeneration

func (x *VulnReport) GetReportGeneration() *timestamppb.Timestamp

func (*VulnReport) GetScanner

func (x *VulnReport) GetScanner() *VulnReport_Scanner

func (*VulnReport) GetVulnerabilityDbLastBuildTime

func (x *VulnReport) GetVulnerabilityDbLastBuildTime() *timestamppb.Timestamp

func (*VulnReport) GetVulnerabilityMatches

func (x *VulnReport) GetVulnerabilityMatches() []*VulnerabilityMatch

func (*VulnReport) ProtoMessage

func (*VulnReport) ProtoMessage()

func (*VulnReport) ProtoReflect

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

func (*VulnReport) Reset

func (x *VulnReport) Reset()

func (*VulnReport) String

func (x *VulnReport) String() string

type VulnReportFilter

type VulnReportFilter struct {

	// id is the exact UID of the record.
	Id   string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Uidp *v1.UIDPFilter `protobuf:"bytes,2,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// active_since is the timestamp after which the records should
	// have last been observed in the returned context.
	ActiveSince *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
	// include_raw_vuln_report is a flag to return a list of reports containing the raw report.
	IncludeRawVulnReport bool `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*VulnReportFilter) Descriptor deprecated

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

Deprecated: Use VulnReportFilter.ProtoReflect.Descriptor instead.

func (*VulnReportFilter) GetActiveSince

func (x *VulnReportFilter) GetActiveSince() *timestamppb.Timestamp

func (*VulnReportFilter) GetId

func (x *VulnReportFilter) GetId() string

func (*VulnReportFilter) GetIncludeRawVulnReport

func (x *VulnReportFilter) GetIncludeRawVulnReport() bool

func (*VulnReportFilter) GetUidp

func (x *VulnReportFilter) GetUidp() *v1.UIDPFilter

func (*VulnReportFilter) ProtoMessage

func (*VulnReportFilter) ProtoMessage()

func (*VulnReportFilter) ProtoReflect

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

func (*VulnReportFilter) Reset

func (x *VulnReportFilter) Reset()

func (*VulnReportFilter) String

func (x *VulnReportFilter) String() string

type VulnReportList

type VulnReportList struct {
	Items []*VulnReport `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnReportList) Descriptor deprecated

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

Deprecated: Use VulnReportList.ProtoReflect.Descriptor instead.

func (*VulnReportList) GetItems

func (x *VulnReportList) GetItems() []*VulnReport

func (*VulnReportList) ProtoMessage

func (*VulnReportList) ProtoMessage()

func (*VulnReportList) ProtoReflect

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

func (*VulnReportList) Reset

func (x *VulnReportList) Reset()

func (*VulnReportList) String

func (x *VulnReportList) String() string

type VulnReport_Scanner

type VulnReport_Scanner struct {

	// name contains the vendor name of the scanner.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// version holds the version of the used scanner to generate the report.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnReport_Scanner) Descriptor deprecated

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

Deprecated: Use VulnReport_Scanner.ProtoReflect.Descriptor instead.

func (*VulnReport_Scanner) GetName

func (x *VulnReport_Scanner) GetName() string

func (*VulnReport_Scanner) GetVersion

func (x *VulnReport_Scanner) GetVersion() string

func (*VulnReport_Scanner) ProtoMessage

func (*VulnReport_Scanner) ProtoMessage()

func (*VulnReport_Scanner) ProtoReflect

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

func (*VulnReport_Scanner) Reset

func (x *VulnReport_Scanner) Reset()

func (*VulnReport_Scanner) String

func (x *VulnReport_Scanner) String() string

type VulnReportsClient

type VulnReportsClient interface {
	List(ctx context.Context, in *VulnReportFilter, opts ...grpc.CallOption) (*VulnReportList, error)
}

VulnReportsClient is the client API for VulnReports 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 VulnReportsServer

type VulnReportsServer interface {
	List(context.Context, *VulnReportFilter) (*VulnReportList, error)
	// contains filtered or unexported methods
}

VulnReportsServer is the server API for VulnReports service. All implementations must embed UnimplementedVulnReportsServer for forward compatibility

type VulnerabilityMatch

type VulnerabilityMatch struct {

	// Vulnerability holds information about the found vulnerability.
	Vulnerability *VulnerabilityRecord `protobuf:"bytes,1,opt,name=vulnerability,proto3" json:"vulnerability,omitempty"`
	// Package affected by this vulnerability.
	Pkg *Package2 `protobuf:"bytes,2,opt,name=pkg,proto3" json:"pkg,omitempty"`
	// Fix related data about this vulnerability.
	Fix *Fix `protobuf:"bytes,3,opt,name=fix,proto3,oneof" json:"fix,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnerabilityMatch) Descriptor deprecated

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

Deprecated: Use VulnerabilityMatch.ProtoReflect.Descriptor instead.

func (*VulnerabilityMatch) GetFix

func (x *VulnerabilityMatch) GetFix() *Fix

func (*VulnerabilityMatch) GetPkg

func (x *VulnerabilityMatch) GetPkg() *Package2

func (*VulnerabilityMatch) GetVulnerability

func (x *VulnerabilityMatch) GetVulnerability() *VulnerabilityRecord

func (*VulnerabilityMatch) ProtoMessage

func (*VulnerabilityMatch) ProtoMessage()

func (*VulnerabilityMatch) ProtoReflect

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

func (*VulnerabilityMatch) Reset

func (x *VulnerabilityMatch) Reset()

func (*VulnerabilityMatch) String

func (x *VulnerabilityMatch) String() string

type VulnerabilityRecord

type VulnerabilityRecord struct {

	// id of the vulnerability e.g. CVE_1231-12.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// a short description of this vulnerability.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// severity is the value representing the severity of the vulnerability
	Severity VulnerabilityRecord_Severity `` /* 131-byte string literal not displayed */
	// source from where the vulnerability information was obtained, e.g. nvd, github, osv.
	Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	// List of cvss information about the exploitability of the vulnerability.
	Cvss []*VulnerabilityRecord_Cvss `protobuf:"bytes,5,rep,name=cvss,proto3" json:"cvss,omitempty"`
	// List of cpe_uri on which the vulnerability was found.
	CpeUri []string `protobuf:"bytes,6,rep,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
	// URLs related to this vulnerability.
	RelatedUrls []string `protobuf:"bytes,7,rep,name=related_urls,json=relatedUrls,proto3" json:"related_urls,omitempty"`
	// advisories related to this vulnerability.
	Advisories map[string]string `` /* 161-byte string literal not displayed */
	// related vulnerabilities to the main vulnerability reported here.
	RelatedVulnerabilities []*VulnerabilityRecord_RelatedVulnerability `` /* 127-byte string literal not displayed */
	// display_id is the normalized value of the vulnerability ID often defined by a CVE-ID.
	DisplayId string `protobuf:"bytes,10,opt,name=display_id,json=displayId,proto3" json:"display_id,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnerabilityRecord) Descriptor deprecated

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

Deprecated: Use VulnerabilityRecord.ProtoReflect.Descriptor instead.

func (*VulnerabilityRecord) GetAdvisories

func (x *VulnerabilityRecord) GetAdvisories() map[string]string

func (*VulnerabilityRecord) GetCpeUri

func (x *VulnerabilityRecord) GetCpeUri() []string

func (*VulnerabilityRecord) GetCvss

func (*VulnerabilityRecord) GetDescription

func (x *VulnerabilityRecord) GetDescription() string

func (*VulnerabilityRecord) GetDisplayId

func (x *VulnerabilityRecord) GetDisplayId() string

func (*VulnerabilityRecord) GetId

func (x *VulnerabilityRecord) GetId() string

func (*VulnerabilityRecord) GetRelatedUrls

func (x *VulnerabilityRecord) GetRelatedUrls() []string

func (*VulnerabilityRecord) GetRelatedVulnerabilities

func (x *VulnerabilityRecord) GetRelatedVulnerabilities() []*VulnerabilityRecord_RelatedVulnerability

func (*VulnerabilityRecord) GetSeverity

func (*VulnerabilityRecord) GetSource

func (x *VulnerabilityRecord) GetSource() string

func (*VulnerabilityRecord) ProtoMessage

func (*VulnerabilityRecord) ProtoMessage()

func (*VulnerabilityRecord) ProtoReflect

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

func (*VulnerabilityRecord) Reset

func (x *VulnerabilityRecord) Reset()

func (*VulnerabilityRecord) String

func (x *VulnerabilityRecord) String() string

type VulnerabilityRecord_Cvss

type VulnerabilityRecord_Cvss struct {

	// CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
	Score string `protobuf:"bytes,1,opt,name=score,proto3" json:"score,omitempty"`
	// CVSS version used to populate score and severity.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnerabilityRecord_Cvss) Descriptor deprecated

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

Deprecated: Use VulnerabilityRecord_Cvss.ProtoReflect.Descriptor instead.

func (*VulnerabilityRecord_Cvss) GetScore

func (x *VulnerabilityRecord_Cvss) GetScore() string

func (*VulnerabilityRecord_Cvss) GetVersion

func (x *VulnerabilityRecord_Cvss) GetVersion() string

func (*VulnerabilityRecord_Cvss) ProtoMessage

func (*VulnerabilityRecord_Cvss) ProtoMessage()

func (*VulnerabilityRecord_Cvss) ProtoReflect

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

func (*VulnerabilityRecord_Cvss) Reset

func (x *VulnerabilityRecord_Cvss) Reset()

func (*VulnerabilityRecord_Cvss) String

func (x *VulnerabilityRecord_Cvss) String() string

type VulnerabilityRecord_RelatedVulnerability

type VulnerabilityRecord_RelatedVulnerability struct {

	// ID of the vulnerability.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Source from where the vulnerability information was obtained, e.g. nvd, github, osv.
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnerabilityRecord_RelatedVulnerability) Descriptor deprecated

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

Deprecated: Use VulnerabilityRecord_RelatedVulnerability.ProtoReflect.Descriptor instead.

func (*VulnerabilityRecord_RelatedVulnerability) GetId

func (*VulnerabilityRecord_RelatedVulnerability) GetSource

func (*VulnerabilityRecord_RelatedVulnerability) ProtoMessage

func (*VulnerabilityRecord_RelatedVulnerability) ProtoReflect

func (*VulnerabilityRecord_RelatedVulnerability) Reset

func (*VulnerabilityRecord_RelatedVulnerability) String

type VulnerabilityRecord_Severity

type VulnerabilityRecord_Severity int32
const (
	VulnerabilityRecord_UNKNOWN  VulnerabilityRecord_Severity = 0
	VulnerabilityRecord_LOW      VulnerabilityRecord_Severity = 1
	VulnerabilityRecord_MEDIUM   VulnerabilityRecord_Severity = 2
	VulnerabilityRecord_HIGH     VulnerabilityRecord_Severity = 3
	VulnerabilityRecord_CRITICAL VulnerabilityRecord_Severity = 4
)

func (VulnerabilityRecord_Severity) Descriptor

func (VulnerabilityRecord_Severity) Enum

func (VulnerabilityRecord_Severity) EnumDescriptor deprecated

func (VulnerabilityRecord_Severity) EnumDescriptor() ([]byte, []int)

Deprecated: Use VulnerabilityRecord_Severity.Descriptor instead.

func (VulnerabilityRecord_Severity) Number

func (VulnerabilityRecord_Severity) String

func (VulnerabilityRecord_Severity) Type

type Workload

type Workload struct {

	// id, The Workload UIDP at which this Workload resides.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name of the Workload.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// a short description of this Workload.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// remote_id is the remote ID of this Workload.
	RemoteId   string `protobuf:"bytes,4,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
	Labels     string `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"`
	ApiVersion string `protobuf:"bytes,6,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	Kind       string `protobuf:"bytes,7,opt,name=kind,proto3" json:"kind,omitempty"`
	// last_seen tracks the timestamp at which this workload was last seen.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// owner_id is the remote_id of the Workload that is referenced via a
	// "controller" owner reference by this workload.
	OwnerId string `protobuf:"bytes,9,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Workload) Descriptor deprecated

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

Deprecated: Use Workload.ProtoReflect.Descriptor instead.

func (*Workload) GetApiVersion

func (x *Workload) GetApiVersion() string

func (*Workload) GetDescription

func (x *Workload) GetDescription() string

func (*Workload) GetId

func (x *Workload) GetId() string

func (*Workload) GetKind

func (x *Workload) GetKind() string

func (*Workload) GetLabels

func (x *Workload) GetLabels() string

func (*Workload) GetLastSeen

func (x *Workload) GetLastSeen() *timestamppb.Timestamp

func (*Workload) GetName

func (x *Workload) GetName() string

func (*Workload) GetOwnerId

func (x *Workload) GetOwnerId() string

func (*Workload) GetRemoteId

func (x *Workload) GetRemoteId() string

func (*Workload) ProtoMessage

func (*Workload) ProtoMessage()

func (*Workload) ProtoReflect

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

func (*Workload) Reset

func (x *Workload) Reset()

func (*Workload) String

func (x *Workload) String() string

type WorkloadFilter

type WorkloadFilter struct {

	// remote_id is the remote ID of this Workload.
	RemoteId string `protobuf:"bytes,2,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
	// active_since is the timestamp after which returned workloads
	// should have been active (last seen).
	ActiveSince *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
	// name filters on the resource name.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Return only the workloads owned by a particular remote_id.
	OwnerId string         `protobuf:"bytes,5,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	Uidp    *v1.UIDPFilter `protobuf:"bytes,100,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadFilter) Descriptor deprecated

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

Deprecated: Use WorkloadFilter.ProtoReflect.Descriptor instead.

func (*WorkloadFilter) GetActiveSince

func (x *WorkloadFilter) GetActiveSince() *timestamppb.Timestamp

func (*WorkloadFilter) GetName

func (x *WorkloadFilter) GetName() string

func (*WorkloadFilter) GetOwnerId

func (x *WorkloadFilter) GetOwnerId() string

func (*WorkloadFilter) GetRemoteId

func (x *WorkloadFilter) GetRemoteId() string

func (*WorkloadFilter) GetUidp

func (x *WorkloadFilter) GetUidp() *v1.UIDPFilter

func (*WorkloadFilter) ProtoMessage

func (*WorkloadFilter) ProtoMessage()

func (*WorkloadFilter) ProtoReflect

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

func (*WorkloadFilter) Reset

func (x *WorkloadFilter) Reset()

func (*WorkloadFilter) String

func (x *WorkloadFilter) String() string

type WorkloadList

type WorkloadList struct {
	Items []*Workload `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadList) Descriptor deprecated

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

Deprecated: Use WorkloadList.ProtoReflect.Descriptor instead.

func (*WorkloadList) GetItems

func (x *WorkloadList) GetItems() []*Workload

func (*WorkloadList) ProtoMessage

func (*WorkloadList) ProtoMessage()

func (*WorkloadList) ProtoReflect

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

func (*WorkloadList) Reset

func (x *WorkloadList) Reset()

func (*WorkloadList) String

func (x *WorkloadList) String() string

type WorkloadsClient

type WorkloadsClient interface {
	List(ctx context.Context, in *WorkloadFilter, opts ...grpc.CallOption) (*WorkloadList, error)
}

WorkloadsClient is the client API for Workloads 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 NewWorkloadsClient

func NewWorkloadsClient(cc grpc.ClientConnInterface) WorkloadsClient

type WorkloadsServer

type WorkloadsServer interface {
	List(context.Context, *WorkloadFilter) (*WorkloadList, error)
	// contains filtered or unexported methods
}

WorkloadsServer is the server API for Workloads service. All implementations must embed UnimplementedWorkloadsServer for forward compatibility

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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