v1

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 26 Imported by: 3

Documentation

Overview

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

Index

Constants

View Source
const (
	Registry_CreateRepo_FullMethodName                = "/chainguard.platform.registry.Registry/CreateRepo"
	Registry_UpdateRepo_FullMethodName                = "/chainguard.platform.registry.Registry/UpdateRepo"
	Registry_ListRepos_FullMethodName                 = "/chainguard.platform.registry.Registry/ListRepos"
	Registry_DeleteRepo_FullMethodName                = "/chainguard.platform.registry.Registry/DeleteRepo"
	Registry_CreateTag_FullMethodName                 = "/chainguard.platform.registry.Registry/CreateTag"
	Registry_UpdateTag_FullMethodName                 = "/chainguard.platform.registry.Registry/UpdateTag"
	Registry_DeleteTag_FullMethodName                 = "/chainguard.platform.registry.Registry/DeleteTag"
	Registry_ListTags_FullMethodName                  = "/chainguard.platform.registry.Registry/ListTags"
	Registry_ListTagHistory_FullMethodName            = "/chainguard.platform.registry.Registry/ListTagHistory"
	Registry_GetSbom_FullMethodName                   = "/chainguard.platform.registry.Registry/GetSbom"
	Registry_GetImageConfig_FullMethodName            = "/chainguard.platform.registry.Registry/GetImageConfig"
	Registry_GetArchs_FullMethodName                  = "/chainguard.platform.registry.Registry/GetArchs"
	Registry_GetSize_FullMethodName                   = "/chainguard.platform.registry.Registry/GetSize"
	Registry_GetRawSbom_FullMethodName                = "/chainguard.platform.registry.Registry/GetRawSbom"
	Registry_GetVulnReport_FullMethodName             = "/chainguard.platform.registry.Registry/GetVulnReport"
	Registry_ListManifestMetadata_FullMethodName      = "/chainguard.platform.registry.Registry/ListManifestMetadata"
	Registry_GetPackageVersionMetadata_FullMethodName = "/chainguard.platform.registry.Registry/GetPackageVersionMetadata"
)
View Source
const (
	Vulnerabilities_CreateVulnReport_FullMethodName   = "/chainguard.platform.registry.Vulnerabilities/CreateVulnReport"
	Vulnerabilities_ListVulnReports_FullMethodName    = "/chainguard.platform.registry.Vulnerabilities/ListVulnReports"
	Vulnerabilities_GetRawVulnReport_FullMethodName   = "/chainguard.platform.registry.Vulnerabilities/GetRawVulnReport"
	Vulnerabilities_CreateOrUpdateVuln_FullMethodName = "/chainguard.platform.registry.Vulnerabilities/CreateOrUpdateVuln"
)

Variables

View Source
var (
	CatalogTier_name = map[int32]string{
		0: "UNKNOWN",
		1: "FREE",
		2: "STANDARD",
		3: "PREMIUM",
		4: "APPLICATION",
		5: "BASE",
		6: "FIPS",
		7: "AI",
	}
	CatalogTier_value = map[string]int32{
		"UNKNOWN":     0,
		"FREE":        1,
		"STANDARD":    2,
		"PREMIUM":     3,
		"APPLICATION": 4,
		"BASE":        5,
		"FIPS":        6,
		"AI":          7,
	}
)

Enum value maps for CatalogTier.

View Source
var (
	Scanner_Name_name = map[int32]string{
		0: "UNKNOWN",
		1: "GRYPE",
		2: "TRIVY",
	}
	Scanner_Name_value = map[string]int32{
		"UNKNOWN": 0,
		"GRYPE":   1,
		"TRIVY":   2,
	}
)

Enum value maps for Scanner_Name.

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

Enum value maps for Vulnerability_Severity.

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

Enum value maps for Vulnerability_Fix_State.

View Source
var File_registry_platform_proto protoreflect.FileDescriptor
View Source
var File_vulnerabilities_platform_proto protoreflect.FileDescriptor
View Source
var Registry_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.registry.Registry",
	HandlerType: (*RegistryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateRepo",
			Handler:    _Registry_CreateRepo_Handler,
		},
		{
			MethodName: "UpdateRepo",
			Handler:    _Registry_UpdateRepo_Handler,
		},
		{
			MethodName: "ListRepos",
			Handler:    _Registry_ListRepos_Handler,
		},
		{
			MethodName: "DeleteRepo",
			Handler:    _Registry_DeleteRepo_Handler,
		},
		{
			MethodName: "CreateTag",
			Handler:    _Registry_CreateTag_Handler,
		},
		{
			MethodName: "UpdateTag",
			Handler:    _Registry_UpdateTag_Handler,
		},
		{
			MethodName: "DeleteTag",
			Handler:    _Registry_DeleteTag_Handler,
		},
		{
			MethodName: "ListTags",
			Handler:    _Registry_ListTags_Handler,
		},
		{
			MethodName: "ListTagHistory",
			Handler:    _Registry_ListTagHistory_Handler,
		},
		{
			MethodName: "GetSbom",
			Handler:    _Registry_GetSbom_Handler,
		},
		{
			MethodName: "GetImageConfig",
			Handler:    _Registry_GetImageConfig_Handler,
		},
		{
			MethodName: "GetArchs",
			Handler:    _Registry_GetArchs_Handler,
		},
		{
			MethodName: "GetSize",
			Handler:    _Registry_GetSize_Handler,
		},
		{
			MethodName: "GetRawSbom",
			Handler:    _Registry_GetRawSbom_Handler,
		},
		{
			MethodName: "GetVulnReport",
			Handler:    _Registry_GetVulnReport_Handler,
		},
		{
			MethodName: "ListManifestMetadata",
			Handler:    _Registry_ListManifestMetadata_Handler,
		},
		{
			MethodName: "GetPackageVersionMetadata",
			Handler:    _Registry_GetPackageVersionMetadata_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "registry.platform.proto",
}

Registry_ServiceDesc is the grpc.ServiceDesc for Registry 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 Vulnerabilities_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.registry.Vulnerabilities",
	HandlerType: (*VulnerabilitiesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateVulnReport",
			Handler:    _Vulnerabilities_CreateVulnReport_Handler,
		},
		{
			MethodName: "ListVulnReports",
			Handler:    _Vulnerabilities_ListVulnReports_Handler,
		},
		{
			MethodName: "GetRawVulnReport",
			Handler:    _Vulnerabilities_GetRawVulnReport_Handler,
		},
		{
			MethodName: "CreateOrUpdateVuln",
			Handler:    _Vulnerabilities_CreateOrUpdateVuln_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "vulnerabilities.platform.proto",
}

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

Functions

func RegisterRegistryHandler

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

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

func RegisterRegistryHandlerClient

func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RegistryClient) error

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

func RegisterRegistryHandlerFromEndpoint

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

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

func RegisterRegistryHandlerServer

func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RegistryServer) error

RegisterRegistryHandlerServer registers the http handlers for service Registry to "mux". UnaryRPC :call RegistryServer 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 RegisterRegistryHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterRegistryServer

func RegisterRegistryServer(s grpc.ServiceRegistrar, srv RegistryServer)

func RegisterVulnerabilitiesHandler added in v0.1.25

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

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

func RegisterVulnerabilitiesHandlerClient added in v0.1.25

func RegisterVulnerabilitiesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VulnerabilitiesClient) error

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

func RegisterVulnerabilitiesHandlerFromEndpoint added in v0.1.25

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

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

func RegisterVulnerabilitiesHandlerServer added in v0.1.25

func RegisterVulnerabilitiesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VulnerabilitiesServer) error

RegisterVulnerabilitiesHandlerServer registers the http handlers for service Vulnerabilities to "mux". UnaryRPC :call VulnerabilitiesServer 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 RegisterVulnerabilitiesHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterVulnerabilitiesServer added in v0.1.25

func RegisterVulnerabilitiesServer(s grpc.ServiceRegistrar, srv VulnerabilitiesServer)

Types

type ArchFilter added in v0.1.21

type ArchFilter struct {

	// The architecture to filter on.
	Arch string `protobuf:"bytes,1,opt,name=arch,proto3" json:"arch,omitempty"`
	// contains filtered or unexported fields
}

func (*ArchFilter) Descriptor deprecated added in v0.1.21

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

Deprecated: Use ArchFilter.ProtoReflect.Descriptor instead.

func (*ArchFilter) GetArch added in v0.1.21

func (x *ArchFilter) GetArch() string

func (*ArchFilter) ProtoMessage added in v0.1.21

func (*ArchFilter) ProtoMessage()

func (*ArchFilter) ProtoReflect added in v0.1.21

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

func (*ArchFilter) Reset added in v0.1.21

func (x *ArchFilter) Reset()

func (*ArchFilter) String added in v0.1.21

func (x *ArchFilter) String() string

type ArchRequest added in v0.1.21

type ArchRequest struct {

	// The UIDP of the image repo to get architectures for.
	RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// The digest of the image to get architectures for.
	Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

func (*ArchRequest) Descriptor deprecated added in v0.1.21

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

Deprecated: Use ArchRequest.ProtoReflect.Descriptor instead.

func (*ArchRequest) GetDigest added in v0.1.21

func (x *ArchRequest) GetDigest() string

func (*ArchRequest) GetRepoId added in v0.1.21

func (x *ArchRequest) GetRepoId() string

func (*ArchRequest) ProtoMessage added in v0.1.21

func (*ArchRequest) ProtoMessage()

func (*ArchRequest) ProtoReflect added in v0.1.21

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

func (*ArchRequest) Reset added in v0.1.21

func (x *ArchRequest) Reset()

func (*ArchRequest) String added in v0.1.21

func (x *ArchRequest) String() string

type Archs added in v0.1.21

type Archs struct {

	// Architectures belonging to the requested digest's manifests.
	Archs []string `protobuf:"bytes,1,rep,name=archs,proto3" json:"archs,omitempty"`
	// contains filtered or unexported fields
}

func (*Archs) Descriptor deprecated added in v0.1.21

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

Deprecated: Use Archs.ProtoReflect.Descriptor instead.

func (*Archs) GetArchs added in v0.1.21

func (x *Archs) GetArchs() []string

func (*Archs) ProtoMessage added in v0.1.21

func (*Archs) ProtoMessage()

func (*Archs) ProtoReflect added in v0.1.21

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

func (*Archs) Reset added in v0.1.21

func (x *Archs) Reset()

func (*Archs) String added in v0.1.21

func (x *Archs) String() string

type CatalogTier

type CatalogTier int32
const (
	CatalogTier_UNKNOWN CatalogTier = 0
	// Deprecated: Marked as deprecated in registry.platform.proto.
	CatalogTier_FREE CatalogTier = 1
	// Deprecated: Marked as deprecated in registry.platform.proto.
	CatalogTier_STANDARD CatalogTier = 2
	// Deprecated: Marked as deprecated in registry.platform.proto.
	CatalogTier_PREMIUM     CatalogTier = 3
	CatalogTier_APPLICATION CatalogTier = 4
	CatalogTier_BASE        CatalogTier = 5
	CatalogTier_FIPS        CatalogTier = 6
	CatalogTier_AI          CatalogTier = 7
)

func (CatalogTier) Descriptor

func (CatalogTier) Enum

func (x CatalogTier) Enum() *CatalogTier

func (CatalogTier) EnumDescriptor deprecated

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

Deprecated: Use CatalogTier.Descriptor instead.

func (CatalogTier) Number

func (x CatalogTier) Number() protoreflect.EnumNumber

func (CatalogTier) String

func (x CatalogTier) String() string

func (CatalogTier) Type

type Clients

type Clients interface {
	Registry() RegistryClient

	Close() error
}

func NewClients

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

func NewClientsFromConnection

func NewClientsFromConnection(conn *grpc.ClientConn) Clients

type CreateRepoRequest

type CreateRepoRequest struct {
	ParentId string `protobuf:"bytes,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Repo     *Repo  `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRepoRequest) Descriptor deprecated

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

Deprecated: Use CreateRepoRequest.ProtoReflect.Descriptor instead.

func (*CreateRepoRequest) GetParentId

func (x *CreateRepoRequest) GetParentId() string

func (*CreateRepoRequest) GetRepo

func (x *CreateRepoRequest) GetRepo() *Repo

func (*CreateRepoRequest) ProtoMessage

func (*CreateRepoRequest) ProtoMessage()

func (*CreateRepoRequest) ProtoReflect

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

func (*CreateRepoRequest) Reset

func (x *CreateRepoRequest) Reset()

func (*CreateRepoRequest) String

func (x *CreateRepoRequest) String() string

type CreateTagRequest

type CreateTagRequest struct {
	RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	Tag    *Tag   `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTagRequest) Descriptor deprecated

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

Deprecated: Use CreateTagRequest.ProtoReflect.Descriptor instead.

func (*CreateTagRequest) GetRepoId

func (x *CreateTagRequest) GetRepoId() string

func (*CreateTagRequest) GetTag

func (x *CreateTagRequest) GetTag() *Tag

func (*CreateTagRequest) ProtoMessage

func (*CreateTagRequest) ProtoMessage()

func (*CreateTagRequest) ProtoReflect

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

func (*CreateTagRequest) Reset

func (x *CreateTagRequest) Reset()

func (*CreateTagRequest) String

func (x *CreateTagRequest) String() string

type CreateVulnReportRequest added in v0.1.25

type CreateVulnReportRequest struct {

	// repo_id is the exact UIDP of the repo this image belongs to.
	RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// vuln_report is the vulnerability report as generated by the scanner.
	VulnReport *VulnReport `protobuf:"bytes,2,opt,name=vuln_report,json=vulnReport,proto3" json:"vuln_report,omitempty"`
	// raw_report_filepath is the uri to the location is GCS of the raw JSON
	// of the vuln scan report.
	RawReportFilepath string `protobuf:"bytes,3,opt,name=raw_report_filepath,json=rawReportFilepath,proto3" json:"raw_report_filepath,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVulnReportRequest) Descriptor deprecated added in v0.1.25

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

Deprecated: Use CreateVulnReportRequest.ProtoReflect.Descriptor instead.

func (*CreateVulnReportRequest) GetRawReportFilepath added in v0.1.25

func (x *CreateVulnReportRequest) GetRawReportFilepath() string

func (*CreateVulnReportRequest) GetRepoId added in v0.1.25

func (x *CreateVulnReportRequest) GetRepoId() string

func (*CreateVulnReportRequest) GetVulnReport added in v0.1.25

func (x *CreateVulnReportRequest) GetVulnReport() *VulnReport

func (*CreateVulnReportRequest) ProtoMessage added in v0.1.25

func (*CreateVulnReportRequest) ProtoMessage()

func (*CreateVulnReportRequest) ProtoReflect added in v0.1.25

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

func (*CreateVulnReportRequest) Reset added in v0.1.25

func (x *CreateVulnReportRequest) Reset()

func (*CreateVulnReportRequest) String added in v0.1.25

func (x *CreateVulnReportRequest) String() string

type CreateVulnRequest added in v0.1.25

type CreateVulnRequest struct {
	Vulnerability *Vulnerability `protobuf:"bytes,1,opt,name=vulnerability,proto3" json:"vulnerability,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVulnRequest) Descriptor deprecated added in v0.1.25

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

Deprecated: Use CreateVulnRequest.ProtoReflect.Descriptor instead.

func (*CreateVulnRequest) GetVulnerability added in v0.1.25

func (x *CreateVulnRequest) GetVulnerability() *Vulnerability

func (*CreateVulnRequest) ProtoMessage added in v0.1.25

func (*CreateVulnRequest) ProtoMessage()

func (*CreateVulnRequest) ProtoReflect added in v0.1.25

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

func (*CreateVulnRequest) Reset added in v0.1.25

func (x *CreateVulnRequest) Reset()

func (*CreateVulnRequest) String added in v0.1.25

func (x *CreateVulnRequest) String() string

type DeleteRepoRequest

type DeleteRepoRequest struct {

	// ID, UID of the record.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRepoRequest) Descriptor deprecated

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

Deprecated: Use DeleteRepoRequest.ProtoReflect.Descriptor instead.

func (*DeleteRepoRequest) GetId

func (x *DeleteRepoRequest) GetId() string

func (*DeleteRepoRequest) ProtoMessage

func (*DeleteRepoRequest) ProtoMessage()

func (*DeleteRepoRequest) ProtoReflect

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

func (*DeleteRepoRequest) Reset

func (x *DeleteRepoRequest) Reset()

func (*DeleteRepoRequest) String

func (x *DeleteRepoRequest) String() string

type DeleteTagRequest

type DeleteTagRequest struct {

	// ID, UID of the record.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTagRequest) Descriptor deprecated

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

Deprecated: Use DeleteTagRequest.ProtoReflect.Descriptor instead.

func (*DeleteTagRequest) GetId

func (x *DeleteTagRequest) GetId() string

func (*DeleteTagRequest) ProtoMessage

func (*DeleteTagRequest) ProtoMessage()

func (*DeleteTagRequest) ProtoReflect

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

func (*DeleteTagRequest) Reset

func (x *DeleteTagRequest) Reset()

func (*DeleteTagRequest) String

func (x *DeleteTagRequest) String() string

type DiffImageRequest

type DiffImageRequest struct {

	// The UIDP of the image repo to diff against.
	RepoId     string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	FromDigest string `protobuf:"bytes,2,opt,name=from_digest,json=fromDigest,proto3" json:"from_digest,omitempty"`
	ToDigest   string `protobuf:"bytes,3,opt,name=to_digest,json=toDigest,proto3" json:"to_digest,omitempty"`
	// contains filtered or unexported fields
}

DiffImageRequests are used to request a diff between two images.

func (*DiffImageRequest) Descriptor deprecated

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

Deprecated: Use DiffImageRequest.ProtoReflect.Descriptor instead.

func (*DiffImageRequest) GetFromDigest

func (x *DiffImageRequest) GetFromDigest() string

func (*DiffImageRequest) GetRepoId

func (x *DiffImageRequest) GetRepoId() string

func (*DiffImageRequest) GetToDigest

func (x *DiffImageRequest) GetToDigest() string

func (*DiffImageRequest) ProtoMessage

func (*DiffImageRequest) ProtoMessage()

func (*DiffImageRequest) ProtoReflect

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

func (*DiffImageRequest) Reset

func (x *DiffImageRequest) Reset()

func (*DiffImageRequest) String

func (x *DiffImageRequest) String() string

type DiffImageResponse added in v0.1.2

type DiffImageResponse struct {
	Packages        *PackagesDiff        `protobuf:"bytes,1,opt,name=packages,proto3" json:"packages,omitempty"`
	Vulnerabilities *VulnerabilitiesDiff `protobuf:"bytes,2,opt,name=vulnerabilities,proto3" json:"vulnerabilities,omitempty"`
	// warnings is a list of warning messages to return to the requesting client.
	// Warning messages describe a problem the client making the DiffImageRequest should correct or be aware of.
	// Warnings over 256 characters and large numbers of warnings may be truncated.
	Warnings []string `protobuf:"bytes,5,rep,name=warnings,proto3" json:"warnings,omitempty"`
	// contains filtered or unexported fields
}

func (*DiffImageResponse) Descriptor deprecated added in v0.1.2

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

Deprecated: Use DiffImageResponse.ProtoReflect.Descriptor instead.

func (*DiffImageResponse) GetPackages added in v0.1.2

func (x *DiffImageResponse) GetPackages() *PackagesDiff

func (*DiffImageResponse) GetVulnerabilities added in v0.1.2

func (x *DiffImageResponse) GetVulnerabilities() *VulnerabilitiesDiff

func (*DiffImageResponse) GetWarnings added in v0.1.2

func (x *DiffImageResponse) GetWarnings() []string

func (*DiffImageResponse) ProtoMessage added in v0.1.2

func (*DiffImageResponse) ProtoMessage()

func (*DiffImageResponse) ProtoReflect added in v0.1.2

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

func (*DiffImageResponse) Reset added in v0.1.2

func (x *DiffImageResponse) Reset()

func (*DiffImageResponse) String added in v0.1.2

func (x *DiffImageResponse) String() string

type GetRawVulnReportRequest added in v0.1.25

type GetRawVulnReportRequest struct {

	// digest is the exact digest of the image to request the raw scan result of.
	Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"`
	// scanner is the scanner to request the raw report from.
	Scanner Scanner_Name `protobuf:"varint,2,opt,name=scanner,proto3,enum=chainguard.platform.registry.Scanner_Name" json:"scanner,omitempty"`
	// created_at is an optional timestamp to retrieve a scan report for.
	// If not given, the latest report is returned.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRawVulnReportRequest) Descriptor deprecated added in v0.1.25

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

Deprecated: Use GetRawVulnReportRequest.ProtoReflect.Descriptor instead.

func (*GetRawVulnReportRequest) GetCreatedAt added in v0.1.25

func (x *GetRawVulnReportRequest) GetCreatedAt() *timestamppb.Timestamp

func (*GetRawVulnReportRequest) GetDigest added in v0.1.25

func (x *GetRawVulnReportRequest) GetDigest() string

func (*GetRawVulnReportRequest) GetScanner added in v0.1.25

func (x *GetRawVulnReportRequest) GetScanner() Scanner_Name

func (*GetRawVulnReportRequest) ProtoMessage added in v0.1.25

func (*GetRawVulnReportRequest) ProtoMessage()

func (*GetRawVulnReportRequest) ProtoReflect added in v0.1.25

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

func (*GetRawVulnReportRequest) Reset added in v0.1.25

func (x *GetRawVulnReportRequest) Reset()

func (*GetRawVulnReportRequest) String added in v0.1.25

func (x *GetRawVulnReportRequest) String() string

type ImageConfig added in v0.1.20

type ImageConfig struct {

	// User defines the username or UID which the process in the container should run as.
	User         string                              `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	ExposedPorts map[string]*ImageConfig_ExposedPort `` /* 185-byte string literal not displayed */
	// Env is a list of environment variables to be used in a container.
	Env []string `protobuf:"bytes,3,rep,name=env,proto3" json:"env,omitempty"`
	// Entrypoint defines a list of arguments to use as the command to execute when the container starts.
	Entrypoint []string `protobuf:"bytes,4,rep,name=entrypoint,proto3" json:"entrypoint,omitempty"`
	// Cmd defines the default arguments to the entrypoint of the container.
	Cmd []string `protobuf:"bytes,5,rep,name=cmd,proto3" json:"cmd,omitempty"`
	// Volumes is a set of directories describing where the process is likely write data specific to a container instance.
	Volumes map[string]*ImageConfig_Volume `` /* 155-byte string literal not displayed */
	// WorkingDir sets the current working directory of the entrypoint process in the container.
	WorkingDir string `protobuf:"bytes,7,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
	// Labels contains arbitrary metadata for the container.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// StopSignal contains the system call signal that will be sent to the container to exit.
	StopSignal string `protobuf:"bytes,9,opt,name=stop_signal,json=stopSignal,proto3" json:"stop_signal,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageConfig) Descriptor deprecated added in v0.1.20

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

Deprecated: Use ImageConfig.ProtoReflect.Descriptor instead.

func (*ImageConfig) GetCmd added in v0.1.20

func (x *ImageConfig) GetCmd() []string

func (*ImageConfig) GetEntrypoint added in v0.1.20

func (x *ImageConfig) GetEntrypoint() []string

func (*ImageConfig) GetEnv added in v0.1.20

func (x *ImageConfig) GetEnv() []string

func (*ImageConfig) GetExposedPorts added in v0.1.20

func (x *ImageConfig) GetExposedPorts() map[string]*ImageConfig_ExposedPort

func (*ImageConfig) GetLabels added in v0.1.20

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

func (*ImageConfig) GetStopSignal added in v0.1.20

func (x *ImageConfig) GetStopSignal() string

func (*ImageConfig) GetUser added in v0.1.20

func (x *ImageConfig) GetUser() string

func (*ImageConfig) GetVolumes added in v0.1.20

func (x *ImageConfig) GetVolumes() map[string]*ImageConfig_Volume

func (*ImageConfig) GetWorkingDir added in v0.1.20

func (x *ImageConfig) GetWorkingDir() string

func (*ImageConfig) ProtoMessage added in v0.1.20

func (*ImageConfig) ProtoMessage()

func (*ImageConfig) ProtoReflect added in v0.1.20

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

func (*ImageConfig) Reset added in v0.1.20

func (x *ImageConfig) Reset()

func (*ImageConfig) String added in v0.1.20

func (x *ImageConfig) String() string

type ImageConfigRequest added in v0.1.20

type ImageConfigRequest struct {

	// The UIDP of the image repo to get config for.
	RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// The digest of the image to get config for.
	Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	// The architecture to get config for.
	Arch string `protobuf:"bytes,3,opt,name=arch,proto3" json:"arch,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageConfigRequest) Descriptor deprecated added in v0.1.20

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

Deprecated: Use ImageConfigRequest.ProtoReflect.Descriptor instead.

func (*ImageConfigRequest) GetArch added in v0.1.20

func (x *ImageConfigRequest) GetArch() string

func (*ImageConfigRequest) GetDigest added in v0.1.20

func (x *ImageConfigRequest) GetDigest() string

func (*ImageConfigRequest) GetRepoId added in v0.1.20

func (x *ImageConfigRequest) GetRepoId() string

func (*ImageConfigRequest) ProtoMessage added in v0.1.20

func (*ImageConfigRequest) ProtoMessage()

func (*ImageConfigRequest) ProtoReflect added in v0.1.20

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

func (*ImageConfigRequest) Reset added in v0.1.20

func (x *ImageConfigRequest) Reset()

func (*ImageConfigRequest) String added in v0.1.20

func (x *ImageConfigRequest) String() string

type ImageConfig_ExposedPort added in v0.1.20

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

ExposedPorts a set of ports to expose from a container running this image.

func (*ImageConfig_ExposedPort) Descriptor deprecated added in v0.1.20

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

Deprecated: Use ImageConfig_ExposedPort.ProtoReflect.Descriptor instead.

func (*ImageConfig_ExposedPort) ProtoMessage added in v0.1.20

func (*ImageConfig_ExposedPort) ProtoMessage()

func (*ImageConfig_ExposedPort) ProtoReflect added in v0.1.20

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

func (*ImageConfig_ExposedPort) Reset added in v0.1.20

func (x *ImageConfig_ExposedPort) Reset()

func (*ImageConfig_ExposedPort) String added in v0.1.20

func (x *ImageConfig_ExposedPort) String() string

type ImageConfig_Volume added in v0.1.20

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

func (*ImageConfig_Volume) Descriptor deprecated added in v0.1.20

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

Deprecated: Use ImageConfig_Volume.ProtoReflect.Descriptor instead.

func (*ImageConfig_Volume) ProtoMessage added in v0.1.20

func (*ImageConfig_Volume) ProtoMessage()

func (*ImageConfig_Volume) ProtoReflect added in v0.1.20

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

func (*ImageConfig_Volume) Reset added in v0.1.20

func (x *ImageConfig_Volume) Reset()

func (*ImageConfig_Volume) String added in v0.1.20

func (x *ImageConfig_Volume) String() string

type ManifestMetadata added in v0.1.20

type ManifestMetadata struct {

	// Digest of image that packages are associated with.
	Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"`
	// List of packages that are part of image.
	PkgMetadata []*PkgMetadata `protobuf:"bytes,2,rep,name=pkg_metadata,json=pkgMetadata,proto3" json:"pkg_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*ManifestMetadata) Descriptor deprecated added in v0.1.20

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

Deprecated: Use ManifestMetadata.ProtoReflect.Descriptor instead.

func (*ManifestMetadata) GetDigest added in v0.1.20

func (x *ManifestMetadata) GetDigest() string

func (*ManifestMetadata) GetPkgMetadata added in v0.1.20

func (x *ManifestMetadata) GetPkgMetadata() []*PkgMetadata

func (*ManifestMetadata) ProtoMessage added in v0.1.20

func (*ManifestMetadata) ProtoMessage()

func (*ManifestMetadata) ProtoReflect added in v0.1.20

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

func (*ManifestMetadata) Reset added in v0.1.20

func (x *ManifestMetadata) Reset()

func (*ManifestMetadata) String added in v0.1.20

func (x *ManifestMetadata) String() string

type ManifestMetadataFilter added in v0.1.20

type ManifestMetadataFilter struct {

	// The UIDP of the image repo that the digests belongs to.
	RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// List of image digests or index digest to fetch package metadata for.
	// All entries specified would be retrieved.
	Items []*ManifestMetadataFilterEntry `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ManifestMetadataFilter) Descriptor deprecated added in v0.1.20

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

Deprecated: Use ManifestMetadataFilter.ProtoReflect.Descriptor instead.

func (*ManifestMetadataFilter) GetItems added in v0.1.20

func (*ManifestMetadataFilter) GetRepoId added in v0.1.20

func (x *ManifestMetadataFilter) GetRepoId() string

func (*ManifestMetadataFilter) ProtoMessage added in v0.1.20

func (*ManifestMetadataFilter) ProtoMessage()

func (*ManifestMetadataFilter) ProtoReflect added in v0.1.20

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

func (*ManifestMetadataFilter) Reset added in v0.1.20

func (x *ManifestMetadataFilter) Reset()

func (*ManifestMetadataFilter) String added in v0.1.20

func (x *ManifestMetadataFilter) String() string

type ManifestMetadataFilterEntry added in v0.1.20

type ManifestMetadataFilterEntry struct {

	// Types that are assignable to Filter:
	//
	//	*ManifestMetadataFilterEntry_ImageDigest
	//	*ManifestMetadataFilterEntry_IndexFilter
	Filter isManifestMetadataFilterEntry_Filter `protobuf_oneof:"filter"`
	// contains filtered or unexported fields
}

func (*ManifestMetadataFilterEntry) Descriptor deprecated added in v0.1.20

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

Deprecated: Use ManifestMetadataFilterEntry.ProtoReflect.Descriptor instead.

func (*ManifestMetadataFilterEntry) GetFilter added in v0.1.20

func (m *ManifestMetadataFilterEntry) GetFilter() isManifestMetadataFilterEntry_Filter

func (*ManifestMetadataFilterEntry) GetImageDigest added in v0.1.20

func (x *ManifestMetadataFilterEntry) GetImageDigest() string

func (*ManifestMetadataFilterEntry) GetIndexFilter added in v0.1.20

func (*ManifestMetadataFilterEntry) ProtoMessage added in v0.1.20

func (*ManifestMetadataFilterEntry) ProtoMessage()

func (*ManifestMetadataFilterEntry) ProtoReflect added in v0.1.20

func (*ManifestMetadataFilterEntry) Reset added in v0.1.20

func (x *ManifestMetadataFilterEntry) Reset()

func (*ManifestMetadataFilterEntry) String added in v0.1.20

func (x *ManifestMetadataFilterEntry) String() string

type ManifestMetadataFilterEntry_ImageDigest added in v0.1.20

type ManifestMetadataFilterEntry_ImageDigest struct {
	// For fetching metadata for an image digest
	ImageDigest string `protobuf:"bytes,1,opt,name=image_digest,json=imageDigest,proto3,oneof"`
}

type ManifestMetadataFilterEntry_IndexFilter added in v0.1.20

type ManifestMetadataFilterEntry_IndexFilter struct {
	// For fetching metadata for an index digest
	IndexFilter *ManifestMetadataIndexFilter `protobuf:"bytes,2,opt,name=index_filter,json=indexFilter,proto3,oneof"`
}

type ManifestMetadataIndexFilter added in v0.1.20

type ManifestMetadataIndexFilter struct {

	// The tag/index digest to fetch metadata for.
	Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"`
	// The architecture to fetch metadata for.
	Arch string `protobuf:"bytes,2,opt,name=arch,proto3" json:"arch,omitempty"`
	// contains filtered or unexported fields
}

func (*ManifestMetadataIndexFilter) Descriptor deprecated added in v0.1.20

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

Deprecated: Use ManifestMetadataIndexFilter.ProtoReflect.Descriptor instead.

func (*ManifestMetadataIndexFilter) GetArch added in v0.1.20

func (x *ManifestMetadataIndexFilter) GetArch() string

func (*ManifestMetadataIndexFilter) GetDigest added in v0.1.20

func (x *ManifestMetadataIndexFilter) GetDigest() string

func (*ManifestMetadataIndexFilter) ProtoMessage added in v0.1.20

func (*ManifestMetadataIndexFilter) ProtoMessage()

func (*ManifestMetadataIndexFilter) ProtoReflect added in v0.1.20

func (*ManifestMetadataIndexFilter) Reset added in v0.1.20

func (x *ManifestMetadataIndexFilter) Reset()

func (*ManifestMetadataIndexFilter) String added in v0.1.20

func (x *ManifestMetadataIndexFilter) String() string

type ManifestMetadataList added in v0.1.20

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

func (*ManifestMetadataList) Descriptor deprecated added in v0.1.20

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

Deprecated: Use ManifestMetadataList.ProtoReflect.Descriptor instead.

func (*ManifestMetadataList) GetItems added in v0.1.20

func (x *ManifestMetadataList) GetItems() []*ManifestMetadata

func (*ManifestMetadataList) ProtoMessage added in v0.1.20

func (*ManifestMetadataList) ProtoMessage()

func (*ManifestMetadataList) ProtoReflect added in v0.1.20

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

func (*ManifestMetadataList) Reset added in v0.1.20

func (x *ManifestMetadataList) Reset()

func (*ManifestMetadataList) String added in v0.1.20

func (x *ManifestMetadataList) String() string

type PackageReference

type PackageReference 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"`
	Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"`
	// contains filtered or unexported fields
}

PackageReference is a reference to a package, containing minimal information to identify it.

func (*PackageReference) Descriptor deprecated

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

Deprecated: Use PackageReference.ProtoReflect.Descriptor instead.

func (*PackageReference) GetName

func (x *PackageReference) GetName() string

func (*PackageReference) GetReference

func (x *PackageReference) GetReference() string

func (*PackageReference) GetVersion

func (x *PackageReference) GetVersion() string

func (*PackageReference) ProtoMessage

func (*PackageReference) ProtoMessage()

func (*PackageReference) ProtoReflect

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

func (*PackageReference) Reset

func (x *PackageReference) Reset()

func (*PackageReference) String

func (x *PackageReference) String() string

type PackageVersion added in v0.1.25

type PackageVersion struct {

	// the date when this version goes eol
	EolDate string `protobuf:"bytes,1,opt,name=eolDate,proto3" json:"eolDate,omitempty"`
	// whether or not the package exists in an apk repo
	Exists bool `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
	// whether or not a FIPS-enabled version of the package exists in an apk repo
	Fips bool `protobuf:"varint,3,opt,name=fips,proto3" json:"fips,omitempty"`
	// may be set to a date or true if the software is marked as lts
	Lts string `protobuf:"bytes,4,opt,name=lts,proto3" json:"lts,omitempty"`
	// the date this version was release
	ReleaseDate string `protobuf:"bytes,5,opt,name=releaseDate,proto3" json:"releaseDate,omitempty"`
	// the version stream identifier
	Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*PackageVersion) Descriptor deprecated added in v0.1.25

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

Deprecated: Use PackageVersion.ProtoReflect.Descriptor instead.

func (*PackageVersion) GetEolDate added in v0.1.25

func (x *PackageVersion) GetEolDate() string

func (*PackageVersion) GetExists added in v0.1.25

func (x *PackageVersion) GetExists() bool

func (*PackageVersion) GetFips added in v0.1.25

func (x *PackageVersion) GetFips() bool

func (*PackageVersion) GetLts added in v0.1.25

func (x *PackageVersion) GetLts() string

func (*PackageVersion) GetReleaseDate added in v0.1.25

func (x *PackageVersion) GetReleaseDate() string

func (*PackageVersion) GetVersion added in v0.1.25

func (x *PackageVersion) GetVersion() string

func (*PackageVersion) ProtoMessage added in v0.1.25

func (*PackageVersion) ProtoMessage()

func (*PackageVersion) ProtoReflect added in v0.1.25

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

func (*PackageVersion) Reset added in v0.1.25

func (x *PackageVersion) Reset()

func (*PackageVersion) String added in v0.1.25

func (x *PackageVersion) String() string

type PackageVersionMetadata added in v0.1.25

type PackageVersionMetadata struct {

	// list of versions which are now eol
	EolVersions []*PackageVersion `protobuf:"bytes,1,rep,name=eolVersions,proto3" json:"eolVersions,omitempty"`
	// the last time this data was updated
	LastUpdatedTimestamp string `protobuf:"bytes,2,opt,name=lastUpdatedTimestamp,proto3" json:"lastUpdatedTimestamp,omitempty"`
	// the latest version of the software
	LatestVersion string `protobuf:"bytes,3,opt,name=latestVersion,proto3" json:"latestVersion,omitempty"`
	// list of versions which are active
	Versions []*PackageVersion `protobuf:"bytes,4,rep,name=versions,proto3" json:"versions,omitempty"`
	// contains filtered or unexported fields
}

This type mimics the "status" section from the original YAML files located at https://github.com/chainguard-dev/package-version-metadata

func (*PackageVersionMetadata) Descriptor deprecated added in v0.1.25

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

Deprecated: Use PackageVersionMetadata.ProtoReflect.Descriptor instead.

func (*PackageVersionMetadata) GetEolVersions added in v0.1.25

func (x *PackageVersionMetadata) GetEolVersions() []*PackageVersion

func (*PackageVersionMetadata) GetLastUpdatedTimestamp added in v0.1.25

func (x *PackageVersionMetadata) GetLastUpdatedTimestamp() string

func (*PackageVersionMetadata) GetLatestVersion added in v0.1.25

func (x *PackageVersionMetadata) GetLatestVersion() string

func (*PackageVersionMetadata) GetVersions added in v0.1.25

func (x *PackageVersionMetadata) GetVersions() []*PackageVersion

func (*PackageVersionMetadata) ProtoMessage added in v0.1.25

func (*PackageVersionMetadata) ProtoMessage()

func (*PackageVersionMetadata) ProtoReflect added in v0.1.25

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

func (*PackageVersionMetadata) Reset added in v0.1.25

func (x *PackageVersionMetadata) Reset()

func (*PackageVersionMetadata) String added in v0.1.25

func (x *PackageVersionMetadata) String() string

type PackageVersionMetadataRequest added in v0.1.25

type PackageVersionMetadataRequest struct {

	// The name of the package.
	Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"`
	// contains filtered or unexported fields
}

func (*PackageVersionMetadataRequest) Descriptor deprecated added in v0.1.25

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

Deprecated: Use PackageVersionMetadataRequest.ProtoReflect.Descriptor instead.

func (*PackageVersionMetadataRequest) GetPackage added in v0.1.25

func (x *PackageVersionMetadataRequest) GetPackage() string

func (*PackageVersionMetadataRequest) ProtoMessage added in v0.1.25

func (*PackageVersionMetadataRequest) ProtoMessage()

func (*PackageVersionMetadataRequest) ProtoReflect added in v0.1.25

func (*PackageVersionMetadataRequest) Reset added in v0.1.25

func (x *PackageVersionMetadataRequest) Reset()

func (*PackageVersionMetadataRequest) String added in v0.1.25

type PackagesDiff

type PackagesDiff struct {
	Added   []*PackageReference                     `protobuf:"bytes,1,rep,name=added,proto3" json:"added,omitempty"`
	Removed []*PackageReference                     `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"`
	Changed []*PackagesDiff_ChangedPackageReference `protobuf:"bytes,3,rep,name=changed,proto3" json:"changed,omitempty"`
	// contains filtered or unexported fields
}

func (*PackagesDiff) Descriptor deprecated

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

Deprecated: Use PackagesDiff.ProtoReflect.Descriptor instead.

func (*PackagesDiff) GetAdded

func (x *PackagesDiff) GetAdded() []*PackageReference

func (*PackagesDiff) GetChanged

func (*PackagesDiff) GetRemoved

func (x *PackagesDiff) GetRemoved() []*PackageReference

func (*PackagesDiff) ProtoMessage

func (*PackagesDiff) ProtoMessage()

func (*PackagesDiff) ProtoReflect

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

func (*PackagesDiff) Reset

func (x *PackagesDiff) Reset()

func (*PackagesDiff) String

func (x *PackagesDiff) String() string

type PackagesDiff_ChangedPackageReference

type PackagesDiff_ChangedPackageReference struct {
	Name     string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Current  *VersionReference `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	Previous *VersionReference `protobuf:"bytes,3,opt,name=previous,proto3" json:"previous,omitempty"`
	// contains filtered or unexported fields
}

func (*PackagesDiff_ChangedPackageReference) Descriptor deprecated

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

Deprecated: Use PackagesDiff_ChangedPackageReference.ProtoReflect.Descriptor instead.

func (*PackagesDiff_ChangedPackageReference) GetCurrent

func (*PackagesDiff_ChangedPackageReference) GetName

func (*PackagesDiff_ChangedPackageReference) GetPrevious

func (*PackagesDiff_ChangedPackageReference) ProtoMessage

func (*PackagesDiff_ChangedPackageReference) ProtoMessage()

func (*PackagesDiff_ChangedPackageReference) ProtoReflect

func (*PackagesDiff_ChangedPackageReference) Reset

func (*PackagesDiff_ChangedPackageReference) String

type PkgMetadata added in v0.1.20

type PkgMetadata struct {

	// purl of package or subpackage; spec https://github.com/package-url/purl-spec
	Purl string `protobuf:"bytes,1,opt,name=purl,proto3" json:"purl,omitempty"`
	// if differ from purl, it means it is a subpackage
	OriginPurl string `protobuf:"bytes,2,opt,name=origin_purl,json=originPurl,proto3" json:"origin_purl,omitempty"`
	// date when EOL, date 0-0-0 when not eol
	EolDate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=eol_date,json=eolDate,proto3" json:"eol_date,omitempty"`
	// timestamp when package was built, date 0-0-0 when build timestamp not available
	BuildTimestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=build_timestamp,json=buildTimestamp,proto3" json:"build_timestamp,omitempty"`
	// license of package, empty if unknown
	License string `protobuf:"bytes,5,opt,name=license,proto3" json:"license,omitempty"`
	// contains filtered or unexported fields
}

func (*PkgMetadata) Descriptor deprecated added in v0.1.20

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

Deprecated: Use PkgMetadata.ProtoReflect.Descriptor instead.

func (*PkgMetadata) GetBuildTimestamp added in v0.1.20

func (x *PkgMetadata) GetBuildTimestamp() *timestamppb.Timestamp

func (*PkgMetadata) GetEolDate added in v0.1.20

func (x *PkgMetadata) GetEolDate() *timestamppb.Timestamp

func (*PkgMetadata) GetLicense added in v0.1.20

func (x *PkgMetadata) GetLicense() string

func (*PkgMetadata) GetOriginPurl added in v0.1.20

func (x *PkgMetadata) GetOriginPurl() string

func (*PkgMetadata) GetPurl added in v0.1.20

func (x *PkgMetadata) GetPurl() string

func (*PkgMetadata) ProtoMessage added in v0.1.20

func (*PkgMetadata) ProtoMessage()

func (*PkgMetadata) ProtoReflect added in v0.1.20

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

func (*PkgMetadata) Reset added in v0.1.20

func (x *PkgMetadata) Reset()

func (*PkgMetadata) String added in v0.1.20

func (x *PkgMetadata) String() string

type RawSbom added in v0.1.21

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

func (*RawSbom) Descriptor deprecated added in v0.1.21

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

Deprecated: Use RawSbom.ProtoReflect.Descriptor instead.

func (*RawSbom) GetRawSbom added in v0.1.21

func (x *RawSbom) GetRawSbom() string

func (*RawSbom) ProtoMessage added in v0.1.21

func (*RawSbom) ProtoMessage()

func (*RawSbom) ProtoReflect added in v0.1.21

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

func (*RawSbom) Reset added in v0.1.21

func (x *RawSbom) Reset()

func (*RawSbom) String added in v0.1.21

func (x *RawSbom) String() string

type RawSbomRequest added in v0.1.21

type RawSbomRequest struct {

	// The UIDP of the image repo to get config for.
	RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// The digest of the image to get config for.
	Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	// The oci reference to get sbom for.
	Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"`
	// The architecture to get config for.
	Arch string `protobuf:"bytes,4,opt,name=arch,proto3" json:"arch,omitempty"`
	// contains filtered or unexported fields
}

func (*RawSbomRequest) Descriptor deprecated added in v0.1.21

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

Deprecated: Use RawSbomRequest.ProtoReflect.Descriptor instead.

func (*RawSbomRequest) GetArch added in v0.1.21

func (x *RawSbomRequest) GetArch() string

func (*RawSbomRequest) GetDigest added in v0.1.21

func (x *RawSbomRequest) GetDigest() string

func (*RawSbomRequest) GetReference added in v0.1.21

func (x *RawSbomRequest) GetReference() string

func (*RawSbomRequest) GetRepoId added in v0.1.21

func (x *RawSbomRequest) GetRepoId() string

func (*RawSbomRequest) ProtoMessage added in v0.1.21

func (*RawSbomRequest) ProtoMessage()

func (*RawSbomRequest) ProtoReflect added in v0.1.21

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

func (*RawSbomRequest) Reset added in v0.1.21

func (x *RawSbomRequest) Reset()

func (*RawSbomRequest) String added in v0.1.21

func (x *RawSbomRequest) String() string

type RawVulnReport added in v0.1.25

type RawVulnReport struct {

	// digest is the exact digest of the scanned image.
	Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"`
	// scanner is the details of the scanner that generated this report.
	Scanner *Scanner `protobuf:"bytes,2,opt,name=scanner,proto3" json:"scanner,omitempty"`
	// created_at is the time the report was generated.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// raw_report is a JSON string of the raw report output from the scanner.
	// This is only populated for reports with size less than the maximum allowed.
	RawReport string `protobuf:"bytes,4,opt,name=raw_report,json=rawReport,proto3" json:"raw_report,omitempty"`
	// raw_report_url is an expiring URL for a direct download of the
	// raw scan report.
	RawReportUrl string `protobuf:"bytes,5,opt,name=raw_report_url,json=rawReportUrl,proto3" json:"raw_report_url,omitempty"`
	// contains filtered or unexported fields
}

func (*RawVulnReport) Descriptor deprecated added in v0.1.25

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

Deprecated: Use RawVulnReport.ProtoReflect.Descriptor instead.

func (*RawVulnReport) GetCreatedAt added in v0.1.25

func (x *RawVulnReport) GetCreatedAt() *timestamppb.Timestamp

func (*RawVulnReport) GetDigest added in v0.1.25

func (x *RawVulnReport) GetDigest() string

func (*RawVulnReport) GetRawReport added in v0.1.25

func (x *RawVulnReport) GetRawReport() string

func (*RawVulnReport) GetRawReportUrl added in v0.1.25

func (x *RawVulnReport) GetRawReportUrl() string

func (*RawVulnReport) GetScanner added in v0.1.25

func (x *RawVulnReport) GetScanner() *Scanner

func (*RawVulnReport) ProtoMessage added in v0.1.25

func (*RawVulnReport) ProtoMessage()

func (*RawVulnReport) ProtoReflect added in v0.1.25

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

func (*RawVulnReport) Reset added in v0.1.25

func (x *RawVulnReport) Reset()

func (*RawVulnReport) String added in v0.1.25

func (x *RawVulnReport) String() string

type RegistryClient

type RegistryClient interface {
	CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*Repo, error)
	UpdateRepo(ctx context.Context, in *Repo, opts ...grpc.CallOption) (*Repo, error)
	ListRepos(ctx context.Context, in *RepoFilter, opts ...grpc.CallOption) (*RepoList, error)
	DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	CreateTag(ctx context.Context, in *CreateTagRequest, opts ...grpc.CallOption) (*Tag, error)
	UpdateTag(ctx context.Context, in *Tag, opts ...grpc.CallOption) (*Tag, error)
	DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListTags(ctx context.Context, in *TagFilter, opts ...grpc.CallOption) (*TagList, error)
	ListTagHistory(ctx context.Context, in *TagHistoryFilter, opts ...grpc.CallOption) (*TagHistoryList, error)
	GetSbom(ctx context.Context, in *SbomRequest, opts ...grpc.CallOption) (*v1.Sbom2, error)
	GetImageConfig(ctx context.Context, in *ImageConfigRequest, opts ...grpc.CallOption) (*ImageConfig, error)
	GetArchs(ctx context.Context, in *ArchRequest, opts ...grpc.CallOption) (*Archs, error)
	GetSize(ctx context.Context, in *SizeRequest, opts ...grpc.CallOption) (*Size, error)
	GetRawSbom(ctx context.Context, in *RawSbomRequest, opts ...grpc.CallOption) (*RawSbom, error)
	GetVulnReport(ctx context.Context, in *VulnReportRequest, opts ...grpc.CallOption) (*v1.VulnReport, error)
	ListManifestMetadata(ctx context.Context, in *ManifestMetadataFilter, opts ...grpc.CallOption) (*ManifestMetadataList, error)
	GetPackageVersionMetadata(ctx context.Context, in *PackageVersionMetadataRequest, opts ...grpc.CallOption) (*PackageVersionMetadata, error)
}

RegistryClient is the client API for Registry 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 NewRegistryClient

func NewRegistryClient(cc grpc.ClientConnInterface) RegistryClient

type RegistryServer

type RegistryServer interface {
	CreateRepo(context.Context, *CreateRepoRequest) (*Repo, error)
	UpdateRepo(context.Context, *Repo) (*Repo, error)
	ListRepos(context.Context, *RepoFilter) (*RepoList, error)
	DeleteRepo(context.Context, *DeleteRepoRequest) (*emptypb.Empty, error)
	CreateTag(context.Context, *CreateTagRequest) (*Tag, error)
	UpdateTag(context.Context, *Tag) (*Tag, error)
	DeleteTag(context.Context, *DeleteTagRequest) (*emptypb.Empty, error)
	ListTags(context.Context, *TagFilter) (*TagList, error)
	ListTagHistory(context.Context, *TagHistoryFilter) (*TagHistoryList, error)
	GetSbom(context.Context, *SbomRequest) (*v1.Sbom2, error)
	GetImageConfig(context.Context, *ImageConfigRequest) (*ImageConfig, error)
	GetArchs(context.Context, *ArchRequest) (*Archs, error)
	GetSize(context.Context, *SizeRequest) (*Size, error)
	GetRawSbom(context.Context, *RawSbomRequest) (*RawSbom, error)
	GetVulnReport(context.Context, *VulnReportRequest) (*v1.VulnReport, error)
	ListManifestMetadata(context.Context, *ManifestMetadataFilter) (*ManifestMetadataList, error)
	GetPackageVersionMetadata(context.Context, *PackageVersionMetadataRequest) (*PackageVersionMetadata, error)
	// contains filtered or unexported methods
}

RegistryServer is the server API for Registry service. All implementations must embed UnimplementedRegistryServer for forward compatibility.

type Repo

type Repo struct {

	// id is the identifier of this specific repository.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name is the human-readable name of the repository.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// catalog_tier is the catalog tier this repository belongs to.
	CatalogTier CatalogTier `` /* 141-byte string literal not displayed */
	// bundles is a list of tags/labels that allow us to group repositories to each other for sales purposes.
	Bundles []string `protobuf:"bytes,4,rep,name=bundles,proto3" json:"bundles,omitempty"`
	// readme is raw Markdown file contents describing the repo.
	Readme string `protobuf:"bytes,5,opt,name=readme,proto3" json:"readme,omitempty"`
	// (optional) Repository sync configuration. If enabled, images are synced from the source to this repo.
	// NOTE: This property can only be set by Chainguard.
	// Note: the json_name defaults to "syncConfig" which causes our eventing
	// system to not work properly (since the protobuf name is "sync_config")
	SyncConfig *SyncConfig `protobuf:"bytes,6,opt,name=sync_config,proto3" json:"sync_config,omitempty"`
	// contains filtered or unexported fields
}

func (*Repo) CloudEventsExtension added in v0.1.21

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

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

func (*Repo) CloudEventsSubject added in v0.1.21

func (x *Repo) CloudEventsSubject() string

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

func (*Repo) Descriptor deprecated

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

Deprecated: Use Repo.ProtoReflect.Descriptor instead.

func (*Repo) GetBundles

func (x *Repo) GetBundles() []string

func (*Repo) GetCatalogTier

func (x *Repo) GetCatalogTier() CatalogTier

func (*Repo) GetId

func (x *Repo) GetId() string

func (*Repo) GetName

func (x *Repo) GetName() string

func (*Repo) GetReadme added in v0.1.13

func (x *Repo) GetReadme() string

func (*Repo) GetSyncConfig added in v0.1.19

func (x *Repo) GetSyncConfig() *SyncConfig

func (*Repo) ProtoMessage

func (*Repo) ProtoMessage()

func (*Repo) ProtoReflect

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

func (*Repo) Reset

func (x *Repo) Reset()

func (*Repo) String

func (x *Repo) String() string

type RepoFilter

type RepoFilter struct {

	// uidp filters records based on their position in the group hierarchy.
	Uidp *v1.UIDPFilter `protobuf:"bytes,1,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// name is the exact name of the record.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// id is the identifier of this specific repository.
	Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RepoFilter) Descriptor deprecated

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

Deprecated: Use RepoFilter.ProtoReflect.Descriptor instead.

func (*RepoFilter) GetId

func (x *RepoFilter) GetId() string

func (*RepoFilter) GetName

func (x *RepoFilter) GetName() string

func (*RepoFilter) GetUidp

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

func (*RepoFilter) ProtoMessage

func (*RepoFilter) ProtoMessage()

func (*RepoFilter) ProtoReflect

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

func (*RepoFilter) Reset

func (x *RepoFilter) Reset()

func (*RepoFilter) String

func (x *RepoFilter) String() string

type RepoList

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

func (*RepoList) Descriptor deprecated

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

Deprecated: Use RepoList.ProtoReflect.Descriptor instead.

func (*RepoList) GetItems

func (x *RepoList) GetItems() []*Repo

func (*RepoList) ProtoMessage

func (*RepoList) ProtoMessage()

func (*RepoList) ProtoReflect

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

func (*RepoList) Reset

func (x *RepoList) Reset()

func (*RepoList) String

func (x *RepoList) String() string

type SbomRequest added in v0.1.6

type SbomRequest struct {

	// The UIDP of the image repo to get an SBOM for.
	RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// The digest of the image to get an SBOM for.
	Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	// The architecture to get the SBOM for.
	Arch string `protobuf:"bytes,3,opt,name=arch,proto3" json:"arch,omitempty"`
	// contains filtered or unexported fields
}

func (*SbomRequest) Descriptor deprecated added in v0.1.6

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

Deprecated: Use SbomRequest.ProtoReflect.Descriptor instead.

func (*SbomRequest) GetArch added in v0.1.21

func (x *SbomRequest) GetArch() string

func (*SbomRequest) GetDigest added in v0.1.6

func (x *SbomRequest) GetDigest() string

func (*SbomRequest) GetRepoId added in v0.1.6

func (x *SbomRequest) GetRepoId() string

func (*SbomRequest) ProtoMessage added in v0.1.6

func (*SbomRequest) ProtoMessage()

func (*SbomRequest) ProtoReflect added in v0.1.6

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

func (*SbomRequest) Reset added in v0.1.6

func (x *SbomRequest) Reset()

func (*SbomRequest) String added in v0.1.6

func (x *SbomRequest) String() string

type Scanner added in v0.1.25

type Scanner struct {

	// name is the name of the scanner.
	Name Scanner_Name `protobuf:"varint,1,opt,name=name,proto3,enum=chainguard.platform.registry.Scanner_Name" json:"name,omitempty"`
	// scanner_version is the version of the scanner used to generate the report.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// db_build_time is the time the vulnerability database was built that was used
	// to generate the report.
	DbBuildTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=db_build_time,json=dbBuildTime,proto3" json:"db_build_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Scanner) Descriptor deprecated added in v0.1.25

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

Deprecated: Use Scanner.ProtoReflect.Descriptor instead.

func (*Scanner) GetDbBuildTime added in v0.1.25

func (x *Scanner) GetDbBuildTime() *timestamppb.Timestamp

func (*Scanner) GetName added in v0.1.25

func (x *Scanner) GetName() Scanner_Name

func (*Scanner) GetVersion added in v0.1.25

func (x *Scanner) GetVersion() string

func (*Scanner) ProtoMessage added in v0.1.25

func (*Scanner) ProtoMessage()

func (*Scanner) ProtoReflect added in v0.1.25

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

func (*Scanner) Reset added in v0.1.25

func (x *Scanner) Reset()

func (*Scanner) String added in v0.1.25

func (x *Scanner) String() string

type ScannerMetadata added in v0.1.15

type ScannerMetadata struct {
	Digest                       string                 `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"`
	Scanner                      *v11.Scanner           `protobuf:"bytes,2,opt,name=scanner,proto3" json:"scanner,omitempty"`
	VulnerabilityDbLastBuildTime *timestamppb.Timestamp `` /* 151-byte string literal not displayed */
	VulnerabilityDbSchemaVersion string                 `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ScannerMetadata) Descriptor deprecated added in v0.1.15

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

Deprecated: Use ScannerMetadata.ProtoReflect.Descriptor instead.

func (*ScannerMetadata) GetDigest added in v0.1.15

func (x *ScannerMetadata) GetDigest() string

func (*ScannerMetadata) GetScanner added in v0.1.15

func (x *ScannerMetadata) GetScanner() *v11.Scanner

func (*ScannerMetadata) GetVulnerabilityDbLastBuildTime added in v0.1.15

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

func (*ScannerMetadata) GetVulnerabilityDbSchemaVersion added in v0.1.17

func (x *ScannerMetadata) GetVulnerabilityDbSchemaVersion() string

func (*ScannerMetadata) ProtoMessage added in v0.1.15

func (*ScannerMetadata) ProtoMessage()

func (*ScannerMetadata) ProtoReflect added in v0.1.15

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

func (*ScannerMetadata) Reset added in v0.1.15

func (x *ScannerMetadata) Reset()

func (*ScannerMetadata) String added in v0.1.15

func (x *ScannerMetadata) String() string

type Scanner_Name added in v0.1.25

type Scanner_Name int32
const (
	Scanner_UNKNOWN Scanner_Name = 0
	Scanner_GRYPE   Scanner_Name = 1
	Scanner_TRIVY   Scanner_Name = 2
)

func (Scanner_Name) Descriptor added in v0.1.25

func (Scanner_Name) Enum added in v0.1.25

func (x Scanner_Name) Enum() *Scanner_Name

func (Scanner_Name) EnumDescriptor deprecated added in v0.1.25

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

Deprecated: Use Scanner_Name.Descriptor instead.

func (Scanner_Name) Number added in v0.1.25

func (Scanner_Name) String added in v0.1.25

func (x Scanner_Name) String() string

func (Scanner_Name) Type added in v0.1.25

type Size added in v0.1.21

type Size struct {

	// Size per manifest digest, by architecture.
	Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	// Architecture.
	Arch string `protobuf:"bytes,2,opt,name=arch,proto3" json:"arch,omitempty"`
	// contains filtered or unexported fields
}

func (*Size) Descriptor deprecated added in v0.1.21

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

Deprecated: Use Size.ProtoReflect.Descriptor instead.

func (*Size) GetArch added in v0.1.21

func (x *Size) GetArch() string

func (*Size) GetSize added in v0.1.21

func (x *Size) GetSize() int64

func (*Size) ProtoMessage added in v0.1.21

func (*Size) ProtoMessage()

func (*Size) ProtoReflect added in v0.1.21

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

func (*Size) Reset added in v0.1.21

func (x *Size) Reset()

func (*Size) String added in v0.1.21

func (x *Size) String() string

type SizeRequest added in v0.1.21

type SizeRequest struct {

	// The UIDP of the image repo to get size and architecture information for.
	RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// The digest of the image to get size and architecture information for.
	Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	// The architecture to filter on.
	Arch string `protobuf:"bytes,3,opt,name=arch,proto3" json:"arch,omitempty"`
	// contains filtered or unexported fields
}

func (*SizeRequest) Descriptor deprecated added in v0.1.21

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

Deprecated: Use SizeRequest.ProtoReflect.Descriptor instead.

func (*SizeRequest) GetArch added in v0.1.21

func (x *SizeRequest) GetArch() string

func (*SizeRequest) GetDigest added in v0.1.21

func (x *SizeRequest) GetDigest() string

func (*SizeRequest) GetRepoId added in v0.1.21

func (x *SizeRequest) GetRepoId() string

func (*SizeRequest) ProtoMessage added in v0.1.21

func (*SizeRequest) ProtoMessage()

func (*SizeRequest) ProtoReflect added in v0.1.21

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

func (*SizeRequest) Reset added in v0.1.21

func (x *SizeRequest) Reset()

func (*SizeRequest) String added in v0.1.21

func (x *SizeRequest) String() string

type SyncConfig added in v0.1.19

type SyncConfig struct {

	// Repo ID to sync from.
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Controls whether exported tags will be uniquely labeled.
	UniqueTags bool `protobuf:"varint,2,opt,name=unique_tags,json=uniqueTags,proto3" json:"unique_tags,omitempty"`
	// When the catalog syncer should stop syncing from the source repository.
	Expiration *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// GCP Artifact Registry repo to sync to.
	Google string `protobuf:"bytes,4,opt,name=google,proto3" json:"google,omitempty"`
	// AWS ECR repo to sync to.
	Amazon string `protobuf:"bytes,5,opt,name=amazon,proto3" json:"amazon,omitempty"`
	// Controls whether to synchronize APKs for the images in this repository
	// to the enclosing Chainguard group.
	SyncApks bool `protobuf:"varint,7,opt,name=sync_apks,json=syncApks,proto3" json:"sync_apks,omitempty"`
	// An apko configuration overlay to rebuild images with when syncing them.
	ApkoOverlay string `protobuf:"bytes,8,opt,name=apko_overlay,json=apkoOverlay,proto3" json:"apko_overlay,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncConfig) Descriptor deprecated added in v0.1.19

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

Deprecated: Use SyncConfig.ProtoReflect.Descriptor instead.

func (*SyncConfig) GetAmazon added in v0.1.21

func (x *SyncConfig) GetAmazon() string

func (*SyncConfig) GetApkoOverlay added in v0.1.22

func (x *SyncConfig) GetApkoOverlay() string

func (*SyncConfig) GetExpiration added in v0.1.20

func (x *SyncConfig) GetExpiration() *timestamppb.Timestamp

func (*SyncConfig) GetGoogle added in v0.1.21

func (x *SyncConfig) GetGoogle() string

func (*SyncConfig) GetSource added in v0.1.19

func (x *SyncConfig) GetSource() string

func (*SyncConfig) GetSyncApks added in v0.1.21

func (x *SyncConfig) GetSyncApks() bool

func (*SyncConfig) GetUniqueTags added in v0.1.19

func (x *SyncConfig) GetUniqueTags() bool

func (*SyncConfig) ProtoMessage added in v0.1.19

func (*SyncConfig) ProtoMessage()

func (*SyncConfig) ProtoReflect added in v0.1.19

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

func (*SyncConfig) Reset added in v0.1.19

func (x *SyncConfig) Reset()

func (*SyncConfig) String added in v0.1.19

func (x *SyncConfig) String() string

type Tag

type Tag struct {

	// id, identifier of this Tag, a UIDP under a Repo.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name, the unique name of the Tag.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// digest, the digest of the manifest with this tag.
	Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	// last time this tag was updated.
	LastUpdated *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	// deprecated, true if the tag is deprecated.
	Deprecated bool `protobuf:"varint,5,opt,name=deprecated,proto3" json:"deprecated,omitempty"`
	// bundles is a list of tags/labels for sales purposes.
	Bundles []string `protobuf:"bytes,6,rep,name=bundles,proto3" json:"bundles,omitempty"`
	// contains filtered or unexported fields
}

func (*Tag) Descriptor deprecated

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

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetBundles

func (x *Tag) GetBundles() []string

func (*Tag) GetDeprecated

func (x *Tag) GetDeprecated() bool

func (*Tag) GetDigest

func (x *Tag) GetDigest() string

func (*Tag) GetId

func (x *Tag) GetId() string

func (*Tag) GetLastUpdated

func (x *Tag) GetLastUpdated() *timestamppb.Timestamp

func (*Tag) GetName

func (x *Tag) GetName() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

type TagFilter

type TagFilter struct {

	// uidp filters records based on their position in the group hierarchy.
	Uidp *v1.UIDPFilter `protobuf:"bytes,1,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// The unique name of the Tag to list.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The timestamp after which returned records were updated.
	UpdatedSince *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_since,json=updatedSince,proto3" json:"updated_since,omitempty"`
	// Exclude tags of the form "sha256-*".
	ExcludeReferrers bool `protobuf:"varint,6,opt,name=exclude_referrers,json=excludeReferrers,proto3" json:"exclude_referrers,omitempty"`
	// Exclude tags of the form "*-20yymmdd".
	ExcludeDates bool `protobuf:"varint,7,opt,name=exclude_dates,json=excludeDates,proto3" json:"exclude_dates,omitempty"`
	// Exclude tags of the form "*-r[0-9]+".
	ExcludeEpochs bool   `protobuf:"varint,8,opt,name=exclude_epochs,json=excludeEpochs,proto3" json:"exclude_epochs,omitempty"`
	Id            string `protobuf:"bytes,9,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*TagFilter) Descriptor deprecated

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

Deprecated: Use TagFilter.ProtoReflect.Descriptor instead.

func (*TagFilter) GetExcludeDates

func (x *TagFilter) GetExcludeDates() bool

func (*TagFilter) GetExcludeEpochs

func (x *TagFilter) GetExcludeEpochs() bool

func (*TagFilter) GetExcludeReferrers

func (x *TagFilter) GetExcludeReferrers() bool

func (*TagFilter) GetId

func (x *TagFilter) GetId() string

func (*TagFilter) GetName

func (x *TagFilter) GetName() string

func (*TagFilter) GetUidp

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

func (*TagFilter) GetUpdatedSince

func (x *TagFilter) GetUpdatedSince() *timestamppb.Timestamp

func (*TagFilter) ProtoMessage

func (*TagFilter) ProtoMessage()

func (*TagFilter) ProtoReflect

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

func (*TagFilter) Reset

func (x *TagFilter) Reset()

func (*TagFilter) String

func (x *TagFilter) String() string

type TagHistory

type TagHistory struct {
	UpdateTimestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=update_timestamp,json=updateTimestamp,proto3" json:"update_timestamp,omitempty"`
	Digest          string                 `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

func (*TagHistory) Descriptor deprecated

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

Deprecated: Use TagHistory.ProtoReflect.Descriptor instead.

func (*TagHistory) GetDigest

func (x *TagHistory) GetDigest() string

func (*TagHistory) GetUpdateTimestamp

func (x *TagHistory) GetUpdateTimestamp() *timestamppb.Timestamp

func (*TagHistory) ProtoMessage

func (*TagHistory) ProtoMessage()

func (*TagHistory) ProtoReflect

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

func (*TagHistory) Reset

func (x *TagHistory) Reset()

func (*TagHistory) String

func (x *TagHistory) String() string

type TagHistoryFilter

type TagHistoryFilter struct {

	// tag UIDP to list history for.
	ParentId string                 `protobuf:"bytes,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Start    *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	End      *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*TagHistoryFilter) Descriptor deprecated

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

Deprecated: Use TagHistoryFilter.ProtoReflect.Descriptor instead.

func (*TagHistoryFilter) GetEnd

func (x *TagHistoryFilter) GetEnd() *timestamppb.Timestamp

func (*TagHistoryFilter) GetParentId

func (x *TagHistoryFilter) GetParentId() string

func (*TagHistoryFilter) GetStart

func (x *TagHistoryFilter) GetStart() *timestamppb.Timestamp

func (*TagHistoryFilter) ProtoMessage

func (*TagHistoryFilter) ProtoMessage()

func (*TagHistoryFilter) ProtoReflect

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

func (*TagHistoryFilter) Reset

func (x *TagHistoryFilter) Reset()

func (*TagHistoryFilter) String

func (x *TagHistoryFilter) String() string

type TagHistoryList

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

func (*TagHistoryList) Descriptor deprecated

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

Deprecated: Use TagHistoryList.ProtoReflect.Descriptor instead.

func (*TagHistoryList) GetItems

func (x *TagHistoryList) GetItems() []*TagHistory

func (*TagHistoryList) ProtoMessage

func (*TagHistoryList) ProtoMessage()

func (*TagHistoryList) ProtoReflect

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

func (*TagHistoryList) Reset

func (x *TagHistoryList) Reset()

func (*TagHistoryList) String

func (x *TagHistoryList) String() string

type TagList

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

func (*TagList) Descriptor deprecated

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

Deprecated: Use TagList.ProtoReflect.Descriptor instead.

func (*TagList) GetItems

func (x *TagList) GetItems() []*Tag

func (*TagList) ProtoMessage

func (*TagList) ProtoMessage()

func (*TagList) ProtoReflect

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

func (*TagList) Reset

func (x *TagList) Reset()

func (*TagList) String

func (x *TagList) String() string

type UnimplementedRegistryServer

type UnimplementedRegistryServer struct{}

UnimplementedRegistryServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedRegistryServer) CreateRepo

func (UnimplementedRegistryServer) CreateTag

func (UnimplementedRegistryServer) DeleteRepo

func (UnimplementedRegistryServer) DeleteTag

func (UnimplementedRegistryServer) GetArchs added in v0.1.21

func (UnimplementedRegistryServer) GetImageConfig added in v0.1.20

func (UnimplementedRegistryServer) GetPackageVersionMetadata added in v0.1.25

func (UnimplementedRegistryServer) GetRawSbom added in v0.1.21

func (UnimplementedRegistryServer) GetSbom added in v0.1.6

func (UnimplementedRegistryServer) GetSize added in v0.1.21

func (UnimplementedRegistryServer) GetVulnReport added in v0.1.12

func (UnimplementedRegistryServer) ListManifestMetadata added in v0.1.20

func (UnimplementedRegistryServer) ListRepos

func (UnimplementedRegistryServer) ListTagHistory

func (UnimplementedRegistryServer) ListTags

func (UnimplementedRegistryServer) UpdateRepo

func (UnimplementedRegistryServer) UpdateTag

type UnimplementedVulnerabilitiesServer added in v0.1.25

type UnimplementedVulnerabilitiesServer struct{}

UnimplementedVulnerabilitiesServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedVulnerabilitiesServer) CreateOrUpdateVuln added in v0.1.25

func (UnimplementedVulnerabilitiesServer) CreateVulnReport added in v0.1.25

func (UnimplementedVulnerabilitiesServer) GetRawVulnReport added in v0.1.25

func (UnimplementedVulnerabilitiesServer) ListVulnReports added in v0.1.25

type UnsafeRegistryServer

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

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

type UnsafeVulnerabilitiesServer added in v0.1.25

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

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

type VersionReference

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

func (*VersionReference) Descriptor deprecated

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

Deprecated: Use VersionReference.ProtoReflect.Descriptor instead.

func (*VersionReference) GetReference

func (x *VersionReference) GetReference() string

func (*VersionReference) GetVersion

func (x *VersionReference) GetVersion() string

func (*VersionReference) ProtoMessage

func (*VersionReference) ProtoMessage()

func (*VersionReference) ProtoReflect

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

func (*VersionReference) Reset

func (x *VersionReference) Reset()

func (*VersionReference) String

func (x *VersionReference) String() string

type VulnReport added in v0.1.25

type VulnReport struct {

	// digest is the exact digest of the scanned image.
	Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"`
	// scanner is the details of the scanner used to generate the report.
	Scanner *Scanner `protobuf:"bytes,2,opt,name=scanner,proto3" json:"scanner,omitempty"`
	// created_at is the time the report was generated.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// vulnerabilities are the found vulns in the scanned image.
	// For Create
	Vulnerabilities []*Vulnerability `protobuf:"bytes,4,rep,name=vulnerabilities,proto3" json:"vulnerabilities,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnReport) Descriptor deprecated added in v0.1.25

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

Deprecated: Use VulnReport.ProtoReflect.Descriptor instead.

func (*VulnReport) GetCreatedAt added in v0.1.25

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

func (*VulnReport) GetDigest added in v0.1.25

func (x *VulnReport) GetDigest() string

func (*VulnReport) GetScanner added in v0.1.25

func (x *VulnReport) GetScanner() *Scanner

func (*VulnReport) GetVulnerabilities added in v0.1.25

func (x *VulnReport) GetVulnerabilities() []*Vulnerability

func (*VulnReport) ProtoMessage added in v0.1.25

func (*VulnReport) ProtoMessage()

func (*VulnReport) ProtoReflect added in v0.1.25

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

func (*VulnReport) Reset added in v0.1.25

func (x *VulnReport) Reset()

func (*VulnReport) String added in v0.1.25

func (x *VulnReport) String() string

type VulnReportFilter added in v0.1.25

type VulnReportFilter struct {

	// repo_id is the UIDP of the repo to list reports for.
	// One of repo_id and digest are required.
	RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// digest is the exact digest of the image to list reports for.
	// One of repo_id and digest are required. If populated, digest takes precedence over repo_id.
	Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	// tag is the optional name of the tag to pull reports for.
	// Ignored if digest is populated.
	Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
	// scanner is the optional scanner to limit vuln reports to.
	// If not provided, reports from all scanners will be included.
	Scanner *Scanner `protobuf:"bytes,4,opt,name=scanner,proto3" json:"scanner,omitempty"`
	// created_since returns reports that have been created
	// after the given time.
	CreatedSince *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_since,json=createdSince,proto3" json:"created_since,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnReportFilter) Descriptor deprecated added in v0.1.25

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

Deprecated: Use VulnReportFilter.ProtoReflect.Descriptor instead.

func (*VulnReportFilter) GetCreatedSince added in v0.1.25

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

func (*VulnReportFilter) GetDigest added in v0.1.25

func (x *VulnReportFilter) GetDigest() string

func (*VulnReportFilter) GetRepoId added in v0.1.25

func (x *VulnReportFilter) GetRepoId() string

func (*VulnReportFilter) GetScanner added in v0.1.25

func (x *VulnReportFilter) GetScanner() *Scanner

func (*VulnReportFilter) GetTag added in v0.1.25

func (x *VulnReportFilter) GetTag() string

func (*VulnReportFilter) ProtoMessage added in v0.1.25

func (*VulnReportFilter) ProtoMessage()

func (*VulnReportFilter) ProtoReflect added in v0.1.25

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

func (*VulnReportFilter) Reset added in v0.1.25

func (x *VulnReportFilter) Reset()

func (*VulnReportFilter) String added in v0.1.25

func (x *VulnReportFilter) String() string

type VulnReportList added in v0.1.25

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

func (*VulnReportList) Descriptor deprecated added in v0.1.25

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

Deprecated: Use VulnReportList.ProtoReflect.Descriptor instead.

func (*VulnReportList) GetItems added in v0.1.25

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

func (*VulnReportList) ProtoMessage added in v0.1.25

func (*VulnReportList) ProtoMessage()

func (*VulnReportList) ProtoReflect added in v0.1.25

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

func (*VulnReportList) Reset added in v0.1.25

func (x *VulnReportList) Reset()

func (*VulnReportList) String added in v0.1.25

func (x *VulnReportList) String() string

type VulnReportRequest added in v0.1.12

type VulnReportRequest struct {

	// The UIDP of the image repo to get a VulnReport for.
	RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// The digest of the image to get a VulnReport for.
	Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnReportRequest) Descriptor deprecated added in v0.1.12

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

Deprecated: Use VulnReportRequest.ProtoReflect.Descriptor instead.

func (*VulnReportRequest) GetDigest added in v0.1.12

func (x *VulnReportRequest) GetDigest() string

func (*VulnReportRequest) GetRepoId added in v0.1.12

func (x *VulnReportRequest) GetRepoId() string

func (*VulnReportRequest) ProtoMessage added in v0.1.12

func (*VulnReportRequest) ProtoMessage()

func (*VulnReportRequest) ProtoReflect added in v0.1.12

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

func (*VulnReportRequest) Reset added in v0.1.12

func (x *VulnReportRequest) Reset()

func (*VulnReportRequest) String added in v0.1.12

func (x *VulnReportRequest) String() string

type VulnerabilitiesClient added in v0.1.25

type VulnerabilitiesClient interface {
	CreateVulnReport(ctx context.Context, in *CreateVulnReportRequest, opts ...grpc.CallOption) (*VulnReport, error)
	ListVulnReports(ctx context.Context, in *VulnReportFilter, opts ...grpc.CallOption) (*VulnReportList, error)
	GetRawVulnReport(ctx context.Context, in *GetRawVulnReportRequest, opts ...grpc.CallOption) (*RawVulnReport, error)
	CreateOrUpdateVuln(ctx context.Context, in *CreateVulnRequest, opts ...grpc.CallOption) (*Vulnerability, error)
}

VulnerabilitiesClient is the client API for Vulnerabilities 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 NewVulnerabilitiesClient added in v0.1.25

func NewVulnerabilitiesClient(cc grpc.ClientConnInterface) VulnerabilitiesClient

type VulnerabilitiesDiff

type VulnerabilitiesDiff struct {
	Added    []*VulnerabilityReference `protobuf:"bytes,1,rep,name=added,proto3" json:"added,omitempty"`
	Removed  []*VulnerabilityReference `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"`
	Metadata []*ScannerMetadata        `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnerabilitiesDiff) Descriptor deprecated

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

Deprecated: Use VulnerabilitiesDiff.ProtoReflect.Descriptor instead.

func (*VulnerabilitiesDiff) GetAdded

func (*VulnerabilitiesDiff) GetMetadata added in v0.1.15

func (x *VulnerabilitiesDiff) GetMetadata() []*ScannerMetadata

func (*VulnerabilitiesDiff) GetRemoved

func (x *VulnerabilitiesDiff) GetRemoved() []*VulnerabilityReference

func (*VulnerabilitiesDiff) ProtoMessage

func (*VulnerabilitiesDiff) ProtoMessage()

func (*VulnerabilitiesDiff) ProtoReflect

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

func (*VulnerabilitiesDiff) Reset

func (x *VulnerabilitiesDiff) Reset()

func (*VulnerabilitiesDiff) String

func (x *VulnerabilitiesDiff) String() string

type VulnerabilitiesServer added in v0.1.25

type VulnerabilitiesServer interface {
	CreateVulnReport(context.Context, *CreateVulnReportRequest) (*VulnReport, error)
	ListVulnReports(context.Context, *VulnReportFilter) (*VulnReportList, error)
	GetRawVulnReport(context.Context, *GetRawVulnReportRequest) (*RawVulnReport, error)
	CreateOrUpdateVuln(context.Context, *CreateVulnRequest) (*Vulnerability, error)
	// contains filtered or unexported methods
}

VulnerabilitiesServer is the server API for Vulnerabilities service. All implementations must embed UnimplementedVulnerabilitiesServer for forward compatibility.

type Vulnerability added in v0.1.25

type Vulnerability struct {

	// The unique identifier for the vulnerability.
	// e.g. CVE-2024-12345
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// aliases are other identifiers for this vulnerability.
	Aliases []string `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty"`
	// purls are the package URLs of the affected packages.
	Purls []string `protobuf:"bytes,3,rep,name=purls,proto3" json:"purls,omitempty"`
	// description is a short description of the vulnerability.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// details give additional textual details about the vulnerability.
	Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
	// severity is the value representing the severity of the vulnerability.
	Severity Vulnerability_Severity `` /* 127-byte string literal not displayed */
	// List of CVSS information about the exploitability of the vulnerability.
	Cvss []*Vulnerability_CVSS `protobuf:"bytes,7,rep,name=cvss,proto3" json:"cvss,omitempty"`
	// fix is the version and state of a potential fix for this vulnerability.
	Fix *Vulnerability_Fix `protobuf:"bytes,8,opt,name=fix,proto3" json:"fix,omitempty"`
	// URLs related to this vulnerability.
	RelatedUrls []string `protobuf:"bytes,9,rep,name=related_urls,json=relatedUrls,proto3" json:"related_urls,omitempty"`
	// locations are paths affected by the vulnerability.
	Locations []string `protobuf:"bytes,10,rep,name=locations,proto3" json:"locations,omitempty"`
	// contains filtered or unexported fields
}

func (*Vulnerability) Descriptor deprecated added in v0.1.25

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

Deprecated: Use Vulnerability.ProtoReflect.Descriptor instead.

func (*Vulnerability) GetAliases added in v0.1.25

func (x *Vulnerability) GetAliases() []string

func (*Vulnerability) GetCvss added in v0.1.25

func (x *Vulnerability) GetCvss() []*Vulnerability_CVSS

func (*Vulnerability) GetDescription added in v0.1.25

func (x *Vulnerability) GetDescription() string

func (*Vulnerability) GetDetails added in v0.1.25

func (x *Vulnerability) GetDetails() string

func (*Vulnerability) GetFix added in v0.1.25

func (x *Vulnerability) GetFix() *Vulnerability_Fix

func (*Vulnerability) GetId added in v0.1.25

func (x *Vulnerability) GetId() string

func (*Vulnerability) GetLocations added in v0.1.25

func (x *Vulnerability) GetLocations() []string

func (*Vulnerability) GetPurls added in v0.1.25

func (x *Vulnerability) GetPurls() []string

func (*Vulnerability) GetRelatedUrls added in v0.1.25

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

func (*Vulnerability) GetSeverity added in v0.1.25

func (x *Vulnerability) GetSeverity() Vulnerability_Severity

func (*Vulnerability) ProtoMessage added in v0.1.25

func (*Vulnerability) ProtoMessage()

func (*Vulnerability) ProtoReflect added in v0.1.25

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

func (*Vulnerability) Reset added in v0.1.25

func (x *Vulnerability) Reset()

func (*Vulnerability) String added in v0.1.25

func (x *Vulnerability) String() string

type VulnerabilityReference

type VulnerabilityReference struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"`
	Severity  string `protobuf:"bytes,3,opt,name=severity,proto3" json:"severity,omitempty"`
	// contains filtered or unexported fields
}

VulnerabilityReference is a reference to a vulnerability, containing minimal information to identify it.

func (*VulnerabilityReference) Descriptor deprecated

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

Deprecated: Use VulnerabilityReference.ProtoReflect.Descriptor instead.

func (*VulnerabilityReference) GetId

func (x *VulnerabilityReference) GetId() string

func (*VulnerabilityReference) GetReference

func (x *VulnerabilityReference) GetReference() string

func (*VulnerabilityReference) GetSeverity

func (x *VulnerabilityReference) GetSeverity() string

func (*VulnerabilityReference) ProtoMessage

func (*VulnerabilityReference) ProtoMessage()

func (*VulnerabilityReference) ProtoReflect

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

func (*VulnerabilityReference) Reset

func (x *VulnerabilityReference) Reset()

func (*VulnerabilityReference) String

func (x *VulnerabilityReference) String() string

type Vulnerability_CVSS added in v0.1.25

type Vulnerability_CVSS struct {

	// 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"`
	// 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 (*Vulnerability_CVSS) Descriptor deprecated added in v0.1.25

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

Deprecated: Use Vulnerability_CVSS.ProtoReflect.Descriptor instead.

func (*Vulnerability_CVSS) GetScore added in v0.1.25

func (x *Vulnerability_CVSS) GetScore() string

func (*Vulnerability_CVSS) GetVersion added in v0.1.25

func (x *Vulnerability_CVSS) GetVersion() string

func (*Vulnerability_CVSS) ProtoMessage added in v0.1.25

func (*Vulnerability_CVSS) ProtoMessage()

func (*Vulnerability_CVSS) ProtoReflect added in v0.1.25

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

func (*Vulnerability_CVSS) Reset added in v0.1.25

func (x *Vulnerability_CVSS) Reset()

func (*Vulnerability_CVSS) String added in v0.1.25

func (x *Vulnerability_CVSS) String() string

type Vulnerability_Fix added in v0.1.25

type Vulnerability_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 Vulnerability_Fix_State `protobuf:"varint,2,opt,name=state,proto3,enum=chainguard.platform.registry.Vulnerability_Fix_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*Vulnerability_Fix) Descriptor deprecated added in v0.1.25

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

Deprecated: Use Vulnerability_Fix.ProtoReflect.Descriptor instead.

func (*Vulnerability_Fix) GetState added in v0.1.25

func (*Vulnerability_Fix) GetVersions added in v0.1.25

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

func (*Vulnerability_Fix) ProtoMessage added in v0.1.25

func (*Vulnerability_Fix) ProtoMessage()

func (*Vulnerability_Fix) ProtoReflect added in v0.1.25

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

func (*Vulnerability_Fix) Reset added in v0.1.25

func (x *Vulnerability_Fix) Reset()

func (*Vulnerability_Fix) String added in v0.1.25

func (x *Vulnerability_Fix) String() string

type Vulnerability_Fix_State added in v0.1.25

type Vulnerability_Fix_State int32
const (
	Vulnerability_Fix_UNKNOWN   Vulnerability_Fix_State = 0
	Vulnerability_Fix_FIXED     Vulnerability_Fix_State = 1
	Vulnerability_Fix_NOT_FIXED Vulnerability_Fix_State = 2
	Vulnerability_Fix_WONT_FIX  Vulnerability_Fix_State = 3
)

func (Vulnerability_Fix_State) Descriptor added in v0.1.25

func (Vulnerability_Fix_State) Enum added in v0.1.25

func (Vulnerability_Fix_State) EnumDescriptor deprecated added in v0.1.25

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

Deprecated: Use Vulnerability_Fix_State.Descriptor instead.

func (Vulnerability_Fix_State) Number added in v0.1.25

func (Vulnerability_Fix_State) String added in v0.1.25

func (x Vulnerability_Fix_State) String() string

func (Vulnerability_Fix_State) Type added in v0.1.25

type Vulnerability_Severity added in v0.1.25

type Vulnerability_Severity int32
const (
	Vulnerability_UNKNOWN  Vulnerability_Severity = 0
	Vulnerability_LOW      Vulnerability_Severity = 1
	Vulnerability_MEDIUM   Vulnerability_Severity = 2
	Vulnerability_HIGH     Vulnerability_Severity = 3
	Vulnerability_CRITICAL Vulnerability_Severity = 4
)

func (Vulnerability_Severity) Descriptor added in v0.1.25

func (Vulnerability_Severity) Enum added in v0.1.25

func (Vulnerability_Severity) EnumDescriptor deprecated added in v0.1.25

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

Deprecated: Use Vulnerability_Severity.Descriptor instead.

func (Vulnerability_Severity) Number added in v0.1.25

func (Vulnerability_Severity) String added in v0.1.25

func (x Vulnerability_Severity) String() string

func (Vulnerability_Severity) Type added in v0.1.25

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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