model

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Name         string `yaml:"name"`
	Issuer       string `yaml:"url"`
	GPGKey       string `yaml:"default_gpg_key"`
	DefaultToken string `yaml:"default_token"`
}

func NewProviderFromString

func NewProviderFromString(provider string) *Provider

func (Provider) Compare

func (p Provider) Compare(b string, compUrl bool) bool

func (Provider) Equals

func (p Provider) Equals(b Provider, compUrl bool) bool

type Providers

type Providers []*Provider

func (Providers) Find

func (p Providers) Find(provider string) (*Provider, bool)

func (Providers) FindBy

func (p Providers) FindBy(provider string, compURL bool) (*Provider, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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