code: func (c *Cluster) GetConfigs(options apitypes.ConfigListOptions) ([]types.Config, error) {
  	c.mu.RLock()
  	defer c.mu.RUnlock()
  
  	state := c.currentNodeState()
  	if !state.IsActiveManager() {
  		return nil, c.errNoManager(state)
  	}
  
  	filters, err := newListConfigsFilters(options.Filters)
  	if err != nil {
  		return nil, err
  	}
  	ctx, cancel := c.getRequestContext()
  	defer cancel()
  
  	r, err := state.controlClient.ListConfigs(ctx,
  		&swarmapi.ListConfigsRequest{Filters: filters},
  		grpc.MaxCallRecvMsgSize(defaultRecvSizeForListResponse))
  	if err != nil {
  		return nil, err
  	}
  
  	configs := []types.Config{}
  
  	for _, config := range r.Configs {
  		configs = append(configs, convert.ConfigFromGRPC(config))
  	}
  
  	return configs, nil
  }
docs: // GetConfigs returns all configs of a managed swarm cluster.