Documentation
¶
Overview ¶
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. vespa api-key command Author: mpolden
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. vespa auth show command Author: arnej
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. vespa cert command Author: mpolden
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
Index ¶
- type CLI
- type Config
- type DocumentBlob
- type ErrCLI
- type HandlersInfo
- type KeyPair
- type OperationResult
- func Failure(message string) OperationResult
- func FailureWithDetail(message string, detail string) OperationResult
- func FailureWithPayload(message string, payload string) OperationResult
- func Success(message string) OperationResult
- func SuccessWithPayload(message string, payload string) OperationResult
- type VespaVisitOutput
- type Waiter
- func (w *Waiter) DeployService(target vespa.Target) (*vespa.Service, error)
- func (w *Waiter) Deployment(target vespa.Target, wantedID int64) (int64, error)
- func (w *Waiter) FastWaitOn(target vespa.Target) bool
- func (w *Waiter) Service(target vespa.Target, cluster string) (*vespa.Service, error)
- func (w *Waiter) Services(target vespa.Target) ([]*vespa.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct { // Environment holds the process environment. Environment map[string]string Stdin io.ReadWriter Stdout io.Writer Stderr io.Writer // contains filtered or unexported fields }
CLI holds the Vespa CLI command tree, configuration and dependencies.
type DocumentBlob ¶
type DocumentBlob struct {
// contains filtered or unexported fields
}
func (*DocumentBlob) MarshalJSON ¶
func (d *DocumentBlob) MarshalJSON() ([]byte, error)
func (*DocumentBlob) UnmarshalJSON ¶
func (d *DocumentBlob) UnmarshalJSON(data []byte) error
type ErrCLI ¶
type ErrCLI struct { Status int // contains filtered or unexported fields }
ErrCLI is an error returned to the user. It wraps an exit status, a regular error and optional hints for resolving the error.
type HandlersInfo ¶
type KeyPair ¶
type KeyPair struct { KeyPair tls.Certificate RootCertificates []byte CertificateFile string PrivateKeyFile string }
type OperationResult ¶
type OperationResult struct { Success bool Message string // Mandatory message Detail string // Optional detail message Payload string // Optional payload - may be present whether or not the operation was success }
func Failure ¶
func Failure(message string) OperationResult
func FailureWithDetail ¶
func FailureWithDetail(message string, detail string) OperationResult
func FailureWithPayload ¶
func FailureWithPayload(message string, payload string) OperationResult
func Success ¶
func Success(message string) OperationResult
func SuccessWithPayload ¶
func SuccessWithPayload(message string, payload string) OperationResult
type VespaVisitOutput ¶
type VespaVisitOutput struct { PathId string `json:"pathId"` Documents []DocumentBlob `json:"documents"` DocumentCount int `json:"documentCount"` Continuation string `json:"continuation"` ErrorMsg string `json:"message"` }
type Waiter ¶
type Waiter struct { // Timeout specifies how long we should wait for an operation to complete. Timeout time.Duration // TODO(mpolden): Consider making this a budget // contains filtered or unexported fields }
Waiter waits for Vespa services to become ready, within a timeout.
func (*Waiter) DeployService ¶
DeployService returns the service providing the deploy API on given target,
func (*Waiter) Deployment ¶
Deployment waits for a deployment to become ready, returning the ID of the converged deployment.
func (*Waiter) FastWaitOn ¶
FastWaitOn returns whether we should use a short default timeout for given target.