cmd

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Package cmd provides the command-line interface for nas-manager. It includes commands for DDNS management and ACME certificate operations.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

Build information set by ldflags

Functions

func Execute

func Execute(log *logger.Logger)

Execute runs the root command

func GetEnv

func GetEnv(key, defaultValue string) string

GetEnv returns environment variable value or default

func GetLogger

func GetLogger() *logger.Logger

GetLogger returns the global logger instance

Types

type AcmeConfig

type AcmeConfig struct {
	Domain   string
	CertPath string
	Email    string
	CFToken  string
}

func GetAcmeConfig

func GetAcmeConfig() AcmeConfig

GetAcmeConfig returns ACME configuration

type DDNSConfig

type DDNSConfig struct {
	CFToken      string
	CFZoneID     string
	CFRecordName string
}

func GetDDNSConfig

func GetDDNSConfig() DDNSConfig

GetDDNSConfig returns DDNS configuration

type GitHubRelease

type GitHubRelease struct {
	TagName string `json:"tag_name"`
	Assets  []struct {
		Name               string `json:"name"`
		BrowserDownloadURL string `json:"browser_download_url"`
	} `json:"assets"`
}

type User

type User struct {
	Email        string
	Registration *registration.Resource
	// contains filtered or unexported fields
}

func (*User) GetEmail

func (u *User) GetEmail() string

func (*User) GetPrivateKey

func (u *User) GetPrivateKey() crypto.PrivateKey

func (*User) GetRegistration

func (u *User) GetRegistration() *registration.Resource

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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