service

package
v0.0.0-...-a771af7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicKey

type PublicKey struct {
	ID          string `json:"id,omitempty" yaml:"id,omitempty"`
	UserID      string `json:"user_id,omitempty" yaml:"user_id,omitempty"`
	Fingerprint string `json:"fingerprint,omitempty" yaml:"fingerprint,omitempty"`
	Description string `json:"description,omitempty" yaml:"description,omitempty"`
	Value       string `json:"value" yaml:"value"`
}

func ParseKey

func ParseKey(key []byte) (PublicKey, error)

type Service

type Service struct {
	ID          string      `json:"-" yaml:"-"`
	Name        string      `json:"name" yaml:"name"`
	Description string      `json:"description,omitempty" yaml:"description,omitempty"`
	URLs        []string    `json:"urls" yaml:"urls"`
	PublicKeys  []PublicKey `json:"public_keys,omitempty" yaml:"public_keys,omitempty"`
}

func (*Service) AddPublicKeys

func (s *Service) AddPublicKeys(publicKeys ...PublicKey)

func (*Service) AddURLs

func (s *Service) AddURLs(urls ...string)

func (*Service) SetPublicKeys

func (s *Service) SetPublicKeys(publicKeys ...PublicKey)

func (*Service) SetURLs

func (s *Service) SetURLs(urls ...string)

Jump to

Keyboard shortcuts

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