GuestPolicy

class GuestPolicy : GeneratedMessage, GuestPolicyOrBuilder
# Language Settings: Policy

Guest "policies" define the access rights granted to a given guest language VM. Policies are defined by the host and
enforced at runtime.
Protobuf type elide.meta.GuestPolicy

Types

Link copied to clipboard
class Builder : GeneratedMessage.Builder<BuilderT> , GuestPolicyOrBuilder
# Language Settings: Policy

Guest "policies" define the access rights granted to a given guest language VM. Policies are defined by the host and
enforced at runtime.
Protobuf type elide.meta.GuestPolicy
Link copied to clipboard
enum PolicyCase : Internal.EnumLite, AbstractMessageLite.InternalOneOfEnum

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
Link copied to clipboard
open fun getAllFields(): Map<Descriptors.FieldDescriptor, Any>
Link copied to clipboard
open fun getAllowAll(): Boolean
## Policies: Allow-all.

Allows all host access for the guest language. This means the guest language can load classes, access I/O, and
perform other potentially sensitive or dangerous operations. Exercise extreme caution enabling this policy.
bool allow_all = 1;
Link copied to clipboard
Whether to allow the guest language to call native code. Defaults to `false`.
bool allow_native = 5;
Link copied to clipboard
Link copied to clipboard
abstract fun getDefaultInstanceForType(): MessageLite
Link copied to clipboard
fun getDescriptor(): Descriptors.Descriptor
Link copied to clipboard
open fun getDescriptorForType(): Descriptors.Descriptor
Link copied to clipboard
Maximum execution time to allow for execution within this guest; there is a sensible Elide-wide default if
unspecified. Expressed in a count of milliseconds. `0` disables the restriction.
uint64 execution_time = 11;
Link copied to clipboard
open fun getField(field: Descriptors.FieldDescriptor): Any
Link copied to clipboard
open fun getHostEnv(): Boolean
Whether to allow the guest language to access host-side environment. Defaults to `false`.
bool host_env = 8;
Link copied to clipboard
open fun getHostIo(): Boolean
Whether to allow the guest language to access host-side I/O. Defaults to `false`.
bool host_io = 6;
Link copied to clipboard
open fun getHostNet(): Boolean
Whether to allow the guest language to access host-side networking. Defaults to `false`.
bool host_net = 7;
Link copied to clipboard
## Policies: Integrated.

Allows some host access for the guest language; this includes values shared in callbacks and invocation bindings.
The guest language can only load certain classes, cannot access host I/O (by default), and is *allowed* to call
native code; this mode should be used when all executing code is under the developer's control.
bool integrated = 2;
Link copied to clipboard
open fun getIsolated(): Boolean
## Policies: Isolated.

Allows no host access for the guest language. This means the guest language cannot load classes, access host I/O,
or perform other potentially sensitive or dangerous operations. Resources used by guest languages can be capped
or otherwise controlled.
bool isolated = 3;
Link copied to clipboard
open fun getMaxMemory(): Int
Maximum memory to allow for allocation within this guest language; there is a sensible Elide-wide default if
unspecified. Expressed as a count of bytes. `0` disables the restriction.
uint32 max_memory = 9;
Link copied to clipboard
open fun getOneofFieldDescriptor(oneof: Descriptors.OneofDescriptor): Descriptors.FieldDescriptor
Link copied to clipboard
abstract fun getParserForType(): Parser<out Message>
abstract fun getParserForType(): Parser<out MessageLite>
open fun getParserForType(): Parser<GuestPolicy>
Link copied to clipboard
Link copied to clipboard
open fun getProcesses(): Boolean
Whether to allow process control for the guest; the guest will be able to launch OS-native processes if this flag
is activated. In most secure operating modes this flag defaults to being off.
bool processes = 12;
Link copied to clipboard
open fun getRepeatedField(field: Descriptors.FieldDescriptor, index: Int): Any
Link copied to clipboard
open fun getRepeatedFieldCount(field: Descriptors.FieldDescriptor): Int
Link copied to clipboard
open fun getSandbox(): Boolean
## Policies: Sandbox.

Like the `ISOLATED` policy, but applies a stronger sandbox; allows no host access for the guest language. This
means the guest language cannot load classes, access host I/O, or perform other potentially sensitive or
dangerous operations. Resources used by guest languages can be capped or otherwise controlled.

If available, hardware isolation is used; otherwise, software isolation is used.
bool sandbox = 4;
Link copied to clipboard
Link copied to clipboard
open fun getStackDepth(): Int
Maximum stack depth to allow for execution within this guest; there is a sensible Elide-wide default if
unspecified. Specified as a numeric count. `0` disables the restriction.
uint32 stack_depth = 10;
Link copied to clipboard
open fun getThreads(): Boolean
Whether to allow thread control for the guest; the guest will be able to launch OS-native threads if this flag is
activated. In most secure operating modes this flag defaults to being off.
bool threads = 13;
Link copied to clipboard
open fun getUnknownFields(): UnknownFieldSet
Link copied to clipboard
open fun hasAllowAll(): Boolean
## Policies: Allow-all.

Allows all host access for the guest language. This means the guest language can load classes, access I/O, and
perform other potentially sensitive or dangerous operations. Exercise extreme caution enabling this policy.
bool allow_all = 1;
Link copied to clipboard
open fun hasField(field: Descriptors.FieldDescriptor): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
## Policies: Integrated.

Allows some host access for the guest language; this includes values shared in callbacks and invocation bindings.
The guest language can only load certain classes, cannot access host I/O (by default), and is *allowed* to call
native code; this mode should be used when all executing code is under the developer's control.
bool integrated = 2;
Link copied to clipboard
open fun hasIsolated(): Boolean
## Policies: Isolated.

Allows no host access for the guest language. This means the guest language cannot load classes, access host I/O,
or perform other potentially sensitive or dangerous operations. Resources used by guest languages can be capped
or otherwise controlled.
bool isolated = 3;
Link copied to clipboard
open fun hasOneof(oneof: Descriptors.OneofDescriptor): Boolean
Link copied to clipboard
open fun hasSandbox(): Boolean
## Policies: Sandbox.

Like the `ISOLATED` policy, but applies a stronger sandbox; allows no host access for the guest language. This
means the guest language cannot load classes, access host I/O, or perform other potentially sensitive or
dangerous operations. Resources used by guest languages can be capped or otherwise controlled.

If available, hardware isolation is used; otherwise, software isolation is used.
bool sandbox = 4;
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <ContainingT : Message?, T> newFileScopedGeneratedExtension(singularType: Class<out Any>, defaultInstance: Message): GeneratedMessage.GeneratedExtension<ContainingT, T>
Link copied to clipboard
open fun <ContainingT : Message?, T> newMessageScopedGeneratedExtension(scope: Message, descriptorIndex: Int, singularType: Class<out Any>, defaultInstance: Message): GeneratedMessage.GeneratedExtension<ContainingT, T>
Link copied to clipboard
open fun parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): GuestPolicy
Link copied to clipboard
open fun parseFrom(data: Array<Byte>): GuestPolicy
open fun parseFrom(data: ByteString): GuestPolicy
open fun parseFrom(input: CodedInputStream): GuestPolicy
open fun parseFrom(data: Array<Byte>, extensionRegistry: ExtensionRegistryLite): GuestPolicy
open fun parseFrom(data: ByteString, extensionRegistry: ExtensionRegistryLite): GuestPolicy
open fun parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): GuestPolicy
open fun parseFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): GuestPolicy
open fun parseFrom(data: ByteBuffer, extensionRegistry: ExtensionRegistryLite): GuestPolicy
Link copied to clipboard
open fun parser(): Parser<GuestPolicy>
Link copied to clipboard
Link copied to clipboard
open fun toByteArray(): Array<Byte>
Link copied to clipboard
open fun toByteString(): ByteString
Link copied to clipboard
Link copied to clipboard
open fun writeDelimitedTo(output: OutputStream)
Link copied to clipboard
open fun writeTo(output: CodedOutputStream)