2017-08-14 14:36:07 +00:00
|
|
|
package api
|
|
|
|
|
|
|
|
// SegmentList returns all the available LAN segments.
|
|
|
|
func (op *Operator) SegmentList(q *QueryOptions) ([]string, *QueryMeta, error) {
|
|
|
|
var out []string
|
2017-09-01 19:34:27 +00:00
|
|
|
qm, err := op.c.query("/v1/operator/segment", &out, q)
|
2017-08-14 14:36:07 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, nil, err
|
|
|
|
}
|
|
|
|
return out, qm, nil
|
|
|
|
}
|