version

package
v0.0.0-...-367d749 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ServiceName - The name of service.
	ServiceName = "Version"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VersionAPI

type VersionAPI interface {
	GetVersion() (output *models.Version, resp *http.Response, err error)
	GetVersionWithContext(ctx context.Context) (output *models.Version, resp *http.Response, err error)
}

type VersionService

type VersionService struct {
	*client.PfClient
}

func New

func New(cfg *config.Config) *VersionService

New creates a new instance of the VersionService client.

func (*VersionService) GetVersion

func (s *VersionService) GetVersion() (output *models.Version, resp *http.Response, err error)

GetVersion - Gets the server version. RequestType: GET Input:

func (*VersionService) GetVersionWithContext

func (s *VersionService) GetVersionWithContext(ctx context.Context) (output *models.Version, resp *http.Response, err error)

GetVersionWithContext - Gets the server version. RequestType: GET Input: ctx context.Context,

Jump to

Keyboard shortcuts

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