Documentation ¶
Index ¶
- func Contains[E comparable](s []E, v E) bool
- func ContainsFunc[E any](s []E, f func(E) bool) bool
- func GetCaches(prefix string) ([]string, error)
- func GetConfigHome() (string, error)
- func GetStateHome() (string, error)
- func NewError(cause error, format string, args ...any) error
- type Cache
- type Client
- type Config
- type Error
- type Parameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶ added in v0.11.0
func Contains[E comparable](s []E, v E) bool
func ContainsFunc ¶ added in v0.11.0
func GetConfigHome ¶ added in v0.5.0
func GetStateHome ¶ added in v0.5.0
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(params Parameters) (Client, error)
type Config ¶
type Config struct { Aliases []string `json:"aliases"` AppID string `json:"app-id"` //nolint:tagliatelle CertFile string `json:"cert-file"` //nolint:tagliatelle Expiry time.Duration `json:"expiry"` Host string `json:"host"` KeyFile string `json:"key-file"` //nolint:tagliatelle MaxConns int `json:"max-connections"` //nolint:tagliatelle MaxTries int `json:"max-tries"` //nolint:tagliatelle Safe string `json:"safe"` SkipVerify bool `json:"skip-verify"` //nolint:tagliatelle Timeout time.Duration `json:"timeout"` Wait time.Duration `json:"wait"` }
type Parameters ¶
type Parameters struct { Config CfgName string JSON bool Objects []string Output string // contains filtered or unexported fields }
func NewParameters ¶ added in v0.5.0
func NewParameters() Parameters
func (Parameters) Errorf ¶
func (p Parameters) Errorf(format string, v ...any)
func (Parameters) Fatalf ¶
func (p Parameters) Fatalf(format string, v ...any)
func (Parameters) Validate ¶ added in v0.5.0
func (p Parameters) Validate() error
Click to show internal directories.
Click to hide internal directories.