listOptions.go raw

   1  package govultr
   2  
   3  // ListOptions are the available query params
   4  type ListOptions struct {
   5  	// These query params are used for all list calls that support pagination
   6  	PerPage int    `url:"per_page,omitempty"`
   7  	Cursor  string `url:"cursor,omitempty"`
   8  
   9  	// These three query params are currently used for the list instance call
  10  	// These may be extended to other list calls
  11  	// https://www.vultr.com/api/#operation/list-instances
  12  	MainIP string `url:"main_ip,omitempty"`
  13  	Label  string `url:"label,omitempty"`
  14  	Tag    string `url:"tag,omitempty"`
  15  	Region string `url:"region,omitempty"`
  16  
  17  	// Query params that can be used on the list snapshots call
  18  	// https://www.vultr.com/api/#operation/list-snapshots
  19  	Description string `url:"description,omitempty"`
  20  }
  21