forked from TrueCloudLab/certificates
Remove deprecated functions.
This commit is contained in:
parent
f643af7095
commit
81004ce1f9
1 changed files with 0 additions and 25 deletions
25
pki/pki.go
25
pki/pki.go
|
@ -596,31 +596,6 @@ type caDefaults struct {
|
||||||
// Option is the type for modifiers over the auth config object.
|
// Option is the type for modifiers over the auth config object.
|
||||||
type Option func(c *authconfig.Config) error
|
type Option func(c *authconfig.Config) error
|
||||||
|
|
||||||
// WithDefaultDB is a configuration modifier that adds a default DB stanza to
|
|
||||||
// the authority config.
|
|
||||||
//
|
|
||||||
// Deprecated: this method is deprecated because this is the default behavior.
|
|
||||||
func WithDefaultDB() Option {
|
|
||||||
return func(c *authconfig.Config) error {
|
|
||||||
c.DB = &db.Config{
|
|
||||||
Type: "badger",
|
|
||||||
DataSource: GetDBPath(),
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithoutDB is a configuration modifier that adds a default DB stanza to
|
|
||||||
// the authority config.
|
|
||||||
//
|
|
||||||
// De[recated: this method is deprecated in favor or WithNoDB.
|
|
||||||
func WithoutDB() Option {
|
|
||||||
return func(c *authconfig.Config) error {
|
|
||||||
c.DB = nil
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// GenerateConfig returns the step certificates configuration.
|
// GenerateConfig returns the step certificates configuration.
|
||||||
func (p *PKI) GenerateConfig(opt ...Option) (*authconfig.Config, error) {
|
func (p *PKI) GenerateConfig(opt ...Option) (*authconfig.Config, error) {
|
||||||
var authorityOptions *apiv1.Options
|
var authorityOptions *apiv1.Options
|
||||||
|
|
Loading…
Reference in a new issue