package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: May 12, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateOrgDepSecret struct {
EncryptedValue string `json:"encrypted_value"`
KeyID string `json:"key_id"`
Visibility string `json:"visibility"`
SelectedRepos []string `json:"selected_repository_ids"`
}
Address Dependabot API differences
type CreateOrgSecret struct {
EncryptedValue string `json:"encrypted_value"`
KeyID string `json:"key_id"`
Visibility string `json:"visibility"`
SelectedRepos []int `json:"selected_repository_ids"`
}
type CreateOrgVariable struct {
Name string `json:"name"`
Value string `json:"value"`
Visibility string `json:"visibility"`
SelectedReposIDs []int `json:"selected_repository_ids"`
}
type CreateRepoSecret struct {
EncryptedValue string `json:"encrypted_value"`
KeyID string `json:"key_id"`
}
type CreateRepoVariable struct {
Name string `json:"name"`
Value string `json:"value"`
}
type CreateVariableAll struct {
Name string `json:"name"`
Value string `json:"value"`
Visibility string `json:"visibility"`
}
type ImportedSecret struct {
Level string `json:"level"`
Type string `json:"type"`
Name string `json:"name"`
Value string `json:"value"`
Access string `json:"visibility"`
RepositoryNames []string `json:"selected_repositories"`
RepositoryIDs []string `json:"selected_repository_ids"`
}
type ImportedVariable struct {
Level string
Name string `json:"name"`
Value string `json:"value"`
Visibility string `json:"visibility"`
SelectedRepos []string
SelectedReposIDs []string `json:"selected_repository_ids"`
}
type PublicKey struct {
KeyID string `json:"key_id"`
Key string `json:"key"`
}
type RepoInfo struct {
DatabaseId int `json:"databaseId"`
Name string `json:"name"`
UpdatedAt time.Time `json:"updatedAt"`
Visibility string `json:"visibility"`
}
type RepoSingleQuery struct {
Repository RepoInfo `graphql:"repository(owner: $owner, name: $name)"`
}
type ReposQuery struct {
Organization struct {
Repositories struct {
TotalCount int
Nodes []RepoInfo
PageInfo struct {
EndCursor string
HasNextPage bool
}
} `graphql:"repositories(first: 100, after: $endCursor)"`
} `graphql:"organization(login: $owner)"`
}
type ScopedRepository struct {
ID int `json:"id"`
Name string `json:"name"`
}
type ScopedResponse struct {
TotalCount int `json:"total_count"`
Repositories []ScopedRepository `json:"repositories"`
}
type Secret struct {
Name string `json:"name"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Visibility string `json:"visibility"`
SelectedRepos string `json:"selected_repositories_url"`
}
type SecretsResponse struct {
TotalCount int `json:"total_count"`
Secrets []Secret `json:"secrets"`
}
type Variable struct {
Name string `json:"name"`
Value string `json:"value"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Visibility string `json:"visibility"`
SelectedRepos string `json:"selected_repositories_url"`
}
type VariableResponse struct {
TotalCount int `json:"total_count"`
Variables []Variable `json:"variables"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.