orchestrator

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_orchestrator_proto protoreflect.FileDescriptor
View Source
var PluginOrchestrator_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "orchestrator.PluginOrchestrator",
	HandlerType: (*PluginOrchestratorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetBlobs",
			Handler:    _PluginOrchestrator_GetBlobs_Handler,
		},
		{
			MethodName: "GetManifest",
			Handler:    _PluginOrchestrator_GetManifest_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "orchestrator.proto",
}

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

Functions

func RegisterPluginOrchestratorServer

func RegisterPluginOrchestratorServer(s grpc.ServiceRegistrar, srv PluginOrchestratorServer)

Types

type GetBlobsRequest

type GetBlobsRequest struct {

	// The artifact for which to retrieve blobs.
	Artifact *common.Descriptor `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"`
	// The name of the appropriate configured Store plugin to call.
	StorePluginName string `protobuf:"bytes,2,opt,name=storePluginName,proto3" json:"storePluginName,omitempty"`
	// contains filtered or unexported fields
}

The request for GetBlobContent

func (*GetBlobsRequest) Descriptor deprecated

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

Deprecated: Use GetBlobsRequest.ProtoReflect.Descriptor instead.

func (*GetBlobsRequest) GetArtifact

func (x *GetBlobsRequest) GetArtifact() *common.Descriptor

func (*GetBlobsRequest) GetStorePluginName

func (x *GetBlobsRequest) GetStorePluginName() string

func (*GetBlobsRequest) ProtoMessage

func (*GetBlobsRequest) ProtoMessage()

func (*GetBlobsRequest) ProtoReflect

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

func (*GetBlobsRequest) Reset

func (x *GetBlobsRequest) Reset()

func (*GetBlobsRequest) String

func (x *GetBlobsRequest) String() string

type GetBlobsResponse

type GetBlobsResponse struct {
	Artifact *common.Descriptor `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"`
	Content  [][]byte           `protobuf:"bytes,2,rep,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

The response for GetBlobContent

func (*GetBlobsResponse) Descriptor deprecated

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

Deprecated: Use GetBlobsResponse.ProtoReflect.Descriptor instead.

func (*GetBlobsResponse) GetArtifact

func (x *GetBlobsResponse) GetArtifact() *common.Descriptor

func (*GetBlobsResponse) GetContent

func (x *GetBlobsResponse) GetContent() [][]byte

func (*GetBlobsResponse) ProtoMessage

func (*GetBlobsResponse) ProtoMessage()

func (*GetBlobsResponse) ProtoReflect

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

func (*GetBlobsResponse) Reset

func (x *GetBlobsResponse) Reset()

func (*GetBlobsResponse) String

func (x *GetBlobsResponse) String() string

type GetManifestRequest

type GetManifestRequest struct {

	// The subject.
	Subject *common.Descriptor `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// The referrer for which the manifest is being requested.
	Referrer *common.Referrer `protobuf:"bytes,2,opt,name=referrer,proto3" json:"referrer,omitempty"`
	// The name of the appropriate configured Store plugin to call.
	StorePluginName string `protobuf:"bytes,3,opt,name=storePluginName,proto3" json:"storePluginName,omitempty"`
	// contains filtered or unexported fields
}

The request for GetManifest

func (*GetManifestRequest) Descriptor deprecated

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

Deprecated: Use GetManifestRequest.ProtoReflect.Descriptor instead.

func (*GetManifestRequest) GetReferrer

func (x *GetManifestRequest) GetReferrer() *common.Referrer

func (*GetManifestRequest) GetStorePluginName

func (x *GetManifestRequest) GetStorePluginName() string

func (*GetManifestRequest) GetSubject

func (x *GetManifestRequest) GetSubject() *common.Descriptor

func (*GetManifestRequest) ProtoMessage

func (*GetManifestRequest) ProtoMessage()

func (*GetManifestRequest) ProtoReflect

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

func (*GetManifestRequest) Reset

func (x *GetManifestRequest) Reset()

func (*GetManifestRequest) String

func (x *GetManifestRequest) String() string

type GetManifestResponse

type GetManifestResponse struct {

	// The fully realized Manifest object for the referrer.
	Manifest *common.Manifest `protobuf:"bytes,1,opt,name=manifest,proto3" json:"manifest,omitempty"`
	// contains filtered or unexported fields
}

The response for GetManifest

func (*GetManifestResponse) Descriptor deprecated

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

Deprecated: Use GetManifestResponse.ProtoReflect.Descriptor instead.

func (*GetManifestResponse) GetManifest

func (x *GetManifestResponse) GetManifest() *common.Manifest

func (*GetManifestResponse) ProtoMessage

func (*GetManifestResponse) ProtoMessage()

func (*GetManifestResponse) ProtoReflect

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

func (*GetManifestResponse) Reset

func (x *GetManifestResponse) Reset()

func (*GetManifestResponse) String

func (x *GetManifestResponse) String() string

type PluginOrchestratorClient

type PluginOrchestratorClient interface {
	// Fetch the contents of blob.
	GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (*GetBlobsResponse, error)
	// Fetch the contents of a given manifest.
	GetManifest(ctx context.Context, in *GetManifestRequest, opts ...grpc.CallOption) (*GetManifestResponse, error)
}

PluginOrchestratorClient is the client API for PluginOrchestrator service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PluginOrchestratorServer

type PluginOrchestratorServer interface {
	// Fetch the contents of blob.
	GetBlobs(context.Context, *GetBlobsRequest) (*GetBlobsResponse, error)
	// Fetch the contents of a given manifest.
	GetManifest(context.Context, *GetManifestRequest) (*GetManifestResponse, error)
	// contains filtered or unexported methods
}

PluginOrchestratorServer is the server API for PluginOrchestrator service. All implementations must embed UnimplementedPluginOrchestratorServer for forward compatibility

type UnimplementedPluginOrchestratorServer

type UnimplementedPluginOrchestratorServer struct {
}

UnimplementedPluginOrchestratorServer must be embedded to have forward compatible implementations.

func (UnimplementedPluginOrchestratorServer) GetBlobs

func (UnimplementedPluginOrchestratorServer) GetManifest

type UnsafePluginOrchestratorServer

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

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

type VerifySubjectRequest

type VerifySubjectRequest struct {

	// The subject under verification.
	SubjectReference string `protobuf:"bytes,1,opt,name=subjectReference,proto3" json:"subjectReference,omitempty"`
	// The configurations of the store plugins to be used.
	StoreConfigurations []*_struct.Struct `protobuf:"bytes,2,rep,name=storeConfigurations,proto3" json:"storeConfigurations,omitempty"`
	// The configurations of the verifier plugins to be used.
	VerifierConfigurations []*_struct.Struct `protobuf:"bytes,3,rep,name=verifierConfigurations,proto3" json:"verifierConfigurations,omitempty"`
	// contains filtered or unexported fields
}

The request for VerifySubject

func (*VerifySubjectRequest) Descriptor deprecated

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

Deprecated: Use VerifySubjectRequest.ProtoReflect.Descriptor instead.

func (*VerifySubjectRequest) GetStoreConfigurations

func (x *VerifySubjectRequest) GetStoreConfigurations() []*_struct.Struct

func (*VerifySubjectRequest) GetSubjectReference

func (x *VerifySubjectRequest) GetSubjectReference() string

func (*VerifySubjectRequest) GetVerifierConfigurations

func (x *VerifySubjectRequest) GetVerifierConfigurations() []*_struct.Struct

func (*VerifySubjectRequest) ProtoMessage

func (*VerifySubjectRequest) ProtoMessage()

func (*VerifySubjectRequest) ProtoReflect

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

func (*VerifySubjectRequest) Reset

func (x *VerifySubjectRequest) Reset()

func (*VerifySubjectRequest) String

func (x *VerifySubjectRequest) String() string

type VerifySubjectResponse

type VerifySubjectResponse struct {

	// The subject under verification
	SubjectReference string `protobuf:"bytes,1,opt,name=subjectReference,proto3" json:"subjectReference,omitempty"`
	// The verification results for all artifacts which reference the given subject.
	Results []*VerifySubjectResponse_ReferrerVerificationReport `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

The response for VerifySubject

func (*VerifySubjectResponse) Descriptor deprecated

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

Deprecated: Use VerifySubjectResponse.ProtoReflect.Descriptor instead.

func (*VerifySubjectResponse) GetResults

func (*VerifySubjectResponse) GetSubjectReference

func (x *VerifySubjectResponse) GetSubjectReference() string

func (*VerifySubjectResponse) ProtoMessage

func (*VerifySubjectResponse) ProtoMessage()

func (*VerifySubjectResponse) ProtoReflect

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

func (*VerifySubjectResponse) Reset

func (x *VerifySubjectResponse) Reset()

func (*VerifySubjectResponse) String

func (x *VerifySubjectResponse) String() string

type VerifySubjectResponse_ReferrerVerificationReport

type VerifySubjectResponse_ReferrerVerificationReport struct {

	// The artifact being verified
	Referrer *common.Referrer `protobuf:"bytes,1,opt,name=referrer,proto3" json:"referrer,omitempty"`
	// The results of all verifier evaluation for the artifact.
	Reports []*VerifySubjectResponse_VerificationReport `protobuf:"bytes,2,rep,name=reports,proto3" json:"reports,omitempty"`
	// Verification results for all nested artifacts (artifacts which refer to this one).
	Children []*VerifySubjectResponse_ReferrerVerificationReport `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

A collection of verification results for a single Referrer.

func (*VerifySubjectResponse_ReferrerVerificationReport) Descriptor deprecated

Deprecated: Use VerifySubjectResponse_ReferrerVerificationReport.ProtoReflect.Descriptor instead.

func (*VerifySubjectResponse_ReferrerVerificationReport) GetChildren

func (*VerifySubjectResponse_ReferrerVerificationReport) GetReferrer

func (*VerifySubjectResponse_ReferrerVerificationReport) GetReports

func (*VerifySubjectResponse_ReferrerVerificationReport) ProtoMessage

func (*VerifySubjectResponse_ReferrerVerificationReport) ProtoReflect

func (*VerifySubjectResponse_ReferrerVerificationReport) Reset

func (*VerifySubjectResponse_ReferrerVerificationReport) String

type VerifySubjectResponse_VerificationReport

type VerifySubjectResponse_VerificationReport struct {

	// The name of the verifier which evaluated the artifact.
	VerifierName string `protobuf:"bytes,1,opt,name=verifierName,proto3" json:"verifierName,omitempty"`
	// Whether the artifact passed validation
	Valid bool `protobuf:"varint,2,opt,name=valid,proto3" json:"valid,omitempty"`
	// Details surrounding why the verifier considered the artifact valid or invalid
	Reasons []string `protobuf:"bytes,3,rep,name=reasons,proto3" json:"reasons,omitempty"`
	// Custom metadata realized as a part of verification process.
	// These properties can be used to compose more robust constraints.
	Data []*VerifySubjectResponse_VerificationReport_ExtensionData `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

what a single verifier returns

func (*VerifySubjectResponse_VerificationReport) Descriptor deprecated

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

Deprecated: Use VerifySubjectResponse_VerificationReport.ProtoReflect.Descriptor instead.

func (*VerifySubjectResponse_VerificationReport) GetData

func (*VerifySubjectResponse_VerificationReport) GetReasons

func (*VerifySubjectResponse_VerificationReport) GetValid

func (*VerifySubjectResponse_VerificationReport) GetVerifierName

func (x *VerifySubjectResponse_VerificationReport) GetVerifierName() string

func (*VerifySubjectResponse_VerificationReport) ProtoMessage

func (*VerifySubjectResponse_VerificationReport) ProtoReflect

func (*VerifySubjectResponse_VerificationReport) Reset

func (*VerifySubjectResponse_VerificationReport) String

type VerifySubjectResponse_VerificationReport_ExtensionData

type VerifySubjectResponse_VerificationReport_ExtensionData struct {
	Values map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*VerifySubjectResponse_VerificationReport_ExtensionData) Descriptor deprecated

Deprecated: Use VerifySubjectResponse_VerificationReport_ExtensionData.ProtoReflect.Descriptor instead.

func (*VerifySubjectResponse_VerificationReport_ExtensionData) GetValues

func (*VerifySubjectResponse_VerificationReport_ExtensionData) ProtoMessage

func (*VerifySubjectResponse_VerificationReport_ExtensionData) ProtoReflect

func (*VerifySubjectResponse_VerificationReport_ExtensionData) Reset

func (*VerifySubjectResponse_VerificationReport_ExtensionData) String

Jump to

Keyboard shortcuts

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