-
Notifications
You must be signed in to change notification settings - Fork 8
/
provision.go
36 lines (30 loc) · 1013 Bytes
/
provision.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2022 Namespace Labs Inc; All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
package rtypes
import (
"google.golang.org/protobuf/proto"
schema "namespacelabs.dev/foundation/schema"
)
type LocalMapping struct {
// Relative to workspace root.
LocalPath string `json:"local_path,omitempty"`
// Absolute path within the host (overrides local_path).
HostPath string `json:"host_path,omitempty"`
// Must be an absolute path.
ContainerPath string `json:"container_path,omitempty"`
}
type RuntimeProvisionProps struct {
ProvisionInput []ProvisionInput
Invocation []*schema.SerializedInvocation
}
type ProvisionProps struct {
ProvisionInput []ProvisionInput
Invocation []*schema.SerializedInvocation
Extension []*schema.DefExtension
ServerExtension []*schema.ServerExtension
}
type ProvisionInput struct {
Aliases []string // Proto full name.
Message proto.Message
}