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

Method GetSystemVmByName

cloudstack/SystemVMService.go:686–697  ·  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

684
685// This is a courtesy helper function, which in some cases may not work as expected!
686func (s *SystemVMService) GetSystemVmByName(name string, opts ...OptionFunc) (*SystemVm, int, error) {
687 id, count, err := s.GetSystemVmID(name, opts...)
688 if err != nil {
689 return nil, count, err
690 }
691
692 r, count, err := s.GetSystemVmByID(id, opts...)
693 if err != nil {
694 return nil, count, err
695 }
696 return r, count, nil
697}
698
699// This is a courtesy helper function, which in some cases may not work as expected!
700func (s *SystemVMService) GetSystemVmByID(id string, opts ...OptionFunc) (*SystemVm, int, error) {

Callers

nothing calls this directly

Calls 2

GetSystemVmIDMethod · 0.95
GetSystemVmByIDMethod · 0.95

Tested by

no test coverage detected