models

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

type Machine struct {
	ID        uuid.UUID `json:"id" db:"id"`
	UserID    uuid.UUID `json:"user_id" db:"user_id"`
	Name      string    `json:"name" db:"name"`
	PublicKey []byte    `json:"public_key" db:"public_key"`
}

type SshConfig

type SshConfig struct {
	ID            uuid.UUID           `json:"id" db:"id"`
	UserID        uuid.UUID           `json:"user_id" db:"user_id"`
	MachineID     uuid.UUID           `json:"machine_id" db:"machine_id"`
	Host          string              `json:"host" db:"host"`
	Values        map[string][]string `json:"values" db:"values"`
	IdentityFiles []string            `json:"identity_files" db:"identity_files"`
}

type SshKey

type SshKey struct {
	ID       uuid.UUID `json:"id" db:"id"`
	UserID   uuid.UUID `json:"user_id" db:"user_id"`
	Filename string    `json:"filename" db:"filename"`
	Data     []byte    `json:"data" db:"data"`
}

type User

type User struct {
	ID       uuid.UUID   `json:"id" db:"id"`
	Username string      `json:"username" db:"username"`
	Keys     []SshKey    `json:"keys"`
	Config   []SshConfig `json:"config"`
	Machines []Machine   `json:"machines"`
}

Jump to

Keyboard shortcuts

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