ecloudflex

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECloudFlexService

type ECloudFlexService interface {
	GetProjects(parameters connection.APIRequestParameters) ([]Project, error)
	GetProjectsPaginated(parameters connection.APIRequestParameters) (*connection.Paginated[Project], error)
	GetProject(projectID int) (Project, error)
}

ECloudFlexService is an interface for managing eCloud Flex

type Project

type Project struct {
	ID        int                 `json:"id"`
	Name      string              `json:"name"`
	CreatedAt connection.DateTime `json:"created_at"`
}

Project represents an eCloud Flex project

type ProjectNotFoundError

type ProjectNotFoundError struct {
	ID int
}

ProjectNotFoundError indicates a project was not found

func (*ProjectNotFoundError) Error

func (e *ProjectNotFoundError) Error() string

type Service

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

Service implements ECloudFlexService for managing ECloudFlex certificates via the UKFast API

func NewService

func NewService(connection connection.Connection) *Service

NewService returns a new instance of ECloudFlexService

func (*Service) GetProject

func (s *Service) GetProject(projectID int) (Project, error)

GetProject retrieves a single project by id

func (*Service) GetProjects

func (s *Service) GetProjects(parameters connection.APIRequestParameters) ([]Project, error)

GetProjects retrieves a list of projects

func (*Service) GetProjectsPaginated

func (s *Service) GetProjectsPaginated(parameters connection.APIRequestParameters) (*connection.Paginated[Project], error)

GetProjectsPaginated retrieves a paginated list of projects

Jump to

Keyboard shortcuts

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