api

package
v0.34.0-test1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2022 License: BSD-3-Clause Imports: 11 Imported by: 4

Documentation

Index

Constants

View Source
const (
	MediaTypeAny    = "*/*"
	MediaTypeCSV    = "text/csv"
	MediaTypeJSON   = "application/json"
	MediaTypeNDJSON = "application/x-ndjson"
	MediaTypeZJSON  = "application/x-zjson"
	MediaTypeZNG    = "application/x-zng"
	MediaTypeZSON   = "application/x-zson"
)
View Source
const RequestIDHeader = "X-Request-ID"

Variables

This section is empty.

Functions

func MediaTypeToFormat

func MediaTypeToFormat(s string, dflt string) (string, error)

MediaTypeToFormat returns the anyio format of the media type value s. If s is MediaTypeAny or undefined the default format dflt will be returned.

func RequestIDFromContext

func RequestIDFromContext(ctx context.Context) string

Types

type AuthIdentityResponse

type AuthIdentityResponse struct {
	TenantID string `json:"tenant_id" zed:"tenant_id"`
	UserID   string `json:"user_id" zed:"user_id"`
}

type AuthMethod

type AuthMethod string
const (
	AuthMethodNone  AuthMethod = ""
	AuthMethodAuth0 AuthMethod = "auth0"
)

type AuthMethodAuth0Details

type AuthMethodAuth0Details struct {
	// Audience is the value to use for the "aud" standard claim when
	// requesting an access token for this service.
	Audience string `json:"audience"`
	// ClientID is the public client id to use when interacting with
	// the above Auth0 domain.
	ClientID string `json:"client_id"`
	// Domain is the Auth0 domain (in url form) to use as the endpoint
	// for any oauth flows.
	Domain string `json:"domain"`
}

type AuthMethodResponse

type AuthMethodResponse struct {
	Kind  AuthMethod              `json:"kind" zed:"kind"`
	Auth0 *AuthMethodAuth0Details `json:"auth0,omitempty" zed:"auth0,omitempty"`
}

type BranchMergeRequest

type BranchMergeRequest struct {
	At string `json:"at"`
}

type BranchPostRequest

type BranchPostRequest struct {
	Name   string `json:"name"`
	Commit string `json:"commit"`
}

type CommitMessage

type CommitMessage struct {
	Author string `zed:"author"`
	Body   string `zed:"body"`
	Meta   string `zed:"meta"`
}

type CommitResponse

type CommitResponse struct {
	Commit   ksuid.KSUID `zed:"commit"`
	Warnings []string    `zed:"warnings"`
}

type DeleteRequest added in v0.32.0

type DeleteRequest struct {
	ObjectIDs []ksuid.KSUID `zed:"object_ids"`
}

type ErrUnsupportedMimeType added in v0.33.0

type ErrUnsupportedMimeType struct {
	Type string
}

func (*ErrUnsupportedMimeType) Error added in v0.33.0

func (m *ErrUnsupportedMimeType) Error() string

type Error

type Error struct {
	Type    string      `json:"type"`
	Kind    string      `json:"kind"`
	Message string      `json:"error"`
	Info    interface{} `json:"info,omitempty"`
}

func (Error) Error

func (e Error) Error() string

type EventBranch

type EventBranch struct {
	PoolID ksuid.KSUID `zed:"pool_id"`
	Branch string      `zed:"branch"`
}

type EventBranchCommit

type EventBranchCommit struct {
	CommitID ksuid.KSUID `zed:"commit_id"`
	PoolID   ksuid.KSUID `zed:"pool_id"`
	Branch   string      `zed:"branch"`
	Parent   string      `zed:"parent"`
}

type EventPool

type EventPool struct {
	PoolID ksuid.KSUID `zed:"pool_id"`
}

type IndexApplyRequest added in v0.32.0

type IndexApplyRequest struct {
	RuleName string        `zed:"rule_name"`
	Tags     []ksuid.KSUID `zed:"tags"`
}

type IndexRulesAddRequest added in v0.32.0

type IndexRulesAddRequest struct {
	Rules []index.Rule `zed:"rules"`
}

type IndexRulesDeleteRequest added in v0.32.0

type IndexRulesDeleteRequest struct {
	RuleIDs []string `zed:"rule_ids"`
}

type IndexRulesDeleteResponse added in v0.32.0

type IndexRulesDeleteResponse struct {
	Rules []index.Rule `zed:"rules"`
}

type IndexUpdateRequest added in v0.32.0

type IndexUpdateRequest struct {
	RuleNames []string `zed:"rule_names"`
}

type PoolPostRequest

type PoolPostRequest struct {
	Name       string       `json:"name"`
	Layout     order.Layout `json:"layout"`
	SeekStride int          `json:"seek_stride"`
	Thresh     int64        `json:"thresh"`
}

type PoolPutRequest

type PoolPutRequest struct {
	Name string `json:"name"`
}

type QueryChannelEnd

type QueryChannelEnd struct {
	ChannelID int `json:"channel_id" zed:"channel_id"`
}

type QueryChannelSet

type QueryChannelSet struct {
	ChannelID int `json:"channel_id" zed:"channel_id"`
}

type QueryError

type QueryError struct {
	Error string `json:"error" zed:"error"`
}

type QueryRequest

type QueryRequest struct {
	Query string              `json:"query"`
	Head  lakeparse.Commitish `json:"head"`
}

type QueryStats

type QueryStats struct {
	StartTime  nano.Ts `json:"start_time" zed:"start_time"`
	UpdateTime nano.Ts `json:"update_time" zed:"update_time"`
	zbuf.Progress
}

type QueryWarning

type QueryWarning struct {
	Warning string `json:"warning" zed:"warning"`
}

type VersionResponse

type VersionResponse struct {
	Version string `json:"version"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL