Documentation
¶
Index ¶
- Constants
- Variables
- func AppliedMarkerMatches(instanceName string) (bool, error)
- func ClearEnvKeys(payload Payload) []string
- func Env(payload Payload) map[string]string
- func ExtensionAPIURL(payload Payload) string
- func FirstNonEmpty(values ...string) string
- func MetroAPIURL(payload Payload) string
- func ReadAppliedMarker() (string, error)
- func WaitAppliedMarker(instanceName string, timeout time.Duration) error
- func WaitEnabled() (bool, error)
- func WriteAppliedMarker(instanceName string) error
- func WritePayload(payload Payload) error
- type ExtensionConfig
- type Payload
Constants ¶
View Source
const ( WaitEnv = "KERNEL_FORK_IDENTITY_WAIT" DefaultReadyFile = "/run/kernel/fork-identity-ready" DefaultPayloadFile = "/run/kernel/fork-identity.json" DefaultAppliedFile = "/run/kernel/fork-identity-applied" )
View Source
const MaxPayloadBytes = 64 * 1024
Variables ¶
View Source
var ( ReadyFile = DefaultReadyFile PayloadFile = DefaultPayloadFile AppliedFile = DefaultAppliedFile )
View Source
var KnownEnvKeys = []string{
"INSTANCE_NAME",
"INST_NAME",
"METRO_NAME",
"XDS_SERVER",
"KERNEL_INSTANCE_JWT",
"METRO_API_URL",
"KERNEL_METRO_API_BASE_URL",
"SESSION_INTEL_URL",
"S2_STREAM",
}
Functions ¶
func AppliedMarkerMatches ¶
func ClearEnvKeys ¶
func ExtensionAPIURL ¶
func FirstNonEmpty ¶
func MetroAPIURL ¶
func ReadAppliedMarker ¶
func WaitEnabled ¶
func WriteAppliedMarker ¶
func WritePayload ¶
Types ¶
type ExtensionConfig ¶
type ExtensionConfig struct {
InstanceName string `json:"instanceName"`
MetroAPIURL string `json:"metroApiUrl"`
}
func ExtensionConfigFromPayload ¶
func ExtensionConfigFromPayload(payload Payload) ExtensionConfig
Click to show internal directories.
Click to hide internal directories.