sqlite_node_repository

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type NodeSqlRecord

type NodeSqlRecord struct {
	Identifier         string    `db:"identifier"`
	PlatformIdentifier string    `db:"platform_identifier"`
	Provider           string    `db:"provider_identifier"`
	Tailnet            string    `db:"tailnet"`
	TailnetName        string    `db:"tailnet_device_name"`
	TailnetIdentifier  string    `db:"tailnet_identifier"`
	Location           string    `db:"location"`
	PreauthKey         string    `db:"preauth_key"`
	Ephemeral          bool      `db:"ephemeral"`
	CreatedAt          time.Time `db:"created_at"`
	UpdatedAt          time.Time `db:"updated_at"`
}

func (*NodeSqlRecord) ToNode

func (n *NodeSqlRecord) ToNode() *node.Node

type SqliteNodeRepository

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

func (*SqliteNodeRepository) Create

func (r *SqliteNodeRepository) Create(ctx context.Context, node *node.Node) error

func (*SqliteNodeRepository) Delete

func (*SqliteNodeRepository) Get

func (*SqliteNodeRepository) Init

func (*SqliteNodeRepository) List

func (r *SqliteNodeRepository) List(ctx context.Context) ([]*node.Node, error)

Jump to

Keyboard shortcuts

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