saved_objects

package
v0.11.8 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reference

type Reference struct {
	ID   string `json:"id"`
	Name string `json:"name,omitempty"`
	Type string `json:"type"`
}

type SavedObjectOSD

type SavedObjectOSD struct {
	Type string `json:"type,omitempty"`
	ID   string `json:"id,omitempty"`
	SavedObjectPostPayload
}

type SavedObjectPostPayload

type SavedObjectPostPayload struct {
	Attributes map[string]any `json:"attributes,omitempty"`
	References []Reference    `json:"references,omitempty"`
}

type SavedObjectTF

type SavedObjectTF struct {
	Type string `json:"type,omitempty"`
	ID   string `json:"id,omitempty"`
	// attributes is a string encoded json
	Attributes string      `json:"attributes,omitempty"`
	References []Reference `json:"references,omitempty"`
}

type SavedObjectsProvider

type SavedObjectsProvider struct {
	BaseUrl string

	SyncIndexPatternFields bool
	// contains filtered or unexported fields
}

func NewSavedObjectsProvider

func NewSavedObjectsProvider(baseUrl string, client *http.Client, syncIndexPatternFields bool) *SavedObjectsProvider

func (*SavedObjectsProvider) DeleteObject

func (*SavedObjectsProvider) GetObject

func (*SavedObjectsProvider) SaveObject

func (*SavedObjectsProvider) URL

func (provider *SavedObjectsProvider) URL(path string) string

Jump to

Keyboard shortcuts

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