service

package
v0.0.0-...-b8de061 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Names = []string{
	"machine.v1alpha1.MachineService.ScanMachine",
	"machine.v1alpha1.MachineService.Install",
	"machine.v1alpha1.MachineService.ListMachines",
	"machine.v1alpha1.MachineService.UpdateMachineStatus",
	"machine.v1alpha1.MachineService.AddPackageVersion",
	"machine.v1alpha1.MachineService.SetPackageVersion",
	"machine.v1alpha1.MachineService.RemovePackageVersion",
	"machine.v1alpha1.MachineService.GetJob",
	"machinetype.v1alpha1.MachineTypeService.Scan",
	"machinetype.v1alpha1.MachineTypeService.ListMachineTypes",
	"machinetype.v1alpha1.MachineTypeService.UpdateMachineTypeStatus",
	"machinetype.v1alpha1.MachineTypeService.AddMachineGroup",
	"machinetype.v1alpha1.MachineTypeService.RemoveMachineGroup",
	"machinetype.v1alpha1.MachineTypeService.GetJob",
}

Functions

This section is empty.

Types

type GrpcServer

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

func NewGrpcServer

func NewGrpcServer(opts Options) *GrpcServer

func (*GrpcServer) Start

func (s *GrpcServer) Start(ctx context.Context) error

type Options

type Options struct {
	Cfg  *rest.Config
	Log  *slog.Logger
	Host string
	Port int

	Namespace     string
	JobsConfig    string
	Workers       uint64
	Horizon       time.Duration
	QueueCapacity uint64
}

Directories

Path Synopsis
machine
machinetype

Jump to

Keyboard shortcuts

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