sqlite

package
v0.0.0-...-9860a48 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config string) (driver.Storager, error)

Types

type Cert

type Cert struct {
	Model

	Name     string `gorm:"unique;"`
	Type     string
	CN       string
	AltNames string

	TSAURL string
}

type Config

type Config struct {
	DB *gorm.DB
}

func (*Config) AddCert

func (c *Config) AddCert(name, ptype, cn, altNames, tsaUrl string)

func (*Config) AddProfile

func (c *Config) AddProfile(name, certName, dockerHost string)

func (*Config) End

func (c *Config) End()

func (*Config) GetCert

func (c *Config) GetCert(name string) driver.CertResult

func (*Config) GetProfile

func (c *Config) GetProfile(name string) driver.ProfileResult

func (*Config) ListCerts

func (c *Config) ListCerts() []driver.CertResult

func (*Config) ListProfiles

func (c *Config) ListProfiles() []driver.ProfileResult

func (*Config) RemoveCert

func (c *Config) RemoveCert(name string) error

func (*Config) RemoveProfile

func (c *Config) RemoveProfile(name string)

type Model

type Model struct {
	ID        uint      `gorm:"primary_key"`
	CreatedAt time.Time `gorm:"created_at"`
}

type Profile

type Profile struct {
	Model

	Name       string `gorm:"unique;"`
	Cert       Cert
	CertID     uint
	DockerHost string
}

Jump to

Keyboard shortcuts

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