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 ¶
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
Click to show internal directories.
Click to hide internal directories.