ingest

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package ingest is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package ingest is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterChefIngesterHandler

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

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

func RegisterChefIngesterHandlerClient

func RegisterChefIngesterHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChefIngesterClient) error

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

func RegisterChefIngesterHandlerFromEndpoint

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

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

func RegisterChefIngesterServer

func RegisterChefIngesterServer(s *grpc.Server, srv ChefIngesterServer)

func RegisterJobSchedulerHandler

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

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

func RegisterJobSchedulerHandlerClient

func RegisterJobSchedulerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client JobSchedulerClient) error

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

func RegisterJobSchedulerHandlerFromEndpoint

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

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

func RegisterJobSchedulerServer

func RegisterJobSchedulerServer(s *grpc.Server, srv JobSchedulerServer)

Types

type ChefIngesterClient

type ChefIngesterClient interface {
	ProcessChefRun(ctx context.Context, in *request.Run, opts ...grpc.CallOption) (*response.ProcessChefRunResponse, error)
	ProcessChefAction(ctx context.Context, in *request.Action, opts ...grpc.CallOption) (*response.ProcessChefActionResponse, error)
	ProcessNodeDelete(ctx context.Context, in *request.Delete, opts ...grpc.CallOption) (*response.ProcessNodeDeleteResponse, error)
	ProcessMultipleNodeDeletes(ctx context.Context, in *request.MultipleNodeDeleteRequest, opts ...grpc.CallOption) (*response.ProcessMultipleNodeDeleteResponse, error)
	ProcessLivenessPing(ctx context.Context, in *request.Liveness, opts ...grpc.CallOption) (*response.ProcessLivenessResponse, error)
	GetVersion(ctx context.Context, in *version.VersionInfoRequest, opts ...grpc.CallOption) (*version.VersionInfo, error)
}

ChefIngesterClient is the client API for ChefIngester service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewChefIngesterClient

func NewChefIngesterClient(cc *grpc.ClientConn) ChefIngesterClient

type ChefIngesterServer

ChefIngesterServer is the server API for ChefIngester service.

type JobSchedulerClient

type JobSchedulerClient interface {
	GetStatusJobScheduler(ctx context.Context, in *request.GetStatusJobScheduler, opts ...grpc.CallOption) (*response.JobSchedulerStatus, error)
	ConfigureNodesMissingScheduler(ctx context.Context, in *request.SchedulerConfig, opts ...grpc.CallOption) (*response.ConfigureNodesMissingScheduler, error)
	ConfigureDeleteNodesScheduler(ctx context.Context, in *request.SchedulerConfig, opts ...grpc.CallOption) (*response.ConfigureDeleteNodesScheduler, error)
	ConfigureMissingNodesForDeletionScheduler(ctx context.Context, in *request.SchedulerConfig, opts ...grpc.CallOption) (*response.ConfigureMissingNodesForDeletionScheduler, error)
}

JobSchedulerClient is the client API for JobScheduler service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewJobSchedulerClient

func NewJobSchedulerClient(cc *grpc.ClientConn) JobSchedulerClient

type JobSchedulerServer

type JobSchedulerServer interface {
	GetStatusJobScheduler(context.Context, *request.GetStatusJobScheduler) (*response.JobSchedulerStatus, error)
	ConfigureNodesMissingScheduler(context.Context, *request.SchedulerConfig) (*response.ConfigureNodesMissingScheduler, error)
	ConfigureDeleteNodesScheduler(context.Context, *request.SchedulerConfig) (*response.ConfigureDeleteNodesScheduler, error)
	ConfigureMissingNodesForDeletionScheduler(context.Context, *request.SchedulerConfig) (*response.ConfigureMissingNodesForDeletionScheduler, error)
}

JobSchedulerServer is the server API for JobScheduler service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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