Documentation ¶
Index ¶
- func ListEntities(ctx context.ServiceContext, options *ListOptions) (interface{}, error)
- func Sync(ctx context.ServiceContext, options *SyncOptions) error
- type InstallationAccessTokenResponse
- type ListOptions
- type ListRepositoriesResponse
- type Repository
- type RepositoryActionsSecretsPublicKeyResponse
- type SetupOptions
- type SyncOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListEntities ¶
func ListEntities(ctx context.ServiceContext, options *ListOptions) (interface{}, error)
func Sync ¶
func Sync(ctx context.ServiceContext, options *SyncOptions) error
-- Flow -- 1. Get repository's action secrets public key. 2. Encrypt the secret data. 3. Post the secrets to Github actions endpoint.
Types ¶
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"` }
func GetInstallationAccessToken ¶
func GetInstallationAccessToken(ctx context.ServiceContext, installationID string) (*InstallationAccessTokenResponse, error)
type ListOptions ¶ added in v1.1.5
type ListOptions struct {
InstallationID string
}
type ListRepositoriesResponse ¶
type ListRepositoriesResponse struct { TotalCount int `json:"total_count"` RespositorySelection string `json:"repository_selection"` Repositories []Repository `json:"repositories"` }
func ListRepositories ¶
func ListRepositories(ctx context.ServiceContext, client *clients.HTTPClient) (*ListRepositoriesResponse, error)
type Repository ¶
type SetupOptions ¶
type SyncOptions ¶
type SyncOptions struct { InstallationID string `json:"installation_id"` EntityDetails map[string]interface{} `json:"entity_details"` Data *keypayload.KPMap `json:"data"` }
Click to show internal directories.
Click to hide internal directories.