macstadium

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "macstadium"
)

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(ctx context.Context, m configmap.Mapper) (place.Backend, error)

Types

type Backend

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

func (*Backend) CacheKeyName

func (b *Backend) CacheKeyName(pattern string) string

func (*Backend) List

func (b *Backend) List(ctx context.Context, backendName string, pattern string) (place.Printable, error)

func (*Backend) Name

func (b *Backend) Name() string

type Options

type Options struct {
	Endpoint string `config:"endpoint"`
	UserName string `config:"username"`
	Password string `config:"password"`
}

Options defines the configuration for this backend

type Server

type Server struct {
	ID     string        `json:"id"`
	Name   string        `json:"name"`
	IP     string        `json:"ip"`
	Status *ServerStatus `json:"status"`
}

type ServerStatus

type ServerStatus struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Power string `json:"power"`
}

Jump to

Keyboard shortcuts

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