Documentation
¶
Overview ¶
Package api provides abstractions for talking to the Fastly API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
HTTPClient models a concrete http.Client. It's a consumer contract for some commands which need to make direct HTTP requests to the API, because the official Fastly client library lacks certain endpoints, so we call the API directly.
type Interface ¶
type Interface interface { GetTokenSelf() (*fastly.Token, error) CreateService(*fastly.CreateServiceInput) (*fastly.Service, error) ListServices(*fastly.ListServicesInput) ([]*fastly.Service, error) GetService(*fastly.GetServiceInput) (*fastly.Service, error) GetServiceDetails(*fastly.GetServiceInput) (*fastly.ServiceDetail, error) UpdateService(*fastly.UpdateServiceInput) (*fastly.Service, error) DeleteService(*fastly.DeleteServiceInput) error CloneVersion(*fastly.CloneVersionInput) (*fastly.Version, error) ListVersions(*fastly.ListVersionsInput) ([]*fastly.Version, error) UpdateVersion(*fastly.UpdateVersionInput) (*fastly.Version, error) ActivateVersion(*fastly.ActivateVersionInput) (*fastly.Version, error) DeactivateVersion(*fastly.DeactivateVersionInput) (*fastly.Version, error) LockVersion(*fastly.LockVersionInput) (*fastly.Version, error) LatestVersion(*fastly.LatestVersionInput) (*fastly.Version, error) CreateDomain(*fastly.CreateDomainInput) (*fastly.Domain, error) ListDomains(*fastly.ListDomainsInput) ([]*fastly.Domain, error) GetDomain(*fastly.GetDomainInput) (*fastly.Domain, error) UpdateDomain(*fastly.UpdateDomainInput) (*fastly.Domain, error) DeleteDomain(*fastly.DeleteDomainInput) error CreateBackend(*fastly.CreateBackendInput) (*fastly.Backend, error) ListBackends(*fastly.ListBackendsInput) ([]*fastly.Backend, error) GetBackend(*fastly.GetBackendInput) (*fastly.Backend, error) UpdateBackend(*fastly.UpdateBackendInput) (*fastly.Backend, error) DeleteBackend(*fastly.DeleteBackendInput) error CreateHealthCheck(*fastly.CreateHealthCheckInput) (*fastly.HealthCheck, error) ListHealthChecks(*fastly.ListHealthChecksInput) ([]*fastly.HealthCheck, error) GetHealthCheck(*fastly.GetHealthCheckInput) (*fastly.HealthCheck, error) UpdateHealthCheck(*fastly.UpdateHealthCheckInput) (*fastly.HealthCheck, error) DeleteHealthCheck(*fastly.DeleteHealthCheckInput) error CreateBigQuery(*fastly.CreateBigQueryInput) (*fastly.BigQuery, error) ListBigQueries(*fastly.ListBigQueriesInput) ([]*fastly.BigQuery, error) GetBigQuery(*fastly.GetBigQueryInput) (*fastly.BigQuery, error) UpdateBigQuery(*fastly.UpdateBigQueryInput) (*fastly.BigQuery, error) DeleteBigQuery(*fastly.DeleteBigQueryInput) error CreateS3(*fastly.CreateS3Input) (*fastly.S3, error) ListS3s(*fastly.ListS3sInput) ([]*fastly.S3, error) GetS3(*fastly.GetS3Input) (*fastly.S3, error) UpdateS3(*fastly.UpdateS3Input) (*fastly.S3, error) DeleteS3(*fastly.DeleteS3Input) error GetUser(*fastly.GetUserInput) (*fastly.User, error) }
Interface models the methods of the Fastly API client that we use. It exists to allow for easier testing, in combination with Mock.
Click to show internal directories.
Click to hide internal directories.