Documentation
¶
Index ¶
- func ListEntities(ctx context.ServiceContext, options *ListOptions) (interface{}, error)
- func PrepareCredentials(ctx context.ServiceContext, options *PrepareCredentialsOptions) (map[string]interface{}, error)
- func Sync(ctx context.ServiceContext, options *SyncOptions) error
- type CodeExchangeResponse
- type Creator
- type Deployment
- type InstallationAccessTokenResponse
- type ListOptions
- type ListProjectsResponse
- type PrepareCredentialsOptions
- type Project
- type RepositoryActionsSecretsPublicKeyResponse
- type SetupOptions
- type SyncOptions
- type VercelResponse
- type VercelSecret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListEntities ¶
func ListEntities(ctx context.ServiceContext, options *ListOptions) (interface{}, error)
func PrepareCredentials ¶ added in v1.1.5
func PrepareCredentials(ctx context.ServiceContext, options *PrepareCredentialsOptions) (map[string]interface{}, error)
func Sync ¶
func Sync(ctx context.ServiceContext, options *SyncOptions) error
Types ¶
type CodeExchangeResponse ¶
type Deployment ¶
type Deployment struct {
Creator Creator `json:"creator"`
}
type InstallationAccessTokenResponse ¶
type InstallationAccessTokenResponse struct {
Token string `json:"token"`
ExpiresAt string `json:"expires_at"`
RespositorySelection string `json:"repository_selection"`
Permissions struct {
ActionsVariables string `json:"actions_variables"`
CodespacesSecrets string `json:"codespaces_secrets"`
Deployments string `json:"deployments"`
Metadata string `json:"metadata"`
Secrets string `json:"secrets"`
} `json:"permissions"`
}
type ListOptions ¶
type ListOptions struct {
Credentials map[string]interface{}
}
type ListProjectsResponse ¶
type ListProjectsResponse struct {
Projects []Project `json:"projects"`
}
type PrepareCredentialsOptions ¶ added in v1.1.5
type PrepareCredentialsOptions struct {
Code string
}
type Project ¶
type Project struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Username string `json:"username,omitempty"`
AccountID string `json:"accountId,omitempty"`
LatestDeployments []Deployment `json:"latestDeployments,omitempty"`
}
type SetupOptions ¶
type SyncOptions ¶
type SyncOptions struct {
Credentials map[string]interface{} `json:"credentials"`
EntityDetails map[string]interface{} `json:"entity_details"`
Data *keypayload.KPMap `json:"data"`
}
type VercelResponse ¶
type VercelResponse struct {
Error map[string]interface{} `json:"error,omitempty"`
}
type VercelSecret ¶
type VercelSecret struct {
Error map[string]interface{} `json:"error,omitempty"`
ID string `json:"uid"`
Name string `json:"name"`
UserID string `json:"userId"`
TeamID string `json:"teamId"`
Decryptable bool `json:"decryptable"`
Value struct {
Data interface{} `json:"data"`
Type string `json:"type"`
} `json:"value"`
}
func CreateSecret ¶
func CreateSecret(ctx context.ServiceContext, client *clients.HTTPClient, name string, value interface{}, teamID *string) (*VercelSecret, error)
Creates a new Secret on Vercel. Docs: https://vercel.com/docs/rest-api/endpoints#create-a-new-secret
Click to show internal directories.
Click to hide internal directories.