namespace

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCACertsParams

type AddCACertsParams struct {
	Namespace        string
	Certs            []cert.CACert
	ResourceVersion  string
	AsyncOperationID string
}

AddCACertsParams contains parameters for adding CA certificates to a namespace.

type AddCertFiltersParams

type AddCertFiltersParams struct {
	Namespace        string
	Filters          []*namespacev1.CertificateFilterSpec
	ResourceVersion  string
	AsyncOperationID string
}

AddCertFiltersParams contains parameters for adding certificate filters to a namespace.

type Client

type Client struct {
	Cloud CloudService
}

func NewClient

func NewClient(cloudClient cloudservice.CloudServiceClient) *Client

func (*Client) AddCACerts

func (c *Client) AddCACerts(ctx context.Context, params AddCACertsParams) (*operation.AsyncOperation, error)

AddCACerts adds CA certificates to the namespace's mTLS authentication configuration. Certificates that already exist (matched by fingerprint) are silently filtered out. If all certificates already exist, the server will return a "nothing to change" error.

func (*Client) AddCertFilters

func (c *Client) AddCertFilters(ctx context.Context, params AddCertFiltersParams) (*operation.AsyncOperation, error)

AddCertFilters adds certificate filters to the namespace's mTLS authentication configuration. The server will handle duplicate detection and return an appropriate error if needed.

func (*Client) CreateSearchAttribute

func (c *Client) CreateSearchAttribute(ctx context.Context, params CreateSearchAttributeParams) (*operation.AsyncOperation, error)

CreateSearchAttribute adds a new custom search attribute to the namespace spec. Returns an error if a search attribute with the same name already exists.

func (*Client) DeleteCACerts

func (c *Client) DeleteCACerts(ctx context.Context, params DeleteCACertsParams) (*operation.AsyncOperation, error)

DeleteCACerts removes CA certificates from the namespace's mTLS authentication configuration. Certificates are matched by fingerprint. If removing all certificates, the mTLS configuration is set to nil.

func (*Client) DeleteCertFilters

func (c *Client) DeleteCertFilters(ctx context.Context, params DeleteCertFiltersParams) (*operation.AsyncOperation, error)

DeleteCertFilters removes certificate filters from the namespace's mTLS authentication configuration. Filters are matched by exact field equality.

func (*Client) DeleteCodec

func (c *Client) DeleteCodec(ctx context.Context, params DeleteCodecParams) (*operation.AsyncOperation, error)

DeleteCodec removes the codec server configuration from the specified namespace.

func (*Client) GetCodecServer

func (c *Client) GetCodecServer(ctx context.Context, namespaceName string) (*namespacev1.CodecServerSpec, error)

GetCodecServer retrieves the codec server configuration for the specified namespace.

func (*Client) GetNamespace

func (c *Client) GetNamespace(ctx context.Context, namespace string) (*namespacev1.Namespace, error)

func (*Client) GetNamespaces

func (c *Client) GetNamespaces(ctx context.Context, params GetNamespacesParams) ([]*namespacev1.Namespace, string, error)

func (*Client) ListCACerts

func (c *Client) ListCACerts(ctx context.Context, name string) ([]cert.CACert, error)

ListCACerts retrieves all CA certificates configured for mTLS authentication on the specified namespace.

func (*Client) ListCertFilters

func (c *Client) ListCertFilters(ctx context.Context, name string) ([]*namespacev1.CertificateFilterSpec, error)

ListCertFilters retrieves all certificate filters configured for mTLS authentication on the specified namespace.

func (*Client) ListSearchAttributes

func (c *Client) ListSearchAttributes(ctx context.Context, name string) ([]SearchAttribute, error)

ListSearchAttributes retrieves all custom search attributes configured for the namespace.

func (*Client) RenameSearchAttribute

func (c *Client) RenameSearchAttribute(ctx context.Context, params RenameSearchAttributeParams) (*operation.AsyncOperation, error)

RenameSearchAttribute renames an existing custom search attribute. AIDEV-NOTE: Uses the dedicated RenameCustomSearchAttribute RPC rather than UpdateNamespace because the backend must migrate existing workflow data to the new attribute name.

func (*Client) SetCodec

func (c *Client) SetCodec(ctx context.Context, params SetCodecParams) (*operation.AsyncOperation, error)

SetCodec sets the codec server configuration on the specified namespace.

func (*Client) UpdateNamespace

func (c *Client) UpdateNamespace(ctx context.Context, params UpdateNamespaceParams) (*operation.AsyncOperation, error)

type CloudService

CloudService defines the interface for cloud service operations needed by the namespace client.

type CreateSearchAttributeParams

type CreateSearchAttributeParams struct {
	Namespace        string
	Name             string
	Type             namespacev1.NamespaceSpec_SearchAttributeType
	ResourceVersion  string
	AsyncOperationID string
}

CreateSearchAttributeParams contains parameters for adding a search attribute to a namespace.

type DeleteCACertsParams

type DeleteCACertsParams struct {
	Namespace        string
	Certs            []cert.CACert
	ResourceVersion  string
	AsyncOperationID string
}

DeleteCACertsParams contains parameters for deleting CA certificates from a namespace.

type DeleteCertFiltersParams

type DeleteCertFiltersParams struct {
	Namespace        string
	Filters          []*namespacev1.CertificateFilterSpec
	ResourceVersion  string
	AsyncOperationID string
}

DeleteCertFiltersParams contains parameters for deleting certificate filters from a namespace.

type DeleteCodecParams

type DeleteCodecParams struct {
	Namespace        string
	ResourceVersion  string
	AsyncOperationID string
}

DeleteCodecParams contains parameters for removing the codec server from a namespace.

type GetNamespacesParams

type GetNamespacesParams struct {
	PageSize  int32
	PageToken string
	Name      string
	ProjectID string
}

type RenameSearchAttributeParams

type RenameSearchAttributeParams struct {
	Namespace                         string
	ExistingCustomSearchAttributeName string
	NewCustomSearchAttributeName      string
	ResourceVersion                   string
	AsyncOperationID                  string
}

RenameSearchAttributeParams contains parameters for renaming a custom search attribute.

type SearchAttribute

type SearchAttribute struct {
	Name string
	Type namespacev1.NamespaceSpec_SearchAttributeType
}

SearchAttribute represents a custom search attribute with its name and type.

type SetCodecParams

type SetCodecParams struct {
	Namespace                        string
	Endpoint                         string
	PassAccessToken                  bool
	IncludeCrossOriginCredentials    bool
	CustomErrorMessageDefaultMessage string
	CustomErrorMessageDefaultLink    string
	ResourceVersion                  string
	AsyncOperationID                 string
}

SetCodecParams contains parameters for setting the codec server on a namespace.

type UpdateNamespaceParams

type UpdateNamespaceParams struct {
	Namespace        string
	Spec             *namespacev1.NamespaceSpec
	AsyncOperationID string
	ResourceVersion  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL