ecloudflex

package
v1.3.22 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Code generated by github.com/ukfast/sdk-go/pkg/gen/model_paginated. DO NOT EDIT.

Code generated by github.com/ukfast/sdk-go/pkg/gen/response. DO NOT EDIT.

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) (*PaginatedProject, error)
	GetProject(projectID int) (Project, error)
}

ECloudFlexService is an interface for managing eCloud Flex

type GetProjectResponseBody

type GetProjectResponseBody struct {
	connection.APIResponseBody

	Data Project `json:"data"`
}

GetProjectResponseBody represents an API response body containing Project data

type GetProjectSliceResponseBody

type GetProjectSliceResponseBody struct {
	connection.APIResponseBody

	Data []Project `json:"data"`
}

GetProjectSliceResponseBody represents an API response body containing []Project data

type PaginatedProject

type PaginatedProject struct {
	*connection.PaginatedBase

	Items []Project
}

PaginatedProject represents a paginated collection of Project

func NewPaginatedProject

NewPaginatedProject returns a pointer to an initialized PaginatedProject struct

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) (*PaginatedProject, 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