dto

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChallengeResponseDto

type ChallengeResponseDto struct {
	Challenge string `json:"challenge"`
}

type ChallengeSuccessEncryptedKeyDto

type ChallengeSuccessEncryptedKeyDto struct {
	PublicKey []byte `json:"public_key"`
}

type ClientMessageDto

type ClientMessageDto[T Dto] struct {
	Message string `json:"message"`
	Data    T      `json:"data"`
}

type DataDto

type DataDto struct {
	ID        uuid.UUID      `json:"id"`
	Username  string         `json:"username"`
	Keys      []KeyDto       `json:"keys"`
	SshConfig []SshConfigDto `json:"ssh_config"`
	Machines  []MachineDto   `json:"machines"`
}

type EncryptedMasterKeyDto

type EncryptedMasterKeyDto struct {
	EncryptedMasterKey []byte `json:"encrypted_master_key"`
}

type KeyDto

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

type MachineDto

type MachineDto struct {
	Name string `json:"machine_name"`
}

type MasterKeyDto

type MasterKeyDto struct {
	MasterKey []byte `json:"master_key"`
}

type MessageDto

type MessageDto struct {
	Message string `json:"message"`
}

type PublicKeyDto

type PublicKeyDto struct {
	PublicKey []byte `json:"public_key"`
}

type ServerMessageDto

type ServerMessageDto[T Dto] struct {
	Data         T      `json:"data"`
	Error        bool   `json:"error"`
	ErrorMessage string `json:"error_message"`
}

type SshConfigDto

type SshConfigDto struct {
	Host          string              `json:"host"`
	Values        map[string][]string `json:"values"`
	IdentityFiles []string            `json:"identity_files"`
}

type UserDto

type UserDto struct {
	Username string       `json:"username"`
	Machines []MachineDto `json:"machines"`
}

type UserMachineDto

type UserMachineDto struct {
	Username    string `json:"username"`
	MachineName string `json:"machine_name"`
}

Jump to

Keyboard shortcuts

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