Documentation
¶
Overview ¶
Package sandbox provisions anonymous Stripe sandbox environments.
Index ¶
- Variables
- func SolveChallenge(ctx context.Context, algorithm, challenge, salt string) (int64, error)
- type ChallengeResponse
- type Client
- type HTTPError
- type ProvisionRequest
- type ProvisionResponse
- func (r *ProvisionResponse) GetAccountID() string
- func (r *ProvisionResponse) GetClaimURL() string
- func (r *ProvisionResponse) GetExpiresAt() string
- func (r *ProvisionResponse) GetPublishableKey() string
- func (r *ProvisionResponse) GetSecretKey() string
- func (r *ProvisionResponse) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedAlgorithm = errors.New("unsupported algorithm: only SHA-256 is supported") ErrMaxIterationsReached = errors.New("proof-of-work exceeded maximum iterations") )
View Source
var GitConfigFunc = defaultGitConfig
GitConfigFunc resolves git config values. Replaceable in tests.
Functions ¶
Types ¶
type ChallengeResponse ¶
type Client ¶
func (*Client) GetChallenge ¶
func (*Client) Provision ¶
func (c *Client) Provision(ctx context.Context, req ProvisionRequest) (*ProvisionResponse, error)
type ProvisionRequest ¶
type ProvisionResponse ¶
type ProvisionResponse struct {
// contains filtered or unexported fields
}
ProvisionResponse wraps the server response loosely so field additions or type changes don't break the CLI.
func (*ProvisionResponse) GetAccountID ¶
func (r *ProvisionResponse) GetAccountID() string
func (*ProvisionResponse) GetClaimURL ¶
func (r *ProvisionResponse) GetClaimURL() string
func (*ProvisionResponse) GetExpiresAt ¶
func (r *ProvisionResponse) GetExpiresAt() string
func (*ProvisionResponse) GetPublishableKey ¶
func (r *ProvisionResponse) GetPublishableKey() string
func (*ProvisionResponse) GetSecretKey ¶
func (r *ProvisionResponse) GetSecretKey() string
func (*ProvisionResponse) UnmarshalJSON ¶
func (r *ProvisionResponse) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.