server

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SealosShimSock is the CRI socket the shim listens on.
	SealosShimSock = "/var/run/image-cri-shim.sock"
	// DirPermissions is the permissions to create the directory for sockets with.
	DirPermissions = 0711
)

Variables

View Source
var ConfigFile string
View Source
var Debug = false
View Source
var SealosHub = ""
View Source
var ShimImages []string

Functions

func RunLoad added in v0.0.7

func RunLoad()

Types

type Options

type Options struct {
	// Socket is the socket where shim listens on
	Socket string
	// User is the user ID for our gRPC socket.
	User int
	// Group is the group ID for our gRPC socket.
	Group int
	// Mode is the permission mode bits for our gRPC socket.
	Mode os.FileMode
}

type Server

type Server interface {
	RegisterImageService(serviceServer k8sapi.ImageServiceServer) error

	Chown(uid, gid int) error

	Chmod(mode os.FileMode) error

	Start() error

	Stop()
}

func NewServer

func NewServer(options Options) (Server, error)

Jump to

Keyboard shortcuts

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