Versions in this module Expand all Collapse all v0 v0.1.0 Nov 17, 2026 Changes in this version + var ErrAuthentication = errors.New("cipherstash: authentication failed") + var ErrConfig = errors.New("cipherstash: invalid configuration") + var ErrResponse = errors.New("cipherstash: invalid service response") + var ErrTransport = errors.New("cipherstash: transport failed") + func NewTokenSource(ctx context.Context, crn CRN, key AccessKey, opts ...Option) (oauth2.TokenSource, error) + func ZeroKMSURL(token *oauth2.Token) (*url.URL, error) + type AccessKey interface + Validate func() error + type AdminAccessKey struct + func ParseAdminAccessKey(value string) (AdminAccessKey, error) + func (AdminAccessKey) Format(f fmt.State, _ rune) + func (k *AdminAccessKey) EnvDecode(_ context.Context, value string) error + func (k AdminAccessKey) Validate() error + type CRN struct + func ParseCRN(value string) (CRN, error) + func (c *CRN) EnvDecode(_ context.Context, value string) error + func (c CRN) CTSURL() string + func (c CRN) String() string + func (c CRN) Validate() error + func (c CRN) WorkspaceID() string + type ControlAccessKey struct + func ParseControlAccessKey(value string) (ControlAccessKey, error) + func (ControlAccessKey) Format(f fmt.State, _ rune) + func (k *ControlAccessKey) EnvDecode(_ context.Context, value string) error + func (k ControlAccessKey) Validate() error + type MemberAccessKey struct + func ParseMemberAccessKey(value string) (MemberAccessKey, error) + func (MemberAccessKey) Format(f fmt.State, _ rune) + func (k *MemberAccessKey) EnvDecode(_ context.Context, value string) error + func (k MemberAccessKey) Validate() error + type Option func(*options) + func WithCTSURL(ctsURL *url.URL) Option + func WithTransport(transport http.RoundTripper) Option