user

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublicIP

func PublicIP() (string, error)

Types

type Config

type Config struct {
	Project   string   `yaml:"project,omitempty"`
	Name      string   `yaml:"name"`
	SourceIPs []string `yaml:"ips"`
}

func NewConfig

func NewConfig(name string, ips ...string) (*Config, error)

func NewFromFile

func NewFromFile(r io.Reader) (*Config, error)

func (*Config) Add

func (c *Config) Add(ip string)

func (*Config) HasIP

func (c *Config) HasIP(ip string) (int, bool)

func (*Config) Remove

func (c *Config) Remove(ip string)

func (*Config) Write

func (c *Config) Write(w io.Writer) error

Jump to

Keyboard shortcuts

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