Documentation ¶
Index ¶
- Constants
- type AnyDirSource
- type AnyDirTarget
- type Client
- func (c *Client) Close() (rerr error)
- func (c *Client) Dagger() *dagger.Client
- func (c *Client) DialContext(ctx context.Context, _, _ string) (conn net.Conn, err error)
- func (c *Client) Do(ctx context.Context, query string, opName string, variables map[string]any, ...) (rerr error)
- func (c *Client) ID() string
- func (c *Client) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type DirectConn
- type Params
- type SocketProvider
Constants ¶
View Source
const ( DockerImageProvider = "docker-image" // NOTE: this needs to be consistent with engineDefaultStateDir in internal/mage/engine.go DefaultStateDir = "/var/lib/dagger" DaggerCloudCacheToken = "_EXPERIMENTAL_DAGGER_CACHESERVICE_TOKEN" DaggerCloudToken = "DAGGER_CLOUD_TOKEN" GPUSupportEnvName = "_EXPERIMENTAL_DAGGER_GPU_SUPPORT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyDirSource ¶
type AnyDirSource struct{}
Local dir imports
func (AnyDirSource) DiffCopy ¶
func (s AnyDirSource) DiffCopy(stream filesync.FileSync_DiffCopyServer) error
func (AnyDirSource) Register ¶
func (s AnyDirSource) Register(server *grpc.Server)
func (AnyDirSource) TarStream ¶
func (s AnyDirSource) TarStream(stream filesync.FileSync_TarStreamServer) error
type AnyDirTarget ¶
type AnyDirTarget struct{}
Local dir exports
func (AnyDirTarget) DiffCopy ¶
func (AnyDirTarget) DiffCopy(stream filesync.FileSend_DiffCopyServer) (rerr error)
func (AnyDirTarget) Register ¶
func (t AnyDirTarget) Register(server *grpc.Server)
type Client ¶
func (*Client) Dagger ¶ added in v0.8.8
A client to the Dagger API hooked up directly with this engine client.
func (*Client) DialContext ¶
type DirectConn ¶ added in v0.8.8
func EngineConn ¶ added in v0.8.8
func EngineConn(engineClient *Client) DirectConn
func (DirectConn) Close ¶ added in v0.8.8
func (f DirectConn) Close() error
func (DirectConn) Host ¶ added in v0.8.8
func (f DirectConn) Host() string
type Params ¶
type Params struct { // The id of the server to connect to, or if blank a new one // should be started. ServerID string // Parent client IDs of this Dagger client. // // Used by Dagger-in-Dagger so that nested sessions can resolve addresses // passed from the parent. ParentClientIDs []string SecretToken string RunnerHost string // host of dagger engine runner serving buildkit apis UserAgent string DisableHostRW bool JournalFile string ProgrockWriter progrock.Writer EngineNameCallback func(string) CloudURLCallback func(string) // If this client is for a module function, this digest will be set in the // grpc context metadata for any api requests back to the engine. It's used by the API // server to determine which schema to serve and other module context metadata. ModuleContextDigest digest.Digest }
type SocketProvider ¶
type SocketProvider struct {
EnableHostNetworkAccess bool
}
func (SocketProvider) CheckAgent ¶
func (p SocketProvider) CheckAgent(ctx context.Context, req *sshforward.CheckAgentRequest) (*sshforward.CheckAgentResponse, error)
func (SocketProvider) ForwardAgent ¶
func (p SocketProvider) ForwardAgent(stream sshforward.SSH_ForwardAgentServer) error
func (SocketProvider) Register ¶
func (p SocketProvider) Register(server *grpc.Server)
Click to show internal directories.
Click to hide internal directories.