forwarders

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	Pem string `json:"pem"`
}

type CertificateInfo

type CertificateInfo struct {
	Content    *string `json:"content,omitempty"`
	Hash       *string `json:"hash,omitempty"`
	Issuer     *string `json:"issuer,omitempty"`
	LastUpdate *string `json:"lastUpdate,omitempty"`
	NotAfter   *string `json:"notAfter,omitempty"`
	NotBefore  *string `json:"notBefore,omitempty"`
	Slot       *int64  `json:"slot,omitempty"`
	Subject    *string `json:"subject,omitempty"`
}

type Error

type Error struct {
	Code    *string                `json:"code,omitempty"`
	Details map[string]interface{} `json:"details,omitempty"`
	Message *string                `json:"message,omitempty"`
}

type Service

type Service services.BaseService

func NewService

func NewService(iClient services.IClient) *Service

NewService creates a new forwarders service client from the given Config

func (*Service) AddCertificate

func (s *Service) AddCertificate(certificate Certificate, resp ...*http.Response) (*CertificateInfo, error)

AddCertificate - Adds a certificate to a vacant slot on a tenant. Parameters:

certificate
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) DeleteCertificate

func (s *Service) DeleteCertificate(slot string, resp ...*http.Response) error

DeleteCertificate - Removes a certificate on a particular slot on a tenant. Parameters:

slot
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) DeleteCertificates

func (s *Service) DeleteCertificates(resp ...*http.Response) error

DeleteCertificates - Removes all certificates on a tenant. Parameters:

resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) ListCertificates

func (s *Service) ListCertificates(resp ...*http.Response) ([]CertificateInfo, error)

ListCertificates - Returns a list of all certificates for a tenant. Parameters:

resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

type Servicer

type Servicer interface {
	//interfaces that are auto-generated in interface_generated.go
	ServicerGenerated
}

Servicer represents the interface for implementing all endpoints for this service

type ServicerGenerated added in v1.10.0

type ServicerGenerated interface {
	/*
		AddCertificate - Adds a certificate to a vacant slot on a tenant.
		Parameters:
			certificate
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	AddCertificate(certificate Certificate, resp ...*http.Response) (*CertificateInfo, error)
	/*
		DeleteCertificate - Removes a certificate on a particular slot on a tenant.
		Parameters:
			slot
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	DeleteCertificate(slot string, resp ...*http.Response) error
	/*
		DeleteCertificates - Removes all certificates on a tenant.
		Parameters:
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	DeleteCertificates(resp ...*http.Response) error
	/*
		ListCertificates - Returns a list of all certificates for a tenant.
		Parameters:
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	ListCertificates(resp ...*http.Response) ([]CertificateInfo, error)
}

ServicerGenerated represents the interface for implementing all endpoints for this service

Jump to

Keyboard shortcuts

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