postgres

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertRepository

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

AlertRepository talks to the store to read or insert data

func NewAlertRepository

func NewAlertRepository(client *pgc.Client) *AlertRepository

NewAlertRepository returns repository struct

func (AlertRepository) Create

func (r AlertRepository) Create(ctx context.Context, alrt *alert.Alert) error

func (AlertRepository) List

func (r AlertRepository) List(ctx context.Context, flt alert.Filter) ([]alert.Alert, error)

type NamespaceRepository

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

NamespaceRepository talks to the store to read or insert data

func NewNamespaceRepository

func NewNamespaceRepository(client *pgc.Client) *NamespaceRepository

NewNamespaceRepository returns repository struct

func (*NamespaceRepository) Commit added in v0.5.0

func (r *NamespaceRepository) Commit(ctx context.Context) error

func (NamespaceRepository) Create

func (NamespaceRepository) Delete

func (r NamespaceRepository) Delete(ctx context.Context, id uint64) error

func (NamespaceRepository) Get

func (NamespaceRepository) List

func (*NamespaceRepository) Rollback added in v0.5.0

func (r *NamespaceRepository) Rollback(ctx context.Context, err error) error

func (NamespaceRepository) Update

func (*NamespaceRepository) WithTransaction added in v0.5.0

func (r *NamespaceRepository) WithTransaction(ctx context.Context) context.Context

type ProviderRepository

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

ProviderRepository talks to the store to read or insert data

func NewProviderRepository

func NewProviderRepository(client *pgc.Client) *ProviderRepository

NewProviderRepository returns repository struct

func (ProviderRepository) Create

func (ProviderRepository) Delete

func (r ProviderRepository) Delete(ctx context.Context, id uint64) error

func (ProviderRepository) Get

func (ProviderRepository) List

func (ProviderRepository) Update

func (r ProviderRepository) Update(ctx context.Context, provDomain *provider.Provider) error

type ReceiverRepository

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

ReceiverRepository talks to the store to read or insert data

func NewReceiverRepository

func NewReceiverRepository(client *pgc.Client) *ReceiverRepository

NewReceiverRepository returns repository struct

func (ReceiverRepository) Create

func (ReceiverRepository) Delete

func (r ReceiverRepository) Delete(ctx context.Context, id uint64) error

func (ReceiverRepository) Get

func (ReceiverRepository) List

func (ReceiverRepository) Update

type RuleRepository

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

RuleRepository talks to the store to read or insert data

func NewRuleRepository

func NewRuleRepository(client *pgc.Client) *RuleRepository

NewRuleRepository returns repository struct

func (*RuleRepository) Commit

func (r *RuleRepository) Commit(ctx context.Context) error

func (*RuleRepository) List

func (r *RuleRepository) List(ctx context.Context, flt rule.Filter) ([]rule.Rule, error)

func (*RuleRepository) Rollback

func (r *RuleRepository) Rollback(ctx context.Context, err error) error

func (*RuleRepository) Upsert

func (r *RuleRepository) Upsert(ctx context.Context, rl *rule.Rule) error

func (*RuleRepository) WithTransaction

func (r *RuleRepository) WithTransaction(ctx context.Context) context.Context

type SubscriptionRepository

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

SubscriptionRepository talks to the store to read or insert data

func NewSubscriptionRepository

func NewSubscriptionRepository(client *pgc.Client) *SubscriptionRepository

NewSubscriptionRepository returns SubscriptionRepository struct

func (*SubscriptionRepository) Create

func (*SubscriptionRepository) Delete

func (r *SubscriptionRepository) Delete(ctx context.Context, id uint64) error

func (*SubscriptionRepository) Get

func (*SubscriptionRepository) List

func (*SubscriptionRepository) Update

type TemplateRepository

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

TemplateRepository talks to the store to read or insert data

func NewTemplateRepository

func NewTemplateRepository(client *pgc.Client) *TemplateRepository

NewTemplateRepository returns repository struct

func (TemplateRepository) Delete

func (r TemplateRepository) Delete(ctx context.Context, name string) error

func (TemplateRepository) GetByName

func (r TemplateRepository) GetByName(ctx context.Context, name string) (*template.Template, error)

func (TemplateRepository) List

func (TemplateRepository) Upsert

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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