Movatterモバイル変換


[0]ホーム

URL:


session

package
v0.26.2Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License:Apache-2.0Imports:23Imported by:1,298

Details

Repository

github.com/moby/buildkit

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcAllSessionIDsadded inv0.8.0

func AllSessionIDs(gGroup) (out []string)

funcMethodURL

func MethodURL(s, mstring)string

MethodURL returns a gRPC method URL for service and method name

Types

typeAttachable

type Attachable interface {Register(*grpc.Server)}

Attachable defines a feature that can be exposed on a session

typeCaller

type Caller interface {Context()context.ContextSupports(methodstring)boolConn() *grpc.ClientConnSharedKey()string}

Caller can invoke requests on the session

typeDialer

type Dialer func(ctxcontext.Context, protostring, meta map[string][]string) (net.Conn,error)

Dialer returns a connection that can be used by the session

typeGroupadded inv0.8.0

type Group interface {SessionIterator()Iterator}

funcNewGroupadded inv0.8.0

func NewGroup(ids ...string)Group

typeIteratoradded inv0.8.0

type Iterator interface {NextSession()string}

typeManager

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

Manager is a controller for accessing currently active sessions

funcNewManager

func NewManager() (*Manager,error)

NewManager returns a new Manager

func (*Manager)Anyadded inv0.8.0

func (*Manager)Get

func (sm *Manager) Get(ctxcontext.Context, idstring, noWaitbool) (Caller,error)

Get returns a session by ID

func (*Manager)HandleConn

func (sm *Manager) HandleConn(ctxcontext.Context, connnet.Conn, opts map[string][]string)error

HandleConn handles an incoming raw connection

func (*Manager)HandleHTTPRequest

func (sm *Manager) HandleHTTPRequest(ctxcontext.Context, whttp.ResponseWriter, r *http.Request)error

HandleHTTPRequest handles an incoming HTTP request

typeSession

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

Session is a long running connection between client and a daemon

funcNewSession

func NewSession(ctxcontext.Context, sharedKeystring) (*Session,error)

NewSession returns a new long running session

func (*Session)Allow

func (s *Session) Allow(aAttachable)

Allow enables a given service to be reachable through the grpc session

func (*Session)Close

func (s *Session) Close()error

Close closes the session

func (*Session)ID

func (s *Session) ID()string

ID returns unique identifier for the session

func (*Session)Run

func (s *Session) Run(ctxcontext.Context, dialerDialer)error

Run activates the session

Source Files

View all Source files

Directories

PathSynopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp