describer

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllArtifacts

func GetAllArtifacts(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllAuditLogs

func GetAllAuditLogs(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllBlobs

func GetAllBlobs(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllBranchProtections

func GetAllBranchProtections(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllBranches

func GetAllBranches(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllCommits

func GetAllCommits(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllCommunityProfiles

func GetAllCommunityProfiles(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllExternalIdentities

func GetAllExternalIdentities(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllIssueComments

func GetAllIssueComments(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllMembers

func GetAllMembers(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllOrganizationsCollaborators

func GetAllOrganizationsCollaborators(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllOrganizationsDependabotAlerts

func GetAllOrganizationsDependabotAlerts(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllPullRequests

func GetAllPullRequests(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllRepositoriesCollaborators

func GetAllRepositoriesCollaborators(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllRepositoriesDependabotAlerts

func GetAllRepositoriesDependabotAlerts(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllRepositoriesDeployments

func GetAllRepositoriesDeployments(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllRepositoriesEnvironments

func GetAllRepositoriesEnvironments(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllRepositoriesRuleSets

func GetAllRepositoriesRuleSets(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllRepositoriesSBOMs

func GetAllRepositoriesSBOMs(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllRepositoriesVulnerabilities

func GetAllRepositoriesVulnerabilities(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllRunners

func GetAllRunners(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllSecrets

func GetAllSecrets(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllStargazers

func GetAllStargazers(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllTags

func GetAllTags(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllTeamsMembers

func GetAllTeamsMembers(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllTeamsRepositories

func GetAllTeamsRepositories(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllTrafficViewDailies

func GetAllTrafficViewDailies(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllTrafficViewWeeklies

func GetAllTrafficViewWeeklies(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllTrees

func GetAllTrees(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllWorkflowRuns

func GetAllWorkflowRuns(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetAllWorkflows

func GetAllWorkflows(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetBlob

func GetBlob(ctx context.Context, githubClient GitHubClient, owner, repo, sha string) (*models.Resource, error)

func GetGitIgnoreTemplateList

func GetGitIgnoreTemplateList(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetGitignoreTemplate

func GetGitignoreTemplate(ctx context.Context, githubClient GitHubClient, gitIgnoreName string) (*models.Resource, error)

func GetIssueList

func GetIssueList(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetLicenseList

func GetLicenseList(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetLoggerFromContext

func GetLoggerFromContext(ctx context.Context) *zap.Logger

func GetOrganizationCollaborators

func GetOrganizationCollaborators(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, org string) ([]models.Resource, error)

func GetOrganizationDependabotAlerts

func GetOrganizationDependabotAlerts(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, org string) ([]models.Resource, error)

func GetOrganizationExternalIdentities

func GetOrganizationExternalIdentities(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, org string) ([]models.Resource, error)

func GetOrganizationHooks

func GetOrganizationHooks(ctx context.Context, client *github.Client, org steampipemodels.OrganizationWithCounts) ([]*github.Hook, error)

func GetOrganizationList

func GetOrganizationList(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetOrganizationMembers

func GetOrganizationMembers(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, org string) ([]models.Resource, error)

func GetParameterFromContext

func GetParameterFromContext(ctx context.Context, key string) any

func GetReleaseList added in v0.1.4

func GetReleaseList(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetRepoWorkflowRun

func GetRepoWorkflowRun(ctx context.Context, client *github.Client, organizationName string, repo string, workflowRunID int64) (*models.Resource, error)

func GetRepositoryAdditionalData

func GetRepositoryAdditionalData(ctx context.Context, client *github.Client, organizationName string, repo string) (*github.Repository, error)

func GetRepositoryArtifacts

func GetRepositoryArtifacts(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryAuditLog

func GetRepositoryAuditLog(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, org string) ([]models.Resource, error)

func GetRepositoryBlobs

func GetRepositoryBlobs(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryBranchProtections

func GetRepositoryBranchProtections(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryBranches

func GetRepositoryBranches(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryCollaborators

func GetRepositoryCollaborators(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryCommits

func GetRepositoryCommits(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryCommunityProfiles

func GetRepositoryCommunityProfiles(ctx context.Context, githubClient GitHubClient, owner, repo string) (*models.Resource, error)

func GetRepositoryDependabotAlerts

func GetRepositoryDependabotAlerts(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryDeployments

func GetRepositoryDeployments(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryEnvironments

func GetRepositoryEnvironments(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryHooks

func GetRepositoryHooks(ctx context.Context, client *github.Client, organizationName string, repo string) ([]*github.Hook, error)

func GetRepositoryIssueComments

func GetRepositoryIssueComments(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string, issueNumber int) ([]models.Resource, error)

func GetRepositoryList

func GetRepositoryList(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetRepositoryPullRequests

func GetRepositoryPullRequests(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryRuleSets

func GetRepositoryRuleSets(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryRunners

func GetRepositoryRunners(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositorySBOMs

func GetRepositorySBOMs(ctx context.Context, githubClient GitHubClient, owner, repo string) (*models.Resource, error)

func GetRepositorySecrets

func GetRepositorySecrets(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryTags

func GetRepositoryTags(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryTrafficViewDailies

func GetRepositoryTrafficViewDailies(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryTrafficViewWeeklies

func GetRepositoryTrafficViewWeeklies(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryTrees

func GetRepositoryTrees(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryVulnerabilities

func GetRepositoryVulnerabilities(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryWorkflowRuns

func GetRepositoryWorkflowRuns(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetRepositoryWorkflows

func GetRepositoryWorkflows(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetStarList

func GetStarList(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetStargazers

func GetStargazers(ctx context.Context, githubClient GitHubClient, stream *models.StreamSender, owner, repo string) ([]models.Resource, error)

func GetTeamList

func GetTeamList(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func GetTeamRepositories

func GetTeamRepositories(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender, org, slug string) ([]models.Resource, error)

func GetTriggerTypeFromContext

func GetTriggerTypeFromContext(ctx context.Context) enums.DescribeTriggerType

func GetUser

func GetUser(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func ListCodeOwners added in v0.1.4

func ListCodeOwners(ctx context.Context, githubClient GitHubClient, organizationName string, stream *models.StreamSender) ([]models.Resource, error)

func WithLogger

func WithLogger(ctx context.Context, logger *zap.Logger) context.Context

Types

type CollaboratorEdge

type CollaboratorEdge struct {
	Permission githubv4.RepositoryPermission     `graphql:"permission @include(if:$includeOCPermission)" json:"permission"`
	Node       steampipemodels.CollaboratorLogin `graphql:"node @include(if:$includeOCNode)" json:"node"`
}

type FileContent

type FileContent struct {
	Repository string
	FilePath   string
	Content    string
}

type GitHubClient

type GitHubClient struct {
	RestClient    *github.Client
	GraphQLClient *githubv4.Client
}

GitHubClient custom struct for defining both rest and graphql clients

type JSONAllFieldsMarshaller

type JSONAllFieldsMarshaller struct {
	Value interface{}
}

func (JSONAllFieldsMarshaller) MarshalJSON

func (x JSONAllFieldsMarshaller) MarshalJSON() (res []byte, err error)

func (*JSONAllFieldsMarshaller) UnmarshalJSON

func (x *JSONAllFieldsMarshaller) UnmarshalJSON(data []byte) (err error)

type Stargazer

type Stargazer struct {
	StarredAt steampipemodels.NullableTime `graphql:"starredAt @include(if:$includeStargazerStarredAt)" json:"starred_at"`
	Node      steampipemodels.BasicUser    `graphql:"node @include(if:$includeStargazerNode)" json:"node"`
}

Jump to

Keyboard shortcuts

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