code: func (c *Cluster) GetSecret(input string) (types.Secret, error) {
  	var secret *swarmapi.Secret
  
  	if err := c.lockedManagerAction(func(ctx context.Context, state nodeState) error {
  		s, err := getSecret(ctx, state.controlClient, input)
  		if err != nil {
  			return err
  		}
  		secret = s
  		return nil
  	}); err != nil {
  		return types.Secret{}, err
  	}
  	return convert.SecretFromGRPC(secret), nil
  }
docs: // GetSecret returns a secret from a managed swarm cluster