objects

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: GPL-3.0 Imports: 15 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindMany

func FindMany(client *http.Client, format FormatStructure) (map[string]*Object, error)

func SendRequest

func SendRequest(client *http.Client, URL string, method string, data map[string]string) *httpcontract.ResponseOperator

Types

type FormatStructure

type FormatStructure struct {
	Kind       string
	Group      string
	Identifier string
	Key        string
}

func Format

func Format(kind string, group string, identifier string, key string) FormatStructure

func FormatEmpty

func FormatEmpty() *FormatStructure

func (*FormatStructure) FromString

func (format *FormatStructure) FromString(f string) FormatStructure

func (*FormatStructure) ToBytes

func (format *FormatStructure) ToBytes() []byte

func (*FormatStructure) ToString

func (format *FormatStructure) ToString() string

type Object

type Object struct {
	Changelog diff.Changelog
	// contains filtered or unexported fields
}

func New

func New() *Object

func (*Object) Add

func (obj *Object) Add(client *http.Client, format FormatStructure, data string) error

func (*Object) ChangeDetected

func (obj *Object) ChangeDetected() bool

func (*Object) Diff

func (obj *Object) Diff(definition string) bool

func (*Object) Exists

func (obj *Object) Exists() bool

func (*Object) Find

func (obj *Object) Find(client *http.Client, format FormatStructure) error

func (*Object) FindAndConvert

func (obj *Object) FindAndConvert(client *http.Client, format FormatStructure, destination interface{})

func (*Object) GetDefinition

func (obj *Object) GetDefinition() map[string]any

func (*Object) GetDefinitionByte

func (obj *Object) GetDefinitionByte() []byte

func (*Object) GetDefinitionString

func (obj *Object) GetDefinitionString() string

func (*Object) Remove

func (obj *Object) Remove(client *http.Client, format FormatStructure) (bool, error)

func (*Object) Update

func (obj *Object) Update(client *http.Client, format FormatStructure, data string) error

Jump to

Keyboard shortcuts

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