Documentation ¶
Overview ¶
===----------------------------------------------------------------------===// Copyright © 2024 Apple Inc. and the Pkl project authors. 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. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ===----------------------------------------------------------------------===//
===----------------------------------------------------------------------===// Copyright © 2024 Apple Inc. and the Pkl project authors. 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. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ===----------------------------------------------------------------------===//
===----------------------------------------------------------------------===// Copyright © 2024 Apple Inc. and the Pkl project authors. 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. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ===----------------------------------------------------------------------===//
Index ¶
- type Checksums
- type CloseEvaluator
- type CreateEvaluator
- type CreateEvaluatorResponse
- type Evaluate
- type EvaluateResponse
- type IncomingMessage
- type ListModules
- type ListModulesResponse
- type ListResources
- type ListResourcesResponse
- type Log
- type ModuleReader
- type OutgoingMessage
- type PathElement
- type ProjectOrDependency
- type ReadModule
- type ReadModuleResponse
- type ReadResource
- type ReadResourceResponse
- type ResourceReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseEvaluator ¶
type CloseEvaluator struct {
EvaluatorId int64 `msgpack:"evaluatorId,omitempty"`
}
func (*CloseEvaluator) ToMsgPack ¶
func (msg *CloseEvaluator) ToMsgPack() ([]byte, error)
type CreateEvaluator ¶
type CreateEvaluator struct { RequestId int64 `msgpack:"requestId"` ResourceReaders []*ResourceReader `msgpack:"clientResourceReaders,omitempty"` ModuleReaders []*ModuleReader `msgpack:"clientModuleReaders,omitempty"` ModulePaths []string `msgpack:"modulePaths,omitempty"` Env map[string]string `msgpack:"env,omitempty"` Properties map[string]string `msgpack:"properties,omitempty"` OutputFormat string `msgpack:"outputFormat,omitempty"` AllowedModules []string `msgpack:"allowedModules,omitempty"` AllowedResources []string `msgpack:"allowedResources,omitempty"` RootDir string `msgpack:"rootDir,omitempty"` CacheDir string `msgpack:"cacheDir,omitempty"` Project *ProjectOrDependency `msgpack:"project,omitempty"` // Intentionally not used right now. Go has `context.WithTimeout` which is a more canonical way to handle timeouts. TimeoutSeconds int64 `msgpack:"timeoutSeconds,omitempty"` }
func (*CreateEvaluator) ToMsgPack ¶
func (msg *CreateEvaluator) ToMsgPack() ([]byte, error)
type CreateEvaluatorResponse ¶
type Evaluate ¶
type EvaluateResponse ¶
type IncomingMessage ¶
type IncomingMessage interface {
// contains filtered or unexported methods
}
func Decode ¶
func Decode(decoder *msgpack.Decoder) (IncomingMessage, error)
type ListModules ¶
type ListModulesResponse ¶
type ListModulesResponse struct { RequestId int64 `msgpack:"requestId"` EvaluatorId int64 `msgpack:"evaluatorId"` PathElements []*PathElement `msgpack:"pathElements,omitempty"` Error string `msgpack:"error,omitempty"` }
func (ListModulesResponse) ToMsgPack ¶
func (msg ListModulesResponse) ToMsgPack() ([]byte, error)
type ListResources ¶
type ListResourcesResponse ¶
type ListResourcesResponse struct { RequestId int64 `msgpack:"requestId"` EvaluatorId int64 `msgpack:"evaluatorId"` PathElements []*PathElement `msgpack:"pathElements,omitempty"` Error string `msgpack:"error,omitempty"` }
func (ListResourcesResponse) ToMsgPack ¶
func (msg ListResourcesResponse) ToMsgPack() ([]byte, error)
type ModuleReader ¶
type OutgoingMessage ¶
type PathElement ¶
type ProjectOrDependency ¶
type ProjectOrDependency struct { PackageUri string `msgpack:"packageUri,omitempty"` Type string `msgpack:"type"` ProjectFileUri string `msgpack:"projectFileUri,omitempty"` Checksums *Checksums `msgpack:"checksums,omitempty"` Dependencies map[string]*ProjectOrDependency `msgpack:"dependencies,omitempty"` }
type ReadModule ¶
type ReadModuleResponse ¶
type ReadModuleResponse struct { RequestId int64 `msgpack:"requestId"` EvaluatorId int64 `msgpack:"evaluatorId"` Contents string `msgpack:"contents,omitempty"` Error string `msgpack:"error,omitempty"` }
func (*ReadModuleResponse) ToMsgPack ¶
func (msg *ReadModuleResponse) ToMsgPack() ([]byte, error)
type ReadResource ¶
type ReadResourceResponse ¶
type ReadResourceResponse struct { RequestId int64 `msgpack:"requestId"` EvaluatorId int64 `msgpack:"evaluatorId"` Contents []byte `msgpack:"contents,omitempty"` Error string `msgpack:"error,omitempty"` }
func (*ReadResourceResponse) ToMsgPack ¶
func (msg *ReadResourceResponse) ToMsgPack() ([]byte, error)