data

package
v1.0.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 BranchPolicies

type BranchPolicies struct {
	TotalCount     int            `json:"total_count"`
	BranchPolicies []BranchPolicy `json:"branch_policies"`
}

type BranchPolicy

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

type CreateEnvSecret

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

type CreateVariable

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

type DeploymentPolicy

type DeploymentPolicy struct {
	ProtectedBranches bool `json:"protected_branches"`
	CustomPolicies    bool `json:"custom_branch_policies"`
}

type EnvPublicKey

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

type EnvResponse

type EnvResponse struct {
	TotalCount   int           `json:"total_count"`
	Environments []Environment `json:"environments"`
}

type EnvSecret

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

type EnvVariables

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

type Environment

type Environment struct {
	Name             string            `json:"name"`
	AdminByPass      bool              `json:"can_admins_bypass"`
	ProtectionRules  []Rules           `json:"protection_rules"`
	DeploymentPolicy *DeploymentPolicy `json:"deployment_branch_policy"`
}

type ImportedSecret

type ImportedSecret struct {
	RepositoryID    int
	RepositoryName  string
	EnvironmentName string
	Name            string `json:"name"`
	Value           string `json:"value"`
}

type ImportedVariable

type ImportedVariable struct {
	RepositoryID    int
	RepositoryName  string
	EnvironmentName string
	Name            string `json:"name"`
	Value           string `json:"value"`
}

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

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 Reviewer

type Reviewer struct {
	Login string `json:"login"`
	ID    int    `json:"id"`
}

type Reviewers

type Reviewers struct {
	Type     string   `json:"type"`
	Reviewer Reviewer `json:"reviewer"`
}

type Rules

type Rules struct {
	Type      string      `json:"type"`
	WaitTimer int         `json:"wait_timer"`
	Reviewers []Reviewers `json:"reviewers"`
}

type ScopedRepository

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

type ScopedResponse

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"`
}

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"`
}

Jump to

Keyboard shortcuts

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