Documentation ¶
Overview ¶
client.go
Index ¶
- type AuthConfig
- type AuthResponse
- type CLIKey
- type CLIKeyResponse
- type Client
- func (c *Client) Authenticate(ctx context.Context, username, password string) error
- func (c *Client) CreateCLIKey(ctx context.Context, keyName string) (*CLIKeyResponse, error)
- func (c *Client) CreateEnvironmentSecret(ctx context.Context, projectID, key, value string) (*EnvironmentSecret, error)
- func (c *Client) CreateIntegrationCredentials(ctx context.Context, projectID string, req CreateIntegrationCredentialsRequest) (*Credential, error)
- func (c *Client) CreateProject(ctx context.Context, organizationID, projectName string) (*Project, error)
- func (c *Client) CreateSDKKey(ctx context.Context, projectID string) (*SDKKey, error)
- func (c *Client) DeleteCLIKey(ctx context.Context, organizationID, keyID string) error
- func (c *Client) DeleteEnvironmentSecret(ctx context.Context, projectID, secretID string) error
- func (c *Client) DeleteProject(ctx context.Context, projectID, teamID string) error
- func (c *Client) DeleteSDKKey(ctx context.Context, projectID, keyID string) error
- func (c *Client) DeleteTeamInvite(ctx context.Context, teamID, inviteID string) error
- func (c *Client) DeleteTeamMember(ctx context.Context, teamID, memberID string) error
- func (c *Client) GetCLIKeys(ctx context.Context, organizationID string) ([]CLIKey, error)
- func (c *Client) GetCredentials(ctx context.Context, projectID string) ([]Credential, error)
- func (c *Client) GetDecryptedCredential(ctx context.Context, projectID, credID string) (*DecryptedCredential, error)
- func (c *Client) GetEnvironmentSecrets(ctx context.Context, projectID string) ([]EnvironmentSecret, error)
- func (c *Client) GetIntegration(ctx context.Context, projectID, integrationID string) (*Integration, error)
- func (c *Client) GetIntegrations(ctx context.Context, projectID string) ([]Integration, error)
- func (c *Client) GetOrganizations(ctx context.Context) ([]Organization, error)
- func (c *Client) GetProjectByID(ctx context.Context, projectID, teamID string) (*Project, error)
- func (c *Client) GetProjects(ctx context.Context, teamID string) ([]Project, error)
- func (c *Client) GetSDKKeys(ctx context.Context, projectID string) ([]SDKKey, error)
- func (c *Client) GetTeamByID(ctx context.Context, teamID string) (*Team, error)
- func (c *Client) GetTeamInvites(ctx context.Context, teamID string) ([]TeamInvite, error)
- func (c *Client) GetTeamMembers(ctx context.Context, teamID string) ([]TeamMember, error)
- func (c *Client) GetTeams(ctx context.Context) ([]Team, error)
- func (c *Client) GetUserEmailFromToken() (string, error)
- func (c *Client) GetUserIDFromToken() (string, error)
- func (c *Client) InviteTeamMember(ctx context.Context, teamID, role, email string) ([]TeamInvite, error)
- func (c *Client) UpdateCLIKey(ctx context.Context, organizationID, keyID, newName string) (*CLIKey, error)
- func (c *Client) UpdateEnvironmentSecret(ctx context.Context, projectID, secretID, key, value string) (*EnvironmentSecret, error)
- func (c *Client) UpdateIntegrationStatus(ctx context.Context, projectID, integrationID string, active bool) (*Integration, error)
- func (c *Client) UpdateProjectTitle(ctx context.Context, projectID, teamID, newTitle string) (*Project, error)
- func (c *Client) UpdateTeamMemberRole(ctx context.Context, teamID, memberID, role string) (*TeamMember, error)
- type CreateEnvironmentSecretRequest
- type CreateIntegrationCredentialsRequest
- type CreateProjectRequest
- type CreateProjectResponse
- type Credential
- type CustomIntegration
- type DecryptedCredential
- type EnvironmentSecret
- type Integration
- type IntegrationConfig
- type InviteTeamMemberRequest
- type OAuthValues
- type Organization
- type ParagonConfig
- type Project
- type SDKKey
- type Team
- type TeamInvite
- type TeamMember
- type UpdateEnvironmentSecretRequest
- type UpdateProjectTitleRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
Paragon ParagonConfig `json:"paragon"`
}
type AuthResponse ¶
type AuthResponse struct {
AccessToken string `json:"accessToken"`
}
type CLIKeyResponse ¶
type CLIKeyResponse struct {
Key string `json:"key"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Authenticate ¶
func (*Client) CreateCLIKey ¶
func (*Client) CreateEnvironmentSecret ¶
func (*Client) CreateIntegrationCredentials ¶ added in v1.2.0
func (c *Client) CreateIntegrationCredentials(ctx context.Context, projectID string, req CreateIntegrationCredentialsRequest) (*Credential, error)
func (*Client) CreateProject ¶
func (*Client) CreateSDKKey ¶
func (*Client) DeleteCLIKey ¶
func (*Client) DeleteEnvironmentSecret ¶
func (*Client) DeleteProject ¶
func (*Client) DeleteSDKKey ¶
func (*Client) DeleteTeamInvite ¶
func (*Client) DeleteTeamMember ¶
func (*Client) GetCLIKeys ¶
func (*Client) GetCredentials ¶ added in v1.2.0
func (*Client) GetDecryptedCredential ¶ added in v1.2.0
func (*Client) GetEnvironmentSecrets ¶
func (*Client) GetIntegration ¶ added in v1.2.0
func (*Client) GetIntegrations ¶ added in v1.2.0
func (*Client) GetOrganizations ¶
func (c *Client) GetOrganizations(ctx context.Context) ([]Organization, error)
func (*Client) GetProjectByID ¶
func (*Client) GetProjects ¶ added in v1.2.0
func (*Client) GetSDKKeys ¶
func (*Client) GetTeamByID ¶
func (*Client) GetTeamInvites ¶
func (*Client) GetTeamMembers ¶
func (*Client) GetUserEmailFromToken ¶ added in v1.2.0
func (*Client) GetUserIDFromToken ¶
func (*Client) InviteTeamMember ¶
func (*Client) UpdateCLIKey ¶
func (*Client) UpdateEnvironmentSecret ¶
func (*Client) UpdateIntegrationStatus ¶ added in v1.2.0
func (*Client) UpdateProjectTitle ¶
func (*Client) UpdateTeamMemberRole ¶
type CreateIntegrationCredentialsRequest ¶ added in v1.2.0
type CreateIntegrationCredentialsRequest struct { Name string `json:"name"` Values OAuthValues `json:"values"` Provider string `json:"provider"` Scheme string `json:"scheme"` IntegrationID string `json:"integrationId"` }
type CreateProjectRequest ¶
type CreateProjectResponse ¶
type Credential ¶ added in v1.2.0
type Credential struct { ID string `json:"id"` DateCreated string `json:"dateCreated"` DateUpdated string `json:"dateUpdated"` Name string `json:"name"` ProjectID string `json:"projectId"` IntegrationID string `json:"integrationId"` Provider string `json:"provider"` Scheme string `json:"scheme"` OnboardingOnly bool `json:"onboardingOnly"` Status string `json:"status"` DateRefreshed string `json:"dateRefreshed"` DateValidUntil string `json:"dateValidUntil"` }
type CustomIntegration ¶ added in v1.2.0
type DecryptedCredential ¶ added in v1.2.0
type DecryptedCredential struct { ID string `json:"id"` DateCreated string `json:"dateCreated"` DateUpdated string `json:"dateUpdated"` ProjectID string `json:"projectId"` Values map[string]interface{} `json:"values"` Provider string `json:"provider"` IntegrationID string `json:"integrationId"` Scheme string `json:"scheme"` Status string `json:"status"` }
type EnvironmentSecret ¶
type Integration ¶ added in v1.2.0
type Integration struct { ID string `json:"id"` DateCreated string `json:"dateCreated"` DateUpdated string `json:"dateUpdated"` ProjectID string `json:"projectId"` CustomIntegrationID string `json:"customIntegrationId"` Type string `json:"type"` IsActive bool `json:"isActive"` CustomIntegration *CustomIntegration `json:"customIntegration"` ConnectedUserCount int `json:"connectedUserCount"` }
type IntegrationConfig ¶ added in v1.2.0
type InviteTeamMemberRequest ¶
type OAuthValues ¶ added in v1.2.0
type Organization ¶
type Organization struct { ID string `json:"id"` DateCreated string `json:"dateCreated"` DateUpdated string `json:"dateUpdated"` Name string `json:"name"` Website string `json:"website"` Type string `json:"type"` Purpose string `json:"purpose"` Referral string `json:"referral"` Size string `json:"size"` Role string `json:"role"` CompletedQualification bool `json:"completedQualification"` FeatureFlagMeta map[string]interface{} `json:"featureFlagMeta"` }
type ParagonConfig ¶
type SDKKey ¶
type SDKKey struct { ID string `json:"id"` ProjectID string `json:"projectId"` AuthType string `json:"authType"` AuthConfig AuthConfig `json:"authConfig"` DateDeleted interface{} `json:"dateDeleted"` DateCreated string `json:"dateCreated"` DateUpdated string `json:"dateUpdated"` Revoked bool `json:"revoked"` PrivateKey string `json:"privateKey,omitempty"` }
type TeamInvite ¶
type TeamMember ¶
type UpdateProjectTitleRequest ¶
type UpdateProjectTitleRequest struct {
Title string `json:"title"`
}
Click to show internal directories.
Click to hide internal directories.