devices

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Columns = map[string]column{
	"name":          {func(d *client.Device) string { return d.Name }},
	"uuid":          {func(d *client.Device) string { return d.Uuid }},
	"factory":       {func(d *client.Device) string { return d.Factory }},
	"owner":         {ownerFormatter},
	"device-group":  {func(d *client.Device) string { return d.GroupName }},
	"target":        {func(d *client.Device) string { return d.TargetName }},
	"status":        {statusFormatter},
	"apps":          {func(d *client.Device) string { return strings.Join(d.DockerApps, ",") }},
	"up-to-date":    {func(d *client.Device) string { return fmt.Sprintf("%v", d.UpToDate) }},
	"tag":           {func(d *client.Device) string { return d.Tag }},
	"created-at":    {func(d *client.Device) string { return d.ChangeMeta.CreatedAt }},
	"created-by":    {func(d *client.Device) string { return d.ChangeMeta.CreatedBy }},
	"updated-at":    {func(d *client.Device) string { return d.ChangeMeta.UpdatedAt }},
	"updated-by":    {func(d *client.Device) string { return d.ChangeMeta.UpdatedBy }},
	"last-seen":     {func(d *client.Device) string { return d.LastSeen }},
	"ostree-hash":   {func(d *client.Device) string { return d.OstreeHash }},
	"curent-update": {func(d *client.Device) string { return d.CurrentUpdate }},
	"is-prod":       {func(d *client.Device) string { return fmt.Sprintf("%v", d.IsProd) }},
	"is-wave":       {func(d *client.Device) string { return fmt.Sprintf("%v", d.IsWave) }},
}

Functions

func NewCommand

func NewCommand() *cobra.Command

Types

type WireguardClientConfig

type WireguardClientConfig struct {
	Enabled   bool
	Address   string
	PublicKey string
}

func (WireguardClientConfig) Marshall

func (w WireguardClientConfig) Marshall() string

func (*WireguardClientConfig) Unmarshall

func (w *WireguardClientConfig) Unmarshall(configVal string)

Jump to

Keyboard shortcuts

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