Documentation
¶
Index ¶
- type AddCACertsParams
- type AddCertFiltersParams
- type Client
- func (c *Client) AddCACerts(ctx context.Context, params AddCACertsParams) (*operation.AsyncOperation, error)
- func (c *Client) AddCertFilters(ctx context.Context, params AddCertFiltersParams) (*operation.AsyncOperation, error)
- func (c *Client) CreateSearchAttribute(ctx context.Context, params CreateSearchAttributeParams) (*operation.AsyncOperation, error)
- func (c *Client) DeleteCACerts(ctx context.Context, params DeleteCACertsParams) (*operation.AsyncOperation, error)
- func (c *Client) DeleteCertFilters(ctx context.Context, params DeleteCertFiltersParams) (*operation.AsyncOperation, error)
- func (c *Client) DeleteCodec(ctx context.Context, params DeleteCodecParams) (*operation.AsyncOperation, error)
- func (c *Client) GetCodecServer(ctx context.Context, namespaceName string) (*namespacev1.CodecServerSpec, error)
- func (c *Client) GetNamespace(ctx context.Context, namespace string) (*namespacev1.Namespace, error)
- func (c *Client) GetNamespaces(ctx context.Context, params GetNamespacesParams) ([]*namespacev1.Namespace, string, error)
- func (c *Client) ListCACerts(ctx context.Context, name string) ([]cert.CACert, error)
- func (c *Client) ListCertFilters(ctx context.Context, name string) ([]*namespacev1.CertificateFilterSpec, error)
- func (c *Client) ListSearchAttributes(ctx context.Context, name string) ([]SearchAttribute, error)
- func (c *Client) RenameSearchAttribute(ctx context.Context, params RenameSearchAttributeParams) (*operation.AsyncOperation, error)
- func (c *Client) SetCodec(ctx context.Context, params SetCodecParams) (*operation.AsyncOperation, error)
- func (c *Client) UpdateNamespace(ctx context.Context, params UpdateNamespaceParams) (*operation.AsyncOperation, error)
- type CloudService
- type CreateSearchAttributeParams
- type DeleteCACertsParams
- type DeleteCertFiltersParams
- type DeleteCodecParams
- type GetNamespacesParams
- type RenameSearchAttributeParams
- type SearchAttribute
- type SetCodecParams
- type UpdateNamespaceParams
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 (*Client) GetNamespaces ¶
func (c *Client) GetNamespaces(ctx context.Context, params GetNamespacesParams) ([]*namespacev1.Namespace, string, error)
func (*Client) ListCACerts ¶
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 ¶
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 ¶
type CloudService interface {
GetNamespace(ctx context.Context, req *cloudservice.GetNamespaceRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespaceResponse, error)
GetNamespaces(ctx context.Context, req *cloudservice.GetNamespacesRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespacesResponse, error)
UpdateNamespace(ctx context.Context, req *cloudservice.UpdateNamespaceRequest, opts ...grpc.CallOption) (*cloudservice.UpdateNamespaceResponse, error)
RenameCustomSearchAttribute(ctx context.Context, req *cloudservice.RenameCustomSearchAttributeRequest, opts ...grpc.CallOption) (*cloudservice.RenameCustomSearchAttributeResponse, error)
UpdateNamespaceTags(ctx context.Context, req *cloudservice.UpdateNamespaceTagsRequest, opts ...grpc.CallOption) (*cloudservice.UpdateNamespaceTagsResponse, error)
}
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 ¶
DeleteCodecParams contains parameters for removing the codec server from a namespace.
type GetNamespacesParams ¶
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
}