Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnchanged is return when authentication configuration hasn't changed since prevRevision. ErrUnchanged = errors.New("unchanged: auth revision is the same as before") )
Functions ¶
func Dump ¶
func Dump(ctx context.Context, c *clientv3.Client, prevRevision uint64) (commands []string, dumpedAuthRevision uint64, err error)
Dump returns shell commands that'd set up authentication on an empty cluster the same as the given cluster. Note that passwords can't be recovered. You can optionally pass in a prevision revision, to get ErrUnchanged if etcd is unchanged since that auth revision. The return arguments are 1) a list of shell commands, 2) the auth revision of this dump and 3) an optional error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.