repo

package
v0.0.0-...-f34edaa Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group interface {
	FindByName(ctx context.Context, name string) (*models.Sgroup, error)
	Upsert(ctx context.Context, record []string) error
	List(ctx context.Context, match string) (models.SgroupSlice, error)
}

func NewGroupRepo

func NewGroupRepo(db *sql.DB) Group

type Host

type Host interface {
	FindByHostname(ctx context.Context, hostname string) (*models.Host, error)
	ListByGroupID(ctx context.Context, groupID int64) (models.HostSlice, error)
	Upsert(ctx context.Context, record []string, zone string) error
	List(ctx context.Context, match string) (models.HostSlice, error)
}

func NewHostRepo

func NewHostRepo(db *sql.DB) Host

type Policy

type Policy interface {
	ListHost(ctx context.Context) ([]types.PolicyByHost, error)
	ListGroup(ctx context.Context) ([]types.PolicyByGroup, error)
	Upsert(ctx context.Context, record []string) error
}

func NewPolicyRepo

func NewPolicyRepo(db *sql.DB) Policy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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