Documentation ¶
Overview ¶
Package config implement the Configuration Management Client.
Index ¶
- func ContainsLabel(arr []string, searchFor string) bool
- func IsUUIDv4(key string, id []byte) error
- func IsValidName(name string) error
- type Client
- func (c *Client) Close() error
- func (c *Client) CreateApplication(ctx context.Context, request *configpb.CreateApplicationRequest, ...) (*configpb.CreateApplicationResponse, error)
- func (c *Client) CreateApplicationAgent(ctx context.Context, request *configpb.CreateApplicationAgentRequest, ...) (*configpb.CreateApplicationAgentResponse, error)
- func (c *Client) CreateApplicationSpace(ctx context.Context, request *configpb.CreateApplicationSpaceRequest, ...) (*configpb.CreateApplicationSpaceResponse, error)
- func (c *Client) CreateConfigNode(ctx context.Context, request *NodeRequest, opts ...grpc.CallOption) (*configpb.CreateConfigNodeResponse, error)
- func (c *Client) CreateOAuth2Application(ctx context.Context, request *configpb.CreateOAuth2ApplicationRequest, ...) (*configpb.CreateOAuth2ApplicationResponse, error)
- func (c *Client) CreateOAuth2Provider(ctx context.Context, request *configpb.CreateOAuth2ProviderRequest, ...) (*configpb.CreateOAuth2ProviderResponse, error)
- func (c *Client) CreateServiceAccount(ctx context.Context, request *configpb.CreateServiceAccountRequest, ...) (*configpb.CreateServiceAccountResponse, error)
- func (c *Client) CreateTenant(ctx context.Context, request *configpb.CreateTenantRequest, ...) (*configpb.CreateTenantResponse, error)
- func (c *Client) DeleteApplication(ctx context.Context, request *configpb.DeleteApplicationRequest, ...) (*configpb.DeleteApplicationResponse, error)
- func (c *Client) DeleteApplicationAgent(ctx context.Context, request *configpb.DeleteApplicationAgentRequest, ...) (*configpb.DeleteApplicationAgentResponse, error)
- func (c *Client) DeleteApplicationAgentCredential(ctx context.Context, request *configpb.DeleteApplicationAgentCredentialRequest, ...) (*configpb.DeleteApplicationAgentCredentialResponse, error)
- func (c *Client) DeleteApplicationSpace(ctx context.Context, request *configpb.DeleteApplicationSpaceRequest, ...) (*configpb.DeleteApplicationSpaceResponse, error)
- func (c *Client) DeleteConfigNode(ctx context.Context, req *NodeRequest, opts ...grpc.CallOption) (*configpb.DeleteConfigNodeResponse, error)
- func (c *Client) DeleteOAuth2Application(ctx context.Context, request *configpb.DeleteOAuth2ApplicationRequest, ...) (*configpb.DeleteOAuth2ApplicationResponse, error)
- func (c *Client) DeleteOAuth2Provider(ctx context.Context, request *configpb.DeleteOAuth2ProviderRequest, ...) (*configpb.DeleteOAuth2ProviderResponse, error)
- func (c *Client) DeleteServiceAccount(ctx context.Context, request *configpb.DeleteServiceAccountRequest, ...) (*configpb.DeleteServiceAccountResponse, error)
- func (c *Client) DeleteTenant(ctx context.Context, request *configpb.DeleteTenantRequest, ...) (*configpb.DeleteTenantResponse, error)
- func (c *Client) ListApplicationAgents(ctx context.Context, request *configpb.ListApplicationAgentsRequest, ...) (configpb.ConfigManagementAPI_ListApplicationAgentsClient, error)
- func (c *Client) ListApplicationSpaces(ctx context.Context, request *configpb.ListApplicationSpacesRequest, ...) (configpb.ConfigManagementAPI_ListApplicationSpacesClient, error)
- func (c *Client) ListApplications(ctx context.Context, request *configpb.ListApplicationsRequest, ...) (configpb.ConfigManagementAPI_ListApplicationsClient, error)
- func (c *Client) ListTenants(ctx context.Context, request *configpb.ListTenantsRequest, ...) (configpb.ConfigManagementAPI_ListTenantsClient, error)
- func (c *Client) ReadApplication(ctx context.Context, request *configpb.ReadApplicationRequest, ...) (*configpb.ReadApplicationResponse, error)
- func (c *Client) ReadApplicationAgent(ctx context.Context, request *configpb.ReadApplicationAgentRequest, ...) (*configpb.ReadApplicationAgentResponse, error)
- func (c *Client) ReadApplicationAgentCredential(ctx context.Context, request *configpb.ReadApplicationAgentCredentialRequest, ...) (*configpb.ReadApplicationAgentCredentialResponse, error)
- func (c *Client) ReadApplicationSpace(ctx context.Context, request *configpb.ReadApplicationSpaceRequest, ...) (*configpb.ReadApplicationSpaceResponse, error)
- func (c *Client) ReadConfigNode(ctx context.Context, req *NodeRequest, opts ...grpc.CallOption) (*configpb.ReadConfigNodeResponse, error)
- func (c *Client) ReadCustomer(ctx context.Context, request *configpb.ReadCustomerRequest, ...) (*configpb.ReadCustomerResponse, error)
- func (c *Client) ReadOAuth2Application(ctx context.Context, request *configpb.ReadOAuth2ApplicationRequest, ...) (*configpb.ReadOAuth2ApplicationResponse, error)
- func (c *Client) ReadOAuth2Provider(ctx context.Context, request *configpb.ReadOAuth2ProviderRequest, ...) (*configpb.ReadOAuth2ProviderResponse, error)
- func (c *Client) ReadServiceAccount(ctx context.Context, request *configpb.ReadServiceAccountRequest, ...) (*configpb.ReadServiceAccountResponse, error)
- func (c *Client) ReadTenant(ctx context.Context, request *configpb.ReadTenantRequest, ...) (*configpb.ReadTenantResponse, error)
- func (c *Client) RegisterApplicationAgentCredential(ctx context.Context, ...) (*configpb.RegisterApplicationAgentCredentialResponse, error)
- func (c *Client) UpdateApplication(ctx context.Context, request *configpb.UpdateApplicationRequest, ...) (*configpb.UpdateApplicationResponse, error)
- func (c *Client) UpdateApplicationAgent(ctx context.Context, request *configpb.UpdateApplicationAgentRequest, ...) (*configpb.UpdateApplicationAgentResponse, error)
- func (c *Client) UpdateApplicationSpace(ctx context.Context, request *configpb.UpdateApplicationSpaceRequest, ...) (*configpb.UpdateApplicationSpaceResponse, error)
- func (c *Client) UpdateConfigNode(ctx context.Context, req *NodeRequest, opts ...grpc.CallOption) (*configpb.UpdateConfigNodeResponse, error)
- func (c *Client) UpdateOAuth2Application(ctx context.Context, request *configpb.UpdateOAuth2ApplicationRequest, ...) (*configpb.UpdateOAuth2ApplicationResponse, error)
- func (c *Client) UpdateOAuth2Provider(ctx context.Context, request *configpb.UpdateOAuth2ProviderRequest, ...) (*configpb.UpdateOAuth2ProviderResponse, error)
- func (c *Client) UpdateServiceAccount(ctx context.Context, request *configpb.UpdateServiceAccountRequest, ...) (*configpb.UpdateServiceAccountResponse, error)
- func (c *Client) UpdateTenant(ctx context.Context, request *configpb.UpdateTenantRequest, ...) (*configpb.UpdateTenantResponse, error)
- type NodeRequest
- func (x *NodeRequest) EmptyDescription(v string) *NodeRequest
- func (x *NodeRequest) EmptyDisplayName(v string) *NodeRequest
- func (x *NodeRequest) ForLocation(id string) *NodeRequest
- func (x *NodeRequest) String() string
- func (x *NodeRequest) WithAuthFlowConfig(v *configpb.AuthFlowConfig) *NodeRequest
- func (x *NodeRequest) WithAuthorizationPolicyConfig(v *configpb.AuthorizationPolicyConfig) *NodeRequest
- func (x *NodeRequest) WithDescription(v string) *NodeRequest
- func (x *NodeRequest) WithDisplayName(v string) *NodeRequest
- func (x *NodeRequest) WithEmailNotificationConfig(v *configpb.EmailServiceConfig) *NodeRequest
- func (x *NodeRequest) WithIngestMappingConfig(v *configpb.IngestMappingConfig) *NodeRequest
- func (x *NodeRequest) WithKnowledgeGraphSchemaConfig(v *configpb.KnowledgeGraphSchemaConfig) *NodeRequest
- func (x *NodeRequest) WithOAuth2ClientConfig(v *configpb.OAuth2ClientConfig) *NodeRequest
- func (x *NodeRequest) WithPreCondition(etag string) *NodeRequest
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsLabel ¶
ContainsLabel check if string array contains given node label.
func IsValidName ¶
IsValidName checks if name is valid RFC1035 string.
Value can have lowercase letters, digits, or hyphens. It must start with a lowercase letter and end with a letter or number. The minimum lenght is 2 and the max is 254.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
NewClient creates a new Config Management gRPC Client.
Example (Default) ¶
This example demonstrates how to create a new Config Client.
package main import ( "context" "log" "github.com/indykite/indykite-sdk-go/config" ) func main() { client, err := config.NewClient(context.Background()) if err != nil { log.Fatalf("failed to create client %v", err) } defer func() { _ = client.Close() }() }
Output:
Example (Options) ¶
This example demonstrates how to create a new Config Client.
package main import ( "context" "log" "github.com/indykite/indykite-sdk-go/config" api "github.com/indykite/indykite-sdk-go/grpc" ) func main() { client, err := config.NewClient(context.Background(), api.WithCredentialsJSON([]byte(`{}`))) if err != nil { log.Fatalf("failed to create client %v", err) } defer func() { _ = client.Close() }() }
Output:
func NewTestClient ¶
NewTestClient creates a new Config Management gRPC Client for Testing.
func (*Client) Close ¶
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*Client) CreateApplication ¶
func (c *Client) CreateApplication( ctx context.Context, request *configpb.CreateApplicationRequest, opts ...grpc.CallOption) (*configpb.CreateApplicationResponse, error)
func (*Client) CreateApplicationAgent ¶
func (c *Client) CreateApplicationAgent( ctx context.Context, request *configpb.CreateApplicationAgentRequest, opts ...grpc.CallOption) (*configpb.CreateApplicationAgentResponse, error)
func (*Client) CreateApplicationSpace ¶
func (c *Client) CreateApplicationSpace( ctx context.Context, request *configpb.CreateApplicationSpaceRequest, opts ...grpc.CallOption) (*configpb.CreateApplicationSpaceResponse, error)
func (*Client) CreateConfigNode ¶
func (c *Client) CreateConfigNode(ctx context.Context, request *NodeRequest, opts ...grpc.CallOption) ( *configpb.CreateConfigNodeResponse, error)
func (*Client) CreateOAuth2Application ¶
func (c *Client) CreateOAuth2Application( ctx context.Context, request *configpb.CreateOAuth2ApplicationRequest, opts ...grpc.CallOption) (*configpb.CreateOAuth2ApplicationResponse, error)
func (*Client) CreateOAuth2Provider ¶
func (c *Client) CreateOAuth2Provider( ctx context.Context, request *configpb.CreateOAuth2ProviderRequest, opts ...grpc.CallOption) (*configpb.CreateOAuth2ProviderResponse, error)
func (*Client) CreateServiceAccount ¶
func (c *Client) CreateServiceAccount( ctx context.Context, request *configpb.CreateServiceAccountRequest, opts ...grpc.CallOption) (*configpb.CreateServiceAccountResponse, error)
func (*Client) CreateTenant ¶
func (c *Client) CreateTenant( ctx context.Context, request *configpb.CreateTenantRequest, opts ...grpc.CallOption) (*configpb.CreateTenantResponse, error)
func (*Client) DeleteApplication ¶
func (c *Client) DeleteApplication( ctx context.Context, request *configpb.DeleteApplicationRequest, opts ...grpc.CallOption) (*configpb.DeleteApplicationResponse, error)
func (*Client) DeleteApplicationAgent ¶
func (c *Client) DeleteApplicationAgent( ctx context.Context, request *configpb.DeleteApplicationAgentRequest, opts ...grpc.CallOption) (*configpb.DeleteApplicationAgentResponse, error)
func (*Client) DeleteApplicationAgentCredential ¶
func (c *Client) DeleteApplicationAgentCredential( ctx context.Context, request *configpb.DeleteApplicationAgentCredentialRequest, opts ...grpc.CallOption, ) (*configpb.DeleteApplicationAgentCredentialResponse, error)
func (*Client) DeleteApplicationSpace ¶
func (c *Client) DeleteApplicationSpace( ctx context.Context, request *configpb.DeleteApplicationSpaceRequest, opts ...grpc.CallOption) (*configpb.DeleteApplicationSpaceResponse, error)
func (*Client) DeleteConfigNode ¶
func (c *Client) DeleteConfigNode(ctx context.Context, req *NodeRequest, opts ...grpc.CallOption) ( *configpb.DeleteConfigNodeResponse, error)
func (*Client) DeleteOAuth2Application ¶
func (c *Client) DeleteOAuth2Application( ctx context.Context, request *configpb.DeleteOAuth2ApplicationRequest, opts ...grpc.CallOption) (*configpb.DeleteOAuth2ApplicationResponse, error)
func (*Client) DeleteOAuth2Provider ¶
func (c *Client) DeleteOAuth2Provider( ctx context.Context, request *configpb.DeleteOAuth2ProviderRequest, opts ...grpc.CallOption) (*configpb.DeleteOAuth2ProviderResponse, error)
func (*Client) DeleteServiceAccount ¶
func (c *Client) DeleteServiceAccount( ctx context.Context, request *configpb.DeleteServiceAccountRequest, opts ...grpc.CallOption) (*configpb.DeleteServiceAccountResponse, error)
func (*Client) DeleteTenant ¶
func (c *Client) DeleteTenant( ctx context.Context, request *configpb.DeleteTenantRequest, opts ...grpc.CallOption) (*configpb.DeleteTenantResponse, error)
func (*Client) ListApplicationAgents ¶
func (c *Client) ListApplicationAgents( ctx context.Context, request *configpb.ListApplicationAgentsRequest, opts ...grpc.CallOption, ) (configpb.ConfigManagementAPI_ListApplicationAgentsClient, error)
func (*Client) ListApplicationSpaces ¶
func (c *Client) ListApplicationSpaces( ctx context.Context, request *configpb.ListApplicationSpacesRequest, opts ...grpc.CallOption, ) (configpb.ConfigManagementAPI_ListApplicationSpacesClient, error)
func (*Client) ListApplications ¶
func (c *Client) ListApplications( ctx context.Context, request *configpb.ListApplicationsRequest, opts ...grpc.CallOption, ) (configpb.ConfigManagementAPI_ListApplicationsClient, error)
func (*Client) ListTenants ¶
func (c *Client) ListTenants( ctx context.Context, request *configpb.ListTenantsRequest, opts ...grpc.CallOption, ) (configpb.ConfigManagementAPI_ListTenantsClient, error)
func (*Client) ReadApplication ¶
func (c *Client) ReadApplication( ctx context.Context, request *configpb.ReadApplicationRequest, opts ...grpc.CallOption) (*configpb.ReadApplicationResponse, error)
func (*Client) ReadApplicationAgent ¶
func (c *Client) ReadApplicationAgent( ctx context.Context, request *configpb.ReadApplicationAgentRequest, opts ...grpc.CallOption) (*configpb.ReadApplicationAgentResponse, error)
func (*Client) ReadApplicationAgentCredential ¶
func (c *Client) ReadApplicationAgentCredential( ctx context.Context, request *configpb.ReadApplicationAgentCredentialRequest, opts ...grpc.CallOption, ) (*configpb.ReadApplicationAgentCredentialResponse, error)
func (*Client) ReadApplicationSpace ¶
func (c *Client) ReadApplicationSpace( ctx context.Context, request *configpb.ReadApplicationSpaceRequest, opts ...grpc.CallOption) (*configpb.ReadApplicationSpaceResponse, error)
func (*Client) ReadConfigNode ¶
func (c *Client) ReadConfigNode(ctx context.Context, req *NodeRequest, opts ...grpc.CallOption) ( *configpb.ReadConfigNodeResponse, error)
func (*Client) ReadCustomer ¶
func (c *Client) ReadCustomer( ctx context.Context, request *configpb.ReadCustomerRequest, opts ...grpc.CallOption) (*configpb.ReadCustomerResponse, error)
func (*Client) ReadOAuth2Application ¶
func (c *Client) ReadOAuth2Application( ctx context.Context, request *configpb.ReadOAuth2ApplicationRequest, opts ...grpc.CallOption) (*configpb.ReadOAuth2ApplicationResponse, error)
func (*Client) ReadOAuth2Provider ¶
func (c *Client) ReadOAuth2Provider( ctx context.Context, request *configpb.ReadOAuth2ProviderRequest, opts ...grpc.CallOption) (*configpb.ReadOAuth2ProviderResponse, error)
func (*Client) ReadServiceAccount ¶
func (c *Client) ReadServiceAccount( ctx context.Context, request *configpb.ReadServiceAccountRequest, opts ...grpc.CallOption) (*configpb.ReadServiceAccountResponse, error)
func (*Client) ReadTenant ¶
func (c *Client) ReadTenant( ctx context.Context, request *configpb.ReadTenantRequest, opts ...grpc.CallOption) (*configpb.ReadTenantResponse, error)
func (*Client) RegisterApplicationAgentCredential ¶
func (c *Client) RegisterApplicationAgentCredential( ctx context.Context, request *configpb.RegisterApplicationAgentCredentialRequest, opts ...grpc.CallOption, ) (*configpb.RegisterApplicationAgentCredentialResponse, error)
func (*Client) UpdateApplication ¶
func (c *Client) UpdateApplication( ctx context.Context, request *configpb.UpdateApplicationRequest, opts ...grpc.CallOption) (*configpb.UpdateApplicationResponse, error)
func (*Client) UpdateApplicationAgent ¶
func (c *Client) UpdateApplicationAgent( ctx context.Context, request *configpb.UpdateApplicationAgentRequest, opts ...grpc.CallOption) (*configpb.UpdateApplicationAgentResponse, error)
func (*Client) UpdateApplicationSpace ¶
func (c *Client) UpdateApplicationSpace( ctx context.Context, request *configpb.UpdateApplicationSpaceRequest, opts ...grpc.CallOption) (*configpb.UpdateApplicationSpaceResponse, error)
func (*Client) UpdateConfigNode ¶
func (c *Client) UpdateConfigNode(ctx context.Context, req *NodeRequest, opts ...grpc.CallOption) ( *configpb.UpdateConfigNodeResponse, error)
func (*Client) UpdateOAuth2Application ¶
func (c *Client) UpdateOAuth2Application( ctx context.Context, request *configpb.UpdateOAuth2ApplicationRequest, opts ...grpc.CallOption) (*configpb.UpdateOAuth2ApplicationResponse, error)
func (*Client) UpdateOAuth2Provider ¶
func (c *Client) UpdateOAuth2Provider( ctx context.Context, request *configpb.UpdateOAuth2ProviderRequest, opts ...grpc.CallOption) (*configpb.UpdateOAuth2ProviderResponse, error)
func (*Client) UpdateServiceAccount ¶
func (c *Client) UpdateServiceAccount( ctx context.Context, request *configpb.UpdateServiceAccountRequest, opts ...grpc.CallOption) (*configpb.UpdateServiceAccountResponse, error)
func (*Client) UpdateTenant ¶
func (c *Client) UpdateTenant( ctx context.Context, request *configpb.UpdateTenantRequest, opts ...grpc.CallOption) (*configpb.UpdateTenantResponse, error)
type NodeRequest ¶
type NodeRequest struct {
// contains filtered or unexported fields
}
NodeRequest is a request builder. nolint:golint
func NewCreate ¶
func NewCreate(name string) (*NodeRequest, error)
func NewDelete ¶
func NewDelete(id string) (*NodeRequest, error)
func NewRead ¶
func NewRead(id string) (*NodeRequest, error)
func NewReadWithName ¶
func NewReadWithName(name string) (*NodeRequest, error)
func NewUpdate ¶
func NewUpdate(id string) (*NodeRequest, error)
func (*NodeRequest) EmptyDescription ¶
func (x *NodeRequest) EmptyDescription(v string) *NodeRequest
EmptyDescription removes the current description value.
func (*NodeRequest) EmptyDisplayName ¶
func (x *NodeRequest) EmptyDisplayName(v string) *NodeRequest
EmptyDisplayName removes the current displayName value.
func (*NodeRequest) ForLocation ¶
func (x *NodeRequest) ForLocation(id string) *NodeRequest
func (*NodeRequest) String ¶
func (x *NodeRequest) String() string
func (*NodeRequest) WithAuthFlowConfig ¶
func (x *NodeRequest) WithAuthFlowConfig(v *configpb.AuthFlowConfig) *NodeRequest
func (*NodeRequest) WithAuthorizationPolicyConfig ¶
func (x *NodeRequest) WithAuthorizationPolicyConfig(v *configpb.AuthorizationPolicyConfig) *NodeRequest
func (*NodeRequest) WithDescription ¶
func (x *NodeRequest) WithDescription(v string) *NodeRequest
WithDescription sets the new description value.
func (*NodeRequest) WithDisplayName ¶
func (x *NodeRequest) WithDisplayName(v string) *NodeRequest
WithDisplayName sets the new displayName value.
func (*NodeRequest) WithEmailNotificationConfig ¶
func (x *NodeRequest) WithEmailNotificationConfig(v *configpb.EmailServiceConfig) *NodeRequest
func (*NodeRequest) WithIngestMappingConfig ¶
func (x *NodeRequest) WithIngestMappingConfig(v *configpb.IngestMappingConfig) *NodeRequest
func (*NodeRequest) WithKnowledgeGraphSchemaConfig ¶
func (x *NodeRequest) WithKnowledgeGraphSchemaConfig(v *configpb.KnowledgeGraphSchemaConfig) *NodeRequest
func (*NodeRequest) WithOAuth2ClientConfig ¶
func (x *NodeRequest) WithOAuth2ClientConfig(v *configpb.OAuth2ClientConfig) *NodeRequest
WithOAuth2ClientConfig sets the new OAuth2ClientConfig changes which will be merged.
func (*NodeRequest) WithPreCondition ¶
func (x *NodeRequest) WithPreCondition(etag string) *NodeRequest
WithPreCondition sets the expected etag to check before modify.