Versions in this module Expand all Collapse all v0 v0.0.2 Sep 12, 2026 v0.0.1 Sep 11, 2026 Changes in this version + const DefaultTimeout + var ErrKindNotServed = errors.New("this project does not offer that kind of resource") + func ConditionTrue(obj Object, conditionType string) bool + func IsForbidden(err error) bool + func IsNotFound(err error) bool + func Nested(obj Object, path ...string) (any, bool) + func NestedInt64(obj Object, path ...string) (int64, bool) + func NestedMap(obj Object, path ...string) (map[string]any, bool) + func NestedSlice(obj Object, path ...string) ([]any, bool) + func NestedString(obj Object, path ...string) (string, bool) + type APIError struct + Body string + Code int + Status *metav1.Status + func (e *APIError) Error() string + func (e *APIError) FieldErrors() []FieldError + func (e *APIError) IsForbidden() bool + func (e *APIError) IsNotFound() bool + type Client struct + func New(cfg Config) (*Client, error) + func (c *Client) As(project, bearerToken string) *Project + type Config struct + BaseURL string + CACert []byte + Timeout time.Duration + Transport http.RoundTripper + type FieldError struct + Field string + Message string + type Object = map[string]any + type Project struct + func (p *Project) Create(ctx context.Context, r Resource, obj Object, dryRun bool) (Object, error) + func (p *Project) Get(ctx context.Context, r Resource, namespace, name string) (Object, error) + func (p *Project) List(ctx context.Context, r Resource, namespace string) ([]Object, error) + func (p *Project) Name() string + func (p *Project) OpenAPI(ctx context.Context, group, version string) (map[string]any, error) + func (p *Project) Resolve(ctx context.Context, group, version, kindOrResource string) (Resource, error) + func (p *Project) Update(ctx context.Context, r Resource, obj Object, dryRun bool) (Object, error) + type Resource struct + Group string + Kind string + Namespaced bool + Resource string + Version string + func (r Resource) GroupVersion() string