Versions in this module Expand all Collapse all v0 v0.1.0 Sep 10, 2026 Changes in this version + var ErrNoRenewal = errors.New("no renewal mechanism configured") + func ExitCode(err error) int + func Main(cfg Config) + func ReadValue(stdin io.Reader, value string) ([]byte, error) + func Run(ctx context.Context, cfg Config, args []string) error + func Version() semver.Version + type Auth interface + Attach func(req *http.Request, cred Credential) + Login func(ctx context.Context, tr Transport, identity, secret string) (Credential, error) + Logout func(ctx context.Context, tr Transport, cred Credential) error + type Config struct + APIPath string + Auth Auth + BaseURL string + Env string + EnvPrefix string + Extra []*ff.Command + IdentityName string + Program string + ReloginOnExpiry bool + StateDir string + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + Version string + WhoamiPath string + type Credential struct + ExpiresAt time.Time + Extra map[string]string + Name string + Renew string + Value string + func (c Credential) Expired() bool + func (c Credential) IsZero() bool + type Refresher interface + Refresh func(ctx context.Context, tr Transport, cred Credential) (Credential, error) + type Response struct + Body []byte + Cookies []*http.Cookie + Header http.Header + Status int + func (r *Response) OK() bool + type SelfAuthenticator interface + SelfAuthenticating func(path string) bool + type StatusError struct + Body []byte + Method string + Path string + Status int + func (e *StatusError) Error() string + type Transport interface + Do func(ctx context.Context, method, path string, body []byte, cred Credential) (*Response, error) + type TransportError struct + Err error + Method string + Path string + func (e *TransportError) Error() string + func (e *TransportError) Unwrap() error + type UsageError struct + Err error + func (e *UsageError) Error() string + func (e *UsageError) Unwrap() error