services

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Change

func Change(args []string) error

func Del

func Del(args []string) error

func Help

func Help()

func InitIdentityService

func InitIdentityService(repo IdentityRepo) error

func List

func List(args []string) error

func New

func New(args []string) error

func Renew

func Renew(args []string) error

Types

type IdentityRepo

type IdentityRepo interface {
	ReadAll() ([]models.Person, error)
	Create(p models.Person) error
	Delete(domain string) error
	Update(p models.Person) error
}

type IdentityService

type IdentityService struct {
	// contains filtered or unexported fields
}
var IdentityServiceI *IdentityService = nil

func (*IdentityService) Change

func (s *IdentityService) Change(domain, property, data string) error

func (*IdentityService) Delete

func (s *IdentityService) Delete(domain string) error

func (*IdentityService) GetList

func (s *IdentityService) GetList() map[string]string

func (*IdentityService) NewIdentity

func (s *IdentityService) NewIdentity(domain string) error

func (*IdentityService) Renew

func (s *IdentityService) Renew(domain string) error

func (*IdentityService) ShowIdentity

func (s *IdentityService) ShowIdentity(domain string, verbose bool) error

Jump to

Keyboard shortcuts

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