data

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOrgDepSecret

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

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

type CreateOrgVariable struct {
	Name             string `json:"name"`
	Value            string `json:"value"`
	Visibility       string `json:"visibility"`
	SelectedReposIDs []int  `json:"selected_repository_ids"`
}

type CreateRepoSecret

type CreateRepoSecret struct {
	EncryptedValue string `json:"encrypted_value"`
	KeyID          string `json:"key_id"`
}

type CreateRepoVariable

type CreateRepoVariable struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type CreateVariableAll

type CreateVariableAll struct {
	Name       string `json:"name"`
	Value      string `json:"value"`
	Visibility string `json:"visibility"`
}

type ImportedSecret

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

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

type PublicKey struct {
	KeyID string `json:"key_id"`
	Key   string `json:"key"`
}

type RepoInfo

type RepoInfo struct {
	DatabaseId int       `json:"databaseId"`
	Name       string    `json:"name"`
	UpdatedAt  time.Time `json:"updatedAt"`
	Visibility string    `json:"visibility"`
}

type RepoSingleQuery added in v1.1.0

type RepoSingleQuery struct {
	Repository RepoInfo `graphql:"repository(owner: $owner, name: $name)"`
}

type ReposQuery

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

type ScopedRepository struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type ScopedResponse added in v1.1.0

type ScopedResponse struct {
	TotalCount   int                `json:"total_count"`
	Repositories []ScopedRepository `json:"repositories"`
}

type Secret

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 SecretExport

type SecretExport struct {
	SecretLevel    string
	SecretType     string
	SecretName     string
	SecretAccess   string
	RepositoryName string
	RepositoryID   int
}

type SecretsResponse

type SecretsResponse struct {
	TotalCount int      `json:"total_count"`
	Secrets    []Secret `json:"secrets"`
}

type Variable

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

type VariableResponse struct {
	TotalCount int        `json:"total_count"`
	Variables  []Variable `json:"variables"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL