Documentation ¶
Index ¶
- type AccessControl
- type AccessControlEntry
- type Backend
- type Director
- type DirectorType
- type EdgeDictionary
- type EdgeDictionaryItem
- type FastlyApiFetcher
- type FastlyClient
- func (c *FastlyClient) LatestVersion(ctx context.Context) (int64, error)
- func (c *FastlyClient) ListAccessControlEntries(ctx context.Context, aclId string) ([]*AccessControlEntry, error)
- func (c *FastlyClient) ListAccessControlLists(ctx context.Context, version int64) ([]*AccessControl, error)
- func (c *FastlyClient) ListBackends(ctx context.Context, version int64) ([]*Backend, error)
- func (c *FastlyClient) ListEdgeDictionaries(ctx context.Context, version int64) ([]*EdgeDictionary, error)
- func (c *FastlyClient) ListEdgeDictionaryItems(ctx context.Context, dictId string) ([]*EdgeDictionaryItem, error)
- func (c *FastlyClient) ListSnippets(ctx context.Context, version int64) ([]*VCLSnippet, error)
- type VCLSnippet
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControl ¶ added in v0.7.0
type AccessControl struct { Id string `json:"id"` Name string `json:"name"` Entries []*AccessControlEntry }
type AccessControlEntry ¶ added in v0.7.0
type Director ¶ added in v0.9.3
type Director struct { Name string `json:"name"` Type DirectorType `json:"type"` Backends []string `json:"backends"` }
type DirectorType ¶ added in v0.9.3
type DirectorType int8
const ( Random DirectorType = iota + 1 Hash Client )
type EdgeDictionary ¶
type EdgeDictionary struct { Id string `json:"id"` Name string `json:"name"` WriteOnly bool `json:"write_only"` Items []*EdgeDictionaryItem }
type EdgeDictionaryItem ¶
type FastlyApiFetcher ¶ added in v0.9.3
type FastlyApiFetcher struct {
// contains filtered or unexported fields
}
func NewFastlyApiFetcher ¶ added in v0.9.3
func NewFastlyApiFetcher(serviceId, apiKey string, timeout time.Duration) *FastlyApiFetcher
func (*FastlyApiFetcher) Acls ¶ added in v0.9.3
func (f *FastlyApiFetcher) Acls() ([]*types.RemoteAcl, error)
func (*FastlyApiFetcher) Backends ¶ added in v0.9.3
func (f *FastlyApiFetcher) Backends() ([]*types.RemoteBackend, error)
func (*FastlyApiFetcher) Dictionaries ¶ added in v0.9.3
func (f *FastlyApiFetcher) Dictionaries() ([]*types.RemoteDictionary, error)
type FastlyClient ¶
type FastlyClient struct {
// contains filtered or unexported fields
}
func NewFastlyClient ¶
func NewFastlyClient(c *http.Client, serviceId, apiKey string) *FastlyClient
func (*FastlyClient) LatestVersion ¶
func (c *FastlyClient) LatestVersion(ctx context.Context) (int64, error)
func (*FastlyClient) ListAccessControlEntries ¶ added in v0.7.0
func (c *FastlyClient) ListAccessControlEntries(ctx context.Context, aclId string) ([]*AccessControlEntry, error)
func (*FastlyClient) ListAccessControlLists ¶ added in v0.7.0
func (c *FastlyClient) ListAccessControlLists(ctx context.Context, version int64) ([]*AccessControl, error)
func (*FastlyClient) ListBackends ¶ added in v0.9.3
func (*FastlyClient) ListEdgeDictionaries ¶
func (c *FastlyClient) ListEdgeDictionaries(ctx context.Context, version int64) ([]*EdgeDictionary, error)
func (*FastlyClient) ListEdgeDictionaryItems ¶
func (c *FastlyClient) ListEdgeDictionaryItems(ctx context.Context, dictId string) ([]*EdgeDictionaryItem, error)
func (*FastlyClient) ListSnippets ¶ added in v0.9.3
func (c *FastlyClient) ListSnippets(ctx context.Context, version int64) ([]*VCLSnippet, error)
type VCLSnippet ¶ added in v0.9.3
Click to show internal directories.
Click to hide internal directories.