tagmanager

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, l *slog.Logger, accountID, containerID, workspaceID, measurementID string, opts ...ClientOption) (*Client, error)

func (*Client) AccountID

func (c *Client) AccountID() string

func (*Client) AccountPath

func (c *Client) AccountPath() string

func (*Client) ContainerID

func (c *Client) ContainerID() string

func (*Client) ContainerPath

func (c *Client) ContainerPath() string

func (*Client) CustomTemplate added in v0.2.4

func (c *Client) CustomTemplate(name string) (*tagmanager.CustomTemplate, error)

func (*Client) EnableBuiltInVariable added in v0.1.5

func (c *Client) EnableBuiltInVariable(typeName string) (*tagmanager.BuiltInVariable, error)

func (*Client) FolderName

func (c *Client) FolderName() string

func (*Client) GetBuiltInVariable added in v0.2.0

func (c *Client) GetBuiltInVariable(typeName string) (*tagmanager.BuiltInVariable, error)

func (*Client) GetClient added in v0.2.0

func (c *Client) GetClient(name string) (*tagmanager.Client, error)

func (*Client) GetFolder added in v0.2.0

func (c *Client) GetFolder(name string) (*tagmanager.Folder, error)

func (*Client) GetVariable added in v0.2.0

func (c *Client) GetVariable(name string) (*tagmanager.Variable, error)

func (*Client) LoadBuiltInVariables added in v0.2.0

func (c *Client) LoadBuiltInVariables() (map[string]*tagmanager.BuiltInVariable, error)

func (*Client) LoadClients added in v0.2.0

func (c *Client) LoadClients() (map[string]*tagmanager.Client, error)

func (*Client) LoadCustomTemplates added in v0.2.4

func (c *Client) LoadCustomTemplates() (map[string]*tagmanager.CustomTemplate, error)

func (*Client) LoadFolders added in v0.2.0

func (c *Client) LoadFolders() (map[string]*tagmanager.Folder, error)

func (*Client) LoadTags added in v0.2.0

func (c *Client) LoadTags() (map[string]*tagmanager.Tag, error)

func (*Client) LoadTriggers added in v0.2.0

func (c *Client) LoadTriggers() (map[string]*tagmanager.Trigger, error)

func (*Client) LoadVariables added in v0.2.0

func (c *Client) LoadVariables() (map[string]*tagmanager.Variable, error)

func (*Client) MeasurementID

func (c *Client) MeasurementID() string

func (*Client) Notes

func (c *Client) Notes(v any) string

func (*Client) Service

func (c *Client) Service() *tagmanager.Service

func (*Client) Tag

func (c *Client) Tag(name string) (*tagmanager.Tag, error)

func (*Client) Trigger

func (c *Client) Trigger(name string) (*tagmanager.Trigger, error)

func (*Client) UpsertClient added in v0.1.5

func (c *Client) UpsertClient(item *tagmanager.Client) (*tagmanager.Client, error)

func (*Client) UpsertCustomTemplate added in v0.2.4

func (c *Client) UpsertCustomTemplate(item *tagmanager.CustomTemplate) (*tagmanager.CustomTemplate, error)

func (*Client) UpsertFolder

func (c *Client) UpsertFolder(name string) (*tagmanager.Folder, error)

func (*Client) UpsertTag added in v0.1.5

func (c *Client) UpsertTag(item *tagmanager.Tag) (*tagmanager.Tag, error)

func (*Client) UpsertTrigger added in v0.1.5

func (c *Client) UpsertTrigger(item *tagmanager.Trigger) (*tagmanager.Trigger, error)

func (*Client) UpsertVariable

func (c *Client) UpsertVariable(item *tagmanager.Variable) (*tagmanager.Variable, error)

func (*Client) WorkspaceID

func (c *Client) WorkspaceID() string

func (*Client) WorkspacePath

func (c *Client) WorkspacePath() string

type ClientOption

type ClientOption func(*Client)

func ClientWithClientOptions

func ClientWithClientOptions(v ...option.ClientOption) ClientOption

func ClientWithFolderName

func ClientWithFolderName(v string) ClientOption

func ClientWithNotes

func ClientWithNotes(v string) ClientOption

func ClientWithRequestQuota added in v0.1.1

func ClientWithRequestQuota(v int) ClientOption

Directories

Path Synopsis
common
server
tag
web
tag

Jump to

Keyboard shortcuts

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