syncv1grpc

package
v1.5.1-20250106155733-... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SantaSync_Preflight_FullMethodName    = "/santa.sync.v1.SantaSync/Preflight"
	SantaSync_EventUpload_FullMethodName  = "/santa.sync.v1.SantaSync/EventUpload"
	SantaSync_RuleDownload_FullMethodName = "/santa.sync.v1.SantaSync/RuleDownload"
	SantaSync_Postflight_FullMethodName   = "/santa.sync.v1.SantaSync/Postflight"
)

Variables

View Source
var SantaSync_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "santa.sync.v1.SantaSync",
	HandlerType: (*SantaSyncServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Preflight",
			Handler:    _SantaSync_Preflight_Handler,
		},
		{
			MethodName: "EventUpload",
			Handler:    _SantaSync_EventUpload_Handler,
		},
		{
			MethodName: "RuleDownload",
			Handler:    _SantaSync_RuleDownload_Handler,
		},
		{
			MethodName: "Postflight",
			Handler:    _SantaSync_Postflight_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sync/v1.proto",
}

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

Functions

func RegisterSantaSyncServer

func RegisterSantaSyncServer(s grpc.ServiceRegistrar, srv SantaSyncServer)

Types

type SantaSyncClient

type SantaSyncClient interface {
	// Preflight is used to send current configuration data to the server and to
	// retrieve new configuration values from the server.
	Preflight(ctx context.Context, in *sync.PreflightRequest, opts ...grpc.CallOption) (*sync.PreflightResponse, error)
	// EventUpload sends details about blocked (or would-be-blocked) executions to
	// the server.
	EventUpload(ctx context.Context, in *sync.EventUploadRequest, opts ...grpc.CallOption) (*sync.EventUploadResponse, error)
	// RuleDownload retrieves new rules from the server.
	RuleDownload(ctx context.Context, in *sync.RuleDownloadRequest, opts ...grpc.CallOption) (*sync.RuleDownloadResponse, error)
	// Postflight sends status data back to the server after applying any new
	// configuration received in the previous stages.
	Postflight(ctx context.Context, in *sync.PostflightRequest, opts ...grpc.CallOption) (*sync.PostflightResponse, error)
}

SantaSyncClient is the client API for SantaSync 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.

SantaSync is service used to distribute configuration settings and rules to Santa.

func NewSantaSyncClient

func NewSantaSyncClient(cc grpc.ClientConnInterface) SantaSyncClient

type SantaSyncServer

type SantaSyncServer interface {
	// Preflight is used to send current configuration data to the server and to
	// retrieve new configuration values from the server.
	Preflight(context.Context, *sync.PreflightRequest) (*sync.PreflightResponse, error)
	// EventUpload sends details about blocked (or would-be-blocked) executions to
	// the server.
	EventUpload(context.Context, *sync.EventUploadRequest) (*sync.EventUploadResponse, error)
	// RuleDownload retrieves new rules from the server.
	RuleDownload(context.Context, *sync.RuleDownloadRequest) (*sync.RuleDownloadResponse, error)
	// Postflight sends status data back to the server after applying any new
	// configuration received in the previous stages.
	Postflight(context.Context, *sync.PostflightRequest) (*sync.PostflightResponse, error)
}

SantaSyncServer is the server API for SantaSync service. All implementations should embed UnimplementedSantaSyncServer for forward compatibility.

SantaSync is service used to distribute configuration settings and rules to Santa.

type UnimplementedSantaSyncServer

type UnimplementedSantaSyncServer struct{}

UnimplementedSantaSyncServer should 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 (UnimplementedSantaSyncServer) EventUpload

func (UnimplementedSantaSyncServer) Postflight

func (UnimplementedSantaSyncServer) Preflight

func (UnimplementedSantaSyncServer) RuleDownload

type UnsafeSantaSyncServer

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

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

Jump to

Keyboard shortcuts

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