Versions in this module Expand all Collapse all v0 v0.6.76 Nov 22, 2026 Changes in this version + const DefaultAddress + const PreviewHeader + const RoleEditor + const RoleOwner + const RoleViewer + const TokenAudience + func IsAlreadyExists(err error) bool + func IsNotFound(err error) bool + func MergeBinding(policy *ateapi.AccessPolicy, role string, members ...string) bool + type API interface + CreateActorTemplate func(ctx context.Context, template *ateapi.ActorTemplate, preview bool) (*ateapi.ActorTemplate, error) + DeleteActor func(ctx context.Context, atespace, name string) error + DeleteActorTemplate func(ctx context.Context, atespace, name string) error + DeleteAtespace func(ctx context.Context, name string) error + DeleteTag func(ctx context.Context, atespace, name string) error + DrainWorker func(ctx context.Context, name string) (*ateapi.Worker, error) + EnsureAtespace func(ctx context.Context, name string) error + EnsureAtespaceAccessPolicy func(ctx context.Context, atespace, role string, members ...string) error + GetActorTemplate func(ctx context.Context, atespace, name string) (*ateapi.ActorTemplate, error) + ListActorTemplates func(ctx context.Context, atespace string) ([]*ateapi.ActorTemplate, error) + ListActors func(ctx context.Context, atespace string) ([]*ateapi.Actor, error) + ListTags func(ctx context.Context, atespace string) ([]*ateapi.Tag, error) + ListWorkers func(ctx context.Context) ([]*ateapi.Worker, error) + type Client struct + func Dial(cfg Config) (*Client, error) + func DialWith(address, serverName string, roots *x509.CertPool, ...) (*Client, error) + func NewFromConn(conn *grpc.ClientConn) *Client + func (c *Client) Close() error + func (c *Client) CreateActorTemplate(ctx context.Context, template *ateapi.ActorTemplate, preview bool) (*ateapi.ActorTemplate, error) + func (c *Client) DeleteActor(ctx context.Context, atespace, name string) error + func (c *Client) DeleteActorTemplate(ctx context.Context, atespace, name string) error + func (c *Client) DeleteAtespace(ctx context.Context, name string) error + func (c *Client) DeleteTag(ctx context.Context, atespace, name string) error + func (c *Client) DrainWorker(ctx context.Context, name string) (*ateapi.Worker, error) + func (c *Client) EnsureAtespace(ctx context.Context, name string) error + func (c *Client) EnsureAtespaceAccessPolicy(ctx context.Context, atespace, role string, members ...string) error + func (c *Client) GetActorTemplate(ctx context.Context, atespace, name string) (*ateapi.ActorTemplate, error) + func (c *Client) ListActorTemplates(ctx context.Context, atespace string) ([]*ateapi.ActorTemplate, error) + func (c *Client) ListActors(ctx context.Context, atespace string) ([]*ateapi.Actor, error) + func (c *Client) ListTags(ctx context.Context, atespace string) ([]*ateapi.Tag, error) + func (c *Client) ListWorkers(ctx context.Context) ([]*ateapi.Worker, error) + type Config struct + Address string + CAFile string + ServerName string + TokenFile string