func NewSecretsRotationWatcher(
	caller base.APICaller, result params.SecretRotationWatchResult,
) watcher.SecretRotationWatcher {
	w := &secretsRotationWatcher{
		caller:                  caller,
		secretRotationWatcherId: result.SecretRotationWatcherId,
		out:                     make(chan []watcher.SecretRotationChange),
	}
	w.newResult = func() interface{} { return new(params.SecretRotationWatchResult) }
	w.tomb.Go(func() error {
		return w.loop(result.Changes)
	})
	return w
}
// NewSecretsRotationWatcher returns a new secrets rotation watcher.
NewSecretsRotationWatcher returns a new secrets rotation watcher.
// NewSecretsRotationWatcher returns a new secrets rotation watcher .
func NewSecretsRotationWatcher(
	caller base.APICaller, result params.SecretRotationWatchResult,
) watcher.SecretRotationWatcher {
	w := &secretsRotationWatcher{
		caller:                  caller,
		secretRotationWatcherId: result.SecretRotationWatcherId,
		out:                     make(chan []watcher.SecretRotationChange),
	}
	w.newResult = func() interface{} { return new(params.SecretRotationWatchResult) }
	w.tomb.Go(func() error {
		return w.loop(result.Changes)
	})
	return w
}
func NewSecretsRotationWatcher ( caller base . APICaller , result params . SecretRotationWatchResult , ) watcher . SecretRotationWatcher { w := & secretsRotationWatcher { caller : caller , secretRotationWatcherId : result . SecretRotationWatcherId , out : make ( chan [ ] watcher . SecretRotationChange ) , } w . newResult = func ( ) interface { } { return new ( params . SecretRotationWatchResult ) } w . tomb . Go ( func ( ) error { return w . loop ( result . Changes ) } ) return w }
NewSecretsRotationWatcher returns a new secrets rotation watcher.
NewSecretsRotationWatcher returns a new secrets rotation watcher .