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

Method GetInstanceGroupByName

cloudstack/VMGroupService.go:586–597  ·  view source on GitHub ↗

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

(name string, opts ...OptionFunc)

Source from the content-addressed store, hash-verified

584
585// This is a courtesy helper function, which in some cases may not work as expected!
586func (s *VMGroupService) GetInstanceGroupByName(name string, opts ...OptionFunc) (*InstanceGroup, int, error) {
587 id, count, err := s.GetInstanceGroupID(name, opts...)
588 if err != nil {
589 return nil, count, err
590 }
591
592 r, count, err := s.GetInstanceGroupByID(id, opts...)
593 if err != nil {
594 return nil, count, err
595 }
596 return r, count, nil
597}
598
599// This is a courtesy helper function, which in some cases may not work as expected!
600func (s *VMGroupService) GetInstanceGroupByID(id string, opts ...OptionFunc) (*InstanceGroup, int, error) {

Callers

nothing calls this directly

Calls 2

GetInstanceGroupIDMethod · 0.95
GetInstanceGroupByIDMethod · 0.95

Tested by

no test coverage detected