MCPcopy Index your code
hub / github.com/apache/cloudstack-go / GetIsoByName

Method GetIsoByName

cloudstack/ISOService.go:2297–2308  ·  view source on GitHub ↗

This is a courtesy helper function, which in some cases may not work as expected!

(name string, isofilter string, zoneid string, opts ...OptionFunc)

Source from the content-addressed store, hash-verified

2295
2296// This is a courtesy helper function, which in some cases may not work as expected!
2297func (s *ISOService) GetIsoByName(name string, isofilter string, zoneid string, opts ...OptionFunc) (*Iso, int, error) {
2298 id, count, err := s.GetIsoID(name, isofilter, zoneid, opts...)
2299 if err != nil {
2300 return nil, count, err
2301 }
2302
2303 r, count, err := s.GetIsoByID(id, opts...)
2304 if err != nil {
2305 return nil, count, err
2306 }
2307 return r, count, nil
2308}
2309
2310// This is a courtesy helper function, which in some cases may not work as expected!
2311func (s *ISOService) GetIsoByID(id string, opts ...OptionFunc) (*Iso, int, error) {

Callers

nothing calls this directly

Calls 2

GetIsoIDMethod · 0.95
GetIsoByIDMethod · 0.95

Tested by

no test coverage detected