// Config is used to to configure the snap func (s *SystemImagePart) Config(configuration []byte) (newConfig string, err error) { if cfg := string(configuration); cfg != "" { return coreconfig.Set(cfg) } return coreconfig.Get() }
// coreConfig configure the OS snap func coreConfigImpl(configuration []byte) (newConfig string, err error) { if cfg := string(configuration); cfg != "" { return coreconfig.Set(cfg) } return coreconfig.Get() }
// coreConfig configure the OS snap func coreConfigImpl(configuration []byte) (newConfig []byte, err error) { if len(configuration) > 0 { return coreconfig.Set(configuration) } return coreconfig.Get() }