globalsearchv2

package
v0.0.0-...-a3be206 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 7

Documentation

Index

Constants

View Source
const ErrCodeAPICreation = "APICreationError"

ErrCodeAPICreation ...

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalSearchServiceAPI

type GlobalSearchServiceAPI interface {
	Searches() Searches
}

ICDServiceAPI is the Cloud Internet Services API ...

func New

New ...

type Item

type Item struct {
	Name        string   `json:"name,omitempty"`
	CRN         string   `json:"crn,omitempty"`
	ServiceName string   `json:"service_name,omitempty"`
	Region      string   `json:"region,omitempty"`
	Family      string   `json:"family,omitempty"`
	Type        string   `json:"type,omitempty"`
	ResourceId  string   `json:"resource_id,omitempty"`
	Tags        []string `json:"tags,omitempty"`
}

type SearchBody

type SearchBody struct {
	Query  string   `json:"query"`
	Fields []string `json:"fields,omitempty"`
	Token  string   `json:"token,omitempty"`
}

type SearchResult

type SearchResult struct {
	Items       []Item `json:"items"`
	MoreData    bool   `json:"more_data"`
	Token       string `json:"token"`
	FilterError bool   `json:"filter_error"`
	PartialData int    `json:"partial_data"`
}

type Searches

type Searches interface {
	PostQuery(searchBody SearchBody) (SearchResult, error)
}

Jump to

Keyboard shortcuts

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