client/lxd_containers.go
func (r *ProtocolLXD) GetContainerSnapshots(containerName string) ([]api.ContainerSnapshot, error) {
	snapshots := []api.ContainerSnapshot{}

	// Fetch the raw value
	_, err := r.queryStruct("GET", fmt.Sprintf("/containers/%s/snapshots?recursion=1", url.QueryEscape(containerName)), nil, "", &snapshots)
	if err != nil {
		return nil, err
	}

	return snapshots, nil
}
func (r *ProtocolLXD) GetContainerSnapshots(containerName string) ([]api.ContainerSnapshot, error) {
	snapshots := []api.ContainerSnapshot{}

	// Fetch the raw value
	_, err := r.queryStruct("GET", fmt.Sprintf("/containers/%s/snapshots?recursion=1", url.QueryEscape(containerName)), nil, "", &snapshots)
	if err != nil {
		return nil, err
	}

	return snapshots, nil
}
func ( r * ProtocolLXD ) GetContainerSnapshots ( containerName string ) ( [ ] api . ContainerSnapshot , error ) { snapshots := [ ] api . ContainerSnapshot { } // Fetch the raw value _ , err := r . queryStruct ( " " , fmt . Sprintf ( " " , url . QueryEscape ( containerName ) ) , nil , " " , & snapshots ) if err != nil { return nil , err } return snapshots , nil }
// GetContainerSnapshots returns a list of snapshots for the container
GetContainerSnapshots returns a list of snapshots for the container