secrets: gomodules.xyz/secrets/xkms Index | Files

package xkms

import "gomodules.xyz/secrets/xkms"

Index

Package Files

driver.go

Constants

const (
    Scheme = "xkms"
)

Scheme is the URL scheme xoem registers its URLOpener under on secrets.DefaultMux. See the package documentation and/or URLOpener for details.

func Init Uses

func Init(rawurl string) error

Init initializes a new xorm engine to conn str provided by rawurl

func Register Uses

func Register(rawurl string, x *xorm.Engine) error

Register registers xorm engine x to conn str provided by rawurl

func RotateDaily Uses

func RotateDaily() string

func RotateMonthly Uses

func RotateMonthly() string

func RotateQuarterly Uses

func RotateQuarterly() string

type Options Uses

type Options struct {
    Table        string
    MasterKeyURL string
    // contains filtered or unexported fields
}

type SecretKey Uses

type SecretKey struct {
    ID  string             `xorm:"pk"`
    Key types.SecureString `xorm:"text"`

    CreatedUnix int64 `xorm:"INDEX created"`
}

type URLOpener Uses

type URLOpener struct{}

URLOpener opens xorm URLs like "xorm://keyId?driver=postgres&ds=connection_string&table=table_name".

func (*URLOpener) OpenKeeperURL Uses

func (o *URLOpener) OpenKeeperURL(ctx context.Context, u *url.URL) (*secrets.Keeper, error)

OpenKeeperURL opens Keeper URLs.

Package xkms imports 12 packages (graph) and is imported by 3 packages. Updated 2019-09-02. Refresh now. Tools for package owners.