resmgr

package
v0.0.0-...-d70e375 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright © 2020 The Platform9 Systems Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resmgr

type Resmgr interface {
	AuthorizeHost(hostID, token string, version string) error
	GetHostId(token string, hostIP []string) []string
	HostStatus(token string, hostID string) bool
}

func NewResmgr

func NewResmgr(fqdn string, maxHttpRetry int, minWait, maxWait time.Duration, allowInsecure bool) Resmgr

type ResmgrImpl

type ResmgrImpl struct {
	// contains filtered or unexported fields
}

func (*ResmgrImpl) AuthorizeHost

func (c *ResmgrImpl) AuthorizeHost(hostID string, token string, version string) error

AuthorizeHost registers the host with hostID to the resmgr.

func (*ResmgrImpl) GetHostId

func (c *ResmgrImpl) GetHostId(token string, hostIPs []string) []string

func (*ResmgrImpl) HostStatus

func (c *ResmgrImpl) HostStatus(token string, hostID string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL