Documentation ¶
Index ¶
- Variables
- type Option
- type TagManager
- func (t *TagManager) AccountID() string
- func (t *TagManager) AccountPath() string
- func (t *TagManager) ContainerID() string
- func (t *TagManager) ContainerPath() string
- func (t *TagManager) CustomTemplate(name string) (*tagmanager.CustomTemplate, error)
- func (t *TagManager) EnableBuiltInVariable(typeName string) (*tagmanager.BuiltInVariable, error)
- func (t *TagManager) FolderName() string
- func (t *TagManager) GetBuiltInVariable(typeName string) (*tagmanager.BuiltInVariable, error)
- func (t *TagManager) LoadBuiltInVariables() (map[string]*tagmanager.BuiltInVariable, error)
- func (t *TagManager) LoadClients() (map[string]*tagmanager.Client, error)
- func (t *TagManager) LoadCustomTemplates() (map[string]*tagmanager.CustomTemplate, error)
- func (t *TagManager) LoadFolders() (map[string]*tagmanager.Folder, error)
- func (t *TagManager) LoadTags() (map[string]*tagmanager.Tag, error)
- func (t *TagManager) LoadTransformations() (map[string]*tagmanager.Transformation, error)
- func (t *TagManager) LoadTriggers() (map[string]*tagmanager.Trigger, error)
- func (t *TagManager) LoadVariables() (map[string]*tagmanager.Variable, error)
- func (t *TagManager) LookupClient(name string) (*tagmanager.Client, error)
- func (t *TagManager) LookupFolder(name string) (*tagmanager.Folder, error)
- func (t *TagManager) LookupTag(name string) (*tagmanager.Tag, error)
- func (t *TagManager) LookupTemplate(name string) (*tagmanager.CustomTemplate, error)
- func (t *TagManager) LookupTransformation(name string) (*tagmanager.Transformation, error)
- func (t *TagManager) LookupTrigger(name string) (*tagmanager.Trigger, error)
- func (t *TagManager) LookupVariable(name string) (*tagmanager.Variable, error)
- func (t *TagManager) Notes(v any) string
- func (t *TagManager) Service() *tagmanager.Service
- func (t *TagManager) SetFolderName(v string)
- func (t *TagManager) UpsertClient(item *tagmanager.Client) (*tagmanager.Client, error)
- func (t *TagManager) UpsertCustomTemplate(item *tagmanager.CustomTemplate) (*tagmanager.CustomTemplate, error)
- func (t *TagManager) UpsertFolder(name string) (*tagmanager.Folder, error)
- func (t *TagManager) UpsertTag(item *tagmanager.Tag) (*tagmanager.Tag, error)
- func (t *TagManager) UpsertTransformation(item *tagmanager.Transformation) (*tagmanager.Transformation, error)
- func (t *TagManager) UpsertTrigger(item *tagmanager.Trigger) (*tagmanager.Trigger, error)
- func (t *TagManager) UpsertVariable(item *tagmanager.Variable) (*tagmanager.Variable, error)
- func (t *TagManager) WorkspaceID() string
- func (t *TagManager) WorkspacePath() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.3.0
type Option func(*TagManager)
func WithClientOptions ¶ added in v0.3.0
func WithClientOptions(v ...option.ClientOption) Option
func WithFolderName ¶ added in v0.3.0
func WithRequestQuota ¶ added in v0.3.0
type TagManager ¶ added in v0.3.0
type TagManager struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.3.0
func New(ctx context.Context, l *slog.Logger, accountID string, container config.GoogleTagManagerContainer, opts ...Option) (*TagManager, error)
func (*TagManager) AccountID ¶ added in v0.3.0
func (t *TagManager) AccountID() string
func (*TagManager) AccountPath ¶ added in v0.3.0
func (t *TagManager) AccountPath() string
func (*TagManager) ContainerID ¶ added in v0.3.0
func (t *TagManager) ContainerID() string
func (*TagManager) ContainerPath ¶ added in v0.3.0
func (t *TagManager) ContainerPath() string
func (*TagManager) CustomTemplate ¶ added in v0.3.0
func (t *TagManager) CustomTemplate(name string) (*tagmanager.CustomTemplate, error)
func (*TagManager) EnableBuiltInVariable ¶ added in v0.3.0
func (t *TagManager) EnableBuiltInVariable(typeName string) (*tagmanager.BuiltInVariable, error)
func (*TagManager) FolderName ¶ added in v0.3.0
func (t *TagManager) FolderName() string
func (*TagManager) GetBuiltInVariable ¶ added in v0.3.0
func (t *TagManager) GetBuiltInVariable(typeName string) (*tagmanager.BuiltInVariable, error)
func (*TagManager) LoadBuiltInVariables ¶ added in v0.3.0
func (t *TagManager) LoadBuiltInVariables() (map[string]*tagmanager.BuiltInVariable, error)
func (*TagManager) LoadClients ¶ added in v0.3.0
func (t *TagManager) LoadClients() (map[string]*tagmanager.Client, error)
func (*TagManager) LoadCustomTemplates ¶ added in v0.3.0
func (t *TagManager) LoadCustomTemplates() (map[string]*tagmanager.CustomTemplate, error)
func (*TagManager) LoadFolders ¶ added in v0.3.0
func (t *TagManager) LoadFolders() (map[string]*tagmanager.Folder, error)
func (*TagManager) LoadTags ¶ added in v0.3.0
func (t *TagManager) LoadTags() (map[string]*tagmanager.Tag, error)
func (*TagManager) LoadTransformations ¶ added in v0.9.0
func (t *TagManager) LoadTransformations() (map[string]*tagmanager.Transformation, error)
func (*TagManager) LoadTriggers ¶ added in v0.3.0
func (t *TagManager) LoadTriggers() (map[string]*tagmanager.Trigger, error)
func (*TagManager) LoadVariables ¶ added in v0.3.0
func (t *TagManager) LoadVariables() (map[string]*tagmanager.Variable, error)
func (*TagManager) LookupClient ¶ added in v0.3.0
func (t *TagManager) LookupClient(name string) (*tagmanager.Client, error)
func (*TagManager) LookupFolder ¶ added in v0.3.0
func (t *TagManager) LookupFolder(name string) (*tagmanager.Folder, error)
func (*TagManager) LookupTag ¶ added in v0.3.0
func (t *TagManager) LookupTag(name string) (*tagmanager.Tag, error)
func (*TagManager) LookupTemplate ¶ added in v0.3.0
func (t *TagManager) LookupTemplate(name string) (*tagmanager.CustomTemplate, error)
func (*TagManager) LookupTransformation ¶ added in v0.9.0
func (t *TagManager) LookupTransformation(name string) (*tagmanager.Transformation, error)
func (*TagManager) LookupTrigger ¶ added in v0.3.0
func (t *TagManager) LookupTrigger(name string) (*tagmanager.Trigger, error)
func (*TagManager) LookupVariable ¶ added in v0.3.0
func (t *TagManager) LookupVariable(name string) (*tagmanager.Variable, error)
func (*TagManager) Notes ¶ added in v0.3.0
func (t *TagManager) Notes(v any) string
func (*TagManager) Service ¶ added in v0.3.0
func (t *TagManager) Service() *tagmanager.Service
func (*TagManager) SetFolderName ¶ added in v0.3.0
func (t *TagManager) SetFolderName(v string)
func (*TagManager) UpsertClient ¶ added in v0.3.0
func (t *TagManager) UpsertClient(item *tagmanager.Client) (*tagmanager.Client, error)
func (*TagManager) UpsertCustomTemplate ¶ added in v0.3.0
func (t *TagManager) UpsertCustomTemplate(item *tagmanager.CustomTemplate) (*tagmanager.CustomTemplate, error)
func (*TagManager) UpsertFolder ¶ added in v0.3.0
func (t *TagManager) UpsertFolder(name string) (*tagmanager.Folder, error)
func (*TagManager) UpsertTag ¶ added in v0.3.0
func (t *TagManager) UpsertTag(item *tagmanager.Tag) (*tagmanager.Tag, error)
func (*TagManager) UpsertTransformation ¶ added in v0.9.0
func (t *TagManager) UpsertTransformation(item *tagmanager.Transformation) (*tagmanager.Transformation, error)
func (*TagManager) UpsertTrigger ¶ added in v0.3.0
func (t *TagManager) UpsertTrigger(item *tagmanager.Trigger) (*tagmanager.Trigger, error)
func (*TagManager) UpsertVariable ¶ added in v0.3.0
func (t *TagManager) UpsertVariable(item *tagmanager.Variable) (*tagmanager.Variable, error)
func (*TagManager) WorkspaceID ¶ added in v0.3.0
func (t *TagManager) WorkspaceID() string
func (*TagManager) WorkspacePath ¶ added in v0.3.0
func (t *TagManager) WorkspacePath() string
Click to show internal directories.
Click to hide internal directories.