INNER CODE UNIT · Go
NewKubepug
kubepug/kubepug · lib/kubepug.go:40
func NewKubepug(config *Config) (*Kubepug, error) {
if config == nil {
return nil, fmt.Errorf("config cannot be null")
}
return &Kubepug{Config: config}, nil
}
// GetDeprecated returns the list of deprecated APIs
func (k *Kubepug) GetDeprecated() (result *results.Result, err error) {
var storer store.DefinitionStorer
if k.Config == nil {
return nil, fmt.Errorf("config cannot be null")
}
if k.Config.GeneratedStore == "" {
return nil, fmt.Errorf("a database path should be provided")
}