secrets

package
v0.0.113 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendRequest

func SendRequest(client *http.Client, URL string, method string, data []byte) *contracts.Response

Types

type Object

type Object struct {
	Byte       []byte
	String     string
	Definition map[string]interface{}
	Category   string

	Changelog diff.Changelog
	Raw       bool

	Owner   string
	Created time.Time
	Updated time.Time
	User    *authentication.User
	// contains filtered or unexported fields
}

func New

func New(client *client.Client, user *authentication.User) *Object

func (*Object) Add

func (obj *Object) Add(format *f.Format, data []byte) error

func (*Object) AddLocal added in v0.0.110

func (obj *Object) AddLocal(format *f.Format, data []byte) error

func (*Object) ChangeDetected

func (obj *Object) ChangeDetected() bool

func (*Object) Diff

func (obj *Object) Diff(definition []byte) bool

func (*Object) Exists

func (obj *Object) Exists() bool

func (*Object) Find

func (obj *Object) Find(format *f.Format) error

func (*Object) FindMany

func (obj *Object) FindMany(format *f.Format) (map[string]*Object, error)

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(format *f.Format) (bool, error)

func (*Object) Update

func (obj *Object) Update(format *f.Format, data []byte) error

Directories

Path Synopsis
Package mock_objects is a generated GoMock package.
Package mock_objects is a generated GoMock package.

Jump to

Keyboard shortcuts

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