disabled

package
v8.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 3 Imported by: 0

Documentation

Overview

Package disabled provides a TrafficVault implementation that simply returns an error for every method stating that Traffic Vault is disabled. This is used instead of passing around a nil TrafficVault instance when Traffic Vault is not enabled, in order to reduce the likelihood of accidentally de-referencing a nil pointer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disabled

type Disabled struct {
}

func (*Disabled) DeleteDNSSECKeys

func (d *Disabled) DeleteDNSSECKeys(cdnName string, tx *sql.Tx, ctx context.Context) error

func (*Disabled) DeleteDeliveryServiceSSLKeys

func (d *Disabled) DeleteDeliveryServiceSSLKeys(xmlID string, version string, tx *sql.Tx, ctx context.Context) error

func (*Disabled) DeleteOldDeliveryServiceSSLKeys

func (d *Disabled) DeleteOldDeliveryServiceSSLKeys(existingXMLIDs map[string]struct{}, cdnName string, tx *sql.Tx, ctx context.Context) error

func (*Disabled) DeleteURISigningKeys

func (d *Disabled) DeleteURISigningKeys(xmlID string, tx *sql.Tx, ctx context.Context) error

func (*Disabled) DeleteURLSigKeys

func (d *Disabled) DeleteURLSigKeys(xmlID string, tx *sql.Tx, ctx context.Context) error

func (*Disabled) GetBucketKey

func (d *Disabled) GetBucketKey(bucket string, key string, tx *sql.Tx) ([]byte, bool, error)

func (*Disabled) GetCDNSSLKeys

func (d *Disabled) GetCDNSSLKeys(cdnName string, tx *sql.Tx, ctx context.Context) ([]tc.CDNSSLKey, error)

func (*Disabled) GetDNSSECKeys

func (d *Disabled) GetDNSSECKeys(cdnName string, tx *sql.Tx, ctx context.Context) (tc.DNSSECKeysTrafficVault, bool, error)

func (*Disabled) GetDeliveryServiceSSLKeys

func (d *Disabled) GetDeliveryServiceSSLKeys(xmlID string, version string, tx *sql.Tx, ctx context.Context) (tc.DeliveryServiceSSLKeysV15, bool, error)

func (*Disabled) GetExpirationInformation

func (d *Disabled) GetExpirationInformation(tx *sql.Tx, ctx context.Context, days int) ([]tc.SSLKeyExpirationInformation, error)

func (*Disabled) GetURISigningKeys

func (d *Disabled) GetURISigningKeys(xmlID string, tx *sql.Tx, ctx context.Context) ([]byte, bool, error)

func (*Disabled) GetURLSigKeys

func (d *Disabled) GetURLSigKeys(xmlID string, tx *sql.Tx, ctx context.Context) (tc.URLSigKeys, bool, error)

func (*Disabled) Ping

func (d *Disabled) Ping(tx *sql.Tx, ctx context.Context) (tc.TrafficVaultPing, error)

func (*Disabled) PutDNSSECKeys

func (d *Disabled) PutDNSSECKeys(cdnName string, keys tc.DNSSECKeysTrafficVault, tx *sql.Tx, ctx context.Context) error

func (*Disabled) PutDeliveryServiceSSLKeys

func (d *Disabled) PutDeliveryServiceSSLKeys(key tc.DeliveryServiceSSLKeys, tx *sql.Tx, ctx context.Context) error

func (*Disabled) PutURISigningKeys

func (d *Disabled) PutURISigningKeys(xmlID string, keysJson []byte, tx *sql.Tx, ctx context.Context) error

func (*Disabled) PutURLSigKeys

func (d *Disabled) PutURLSigKeys(xmlID string, keys tc.URLSigKeys, tx *sql.Tx, ctx context.Context) error

type Error

type Error string

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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