Documentation ¶
Index ¶
- Constants
- func DoNothing()
- type CreatePkeyData
- type UfmClient
- func (u *UfmClient) Auth() error
- func (u *UfmClient) CreatePkey(data *CreatePkeyData) error
- func (u *UfmClient) Get(path string, queries []string) (*http.Response, error)
- func (u *UfmClient) GetSystems(filters []string) (ret string, err error)
- func (u *UfmClient) PkeyAddGuids(pkey string, index0 bool, ipoib bool, membership string, guids []string) (err error)
- func (u *UfmClient) PkeyList() (ret string, err error)
- func (u *UfmClient) PkeyRemoveGuids(pkey string, guids []string) (err error)
- func (u *UfmClient) PortsGet(portName string) (ret string, err error)
- func (u *UfmClient) PortsGetAll(filters string) (ret string, err error)
- func (u *UfmClient) PortsGetAllBrief(filters string) (ret string, err error)
- func (u *UfmClient) Post(path string, data io.Reader) (*http.Response, error)
Constants ¶
View Source
const ( MembershipLimited = "limited" MembershipFull = "full" )
View Source
const PkeysPath = "/ufmRestV2/resources/pkeys"
View Source
const PortsPath = "/ufmRestV2/resources/ports"
View Source
const SystemsPath = "/ufmRestV2/resources/systems"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreatePkeyData ¶
type UfmClient ¶
type UfmClient struct { Insecure bool Username string Password string Endpoint string CurrentCookie *http.Cookie }
func (*UfmClient) CreatePkey ¶
func (u *UfmClient) CreatePkey(data *CreatePkeyData) error
func (*UfmClient) GetSystems ¶
get all systems, pass in list of filters such as [ip=1.1.1.1, name=mycomputer,...]
func (*UfmClient) PkeyAddGuids ¶
func (*UfmClient) PkeyRemoveGuids ¶
func (*UfmClient) PortsGetAll ¶
func (*UfmClient) PortsGetAllBrief ¶
Click to show internal directories.
Click to hide internal directories.