Documentation
¶
Index ¶
- Constants
- type APIKey
- type APIKeyKey
- type CustomCredentials
- type CustomPersistenceSettings
- type CustomProject
- type OctopusAudit
- type OctopusDeploymentQueuedByAdminCheck
- type OctopusDuplicatedGitCredentialsCheck
- type OctopusEventNotificationSubscription
- type OctopusInsecureFeedsCheck
- type OctopusInsecureK8sCheck
- type OctopusInsecureSubscriptionsCheck
- type OctopusPerpetualApiKeysCheck
- type OctopusSha1CertificatesCheck
- type OctopusSubscription
- type OctopusUnrotatedAccountsCheck
- type ServerCertificate
- type Sha1CertificateResult
Constants ¶
const OctoLintDeploymentQueuedByAdmin = "OctoLintDeploymentQueuedByAdmin"
const OctoLintInsecureK8sTargets = "OctoLintInsecureK8sTargets"
const (
OctoLintSha1Certificates = "OctoLintSha1Certificates"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct {
APIKey APIKeyKey `json:"ApiKey,omitempty"`
Expires *time.Time `json:"Expires,omitempty"`
}
APIKey is used because the go client_wrapper has an invalid APIKey value that prevents the usual functions for querying users keys
type CustomCredentials ¶
type CustomPersistenceSettings ¶
type CustomPersistenceSettings struct {
Type string `json:"Type"`
Credentials *CustomCredentials `json:"Credentials"`
}
type CustomProject ¶
type CustomProject struct {
PersistenceSettings CustomPersistenceSettings `json:"PersistenceSettings"`
Name string `json:"Name"`
}
CustomProject is the simplest representation of a project and its version controlled settings
type OctopusAudit ¶
type OctopusDeploymentQueuedByAdminCheck ¶
type OctopusDeploymentQueuedByAdminCheck struct {
// contains filtered or unexported fields
}
OctopusDeploymentQueuedByAdminCheck checks to see if any deployments were initiated by someone from the admin teams. This usually means that a more specific and limited user should be created to perform deployments.
func NewOctopusDeploymentQueuedByAdminCheck ¶
func NewOctopusDeploymentQueuedByAdminCheck(client *client.Client, config *config.OctolintConfig, errorHandler checks.OctopusClientErrorHandler) OctopusDeploymentQueuedByAdminCheck
func (OctopusDeploymentQueuedByAdminCheck) Execute ¶
func (o OctopusDeploymentQueuedByAdminCheck) Execute(concurrency int) (checks.OctopusCheckResult, error)
func (OctopusDeploymentQueuedByAdminCheck) Id ¶
func (o OctopusDeploymentQueuedByAdminCheck) Id() string
type OctopusDuplicatedGitCredentialsCheck ¶
type OctopusDuplicatedGitCredentialsCheck struct {
// contains filtered or unexported fields
}
OctopusDuplicatedGitCredentialsCheck reports on any perpetual api keys
func NewOctopusDuplicatedGitCredentialsCheck ¶
func NewOctopusDuplicatedGitCredentialsCheck(client *client.Client, config *config.OctolintConfig, errorHandler checks.OctopusClientErrorHandler) OctopusDuplicatedGitCredentialsCheck
func (OctopusDuplicatedGitCredentialsCheck) Execute ¶
func (o OctopusDuplicatedGitCredentialsCheck) Execute(concurrency int) (checks.OctopusCheckResult, error)
func (OctopusDuplicatedGitCredentialsCheck) Id ¶
func (o OctopusDuplicatedGitCredentialsCheck) Id() string
type OctopusEventNotificationSubscription ¶
type OctopusEventNotificationSubscription struct {
WebhookURI string
}
type OctopusInsecureFeedsCheck ¶
type OctopusInsecureFeedsCheck struct {
// contains filtered or unexported fields
}
OctopusInsecureFeedsCheck checks to see if any targets have not been used in a month
func NewOctopusInsecureFeedsCheck ¶
func NewOctopusInsecureFeedsCheck(client *client.Client, config *config.OctolintConfig, errorHandler checks.OctopusClientErrorHandler) OctopusInsecureFeedsCheck
func (OctopusInsecureFeedsCheck) Execute ¶
func (o OctopusInsecureFeedsCheck) Execute(concurrency int) (checks.OctopusCheckResult, error)
func (OctopusInsecureFeedsCheck) Id ¶
func (o OctopusInsecureFeedsCheck) Id() string
type OctopusInsecureK8sCheck ¶
type OctopusInsecureK8sCheck struct {
// contains filtered or unexported fields
}
OctopusInsecureK8sCheck checks to see if any targets have not been used in a month
func NewOctopusInsecureK8sCheck ¶
func NewOctopusInsecureK8sCheck(client *client.Client, config *config.OctolintConfig, errorHandler checks.OctopusClientErrorHandler) OctopusInsecureK8sCheck
func (OctopusInsecureK8sCheck) Execute ¶
func (o OctopusInsecureK8sCheck) Execute(concurrency int) (checks.OctopusCheckResult, error)
func (OctopusInsecureK8sCheck) Id ¶
func (o OctopusInsecureK8sCheck) Id() string
type OctopusInsecureSubscriptionsCheck ¶
type OctopusInsecureSubscriptionsCheck struct {
// contains filtered or unexported fields
}
OctopusInsecureSubscriptionsCheck checks to see if any targets have not been used in a month
func NewOctopusInsecureSubscriptionsCheck ¶
func NewOctopusInsecureSubscriptionsCheck(client *client.Client, config *config.OctolintConfig, errorHandler checks.OctopusClientErrorHandler) OctopusInsecureSubscriptionsCheck
func (OctopusInsecureSubscriptionsCheck) Execute ¶
func (o OctopusInsecureSubscriptionsCheck) Execute(concurrency int) (checks.OctopusCheckResult, error)
func (OctopusInsecureSubscriptionsCheck) Id ¶
func (o OctopusInsecureSubscriptionsCheck) Id() string
type OctopusPerpetualApiKeysCheck ¶
type OctopusPerpetualApiKeysCheck struct {
// contains filtered or unexported fields
}
OctopusPerpetualApiKeysCheck reports on any perpetual api keys
func NewOctopusPerpetualApiKeysCheck ¶
func NewOctopusPerpetualApiKeysCheck(client *client.Client, config *config.OctolintConfig, errorHandler checks.OctopusClientErrorHandler) OctopusPerpetualApiKeysCheck
func (OctopusPerpetualApiKeysCheck) Execute ¶
func (o OctopusPerpetualApiKeysCheck) Execute(concurrency int) (checks.OctopusCheckResult, error)
func (OctopusPerpetualApiKeysCheck) Id ¶
func (o OctopusPerpetualApiKeysCheck) Id() string
type OctopusSha1CertificatesCheck ¶
type OctopusSha1CertificatesCheck struct {
// contains filtered or unexported fields
}
OctopusSha1CertificatesCheck checks to see if any targets, workers or the server itself is using a sha1 certificate
func NewOctopusSha1CertificatesCheck ¶
func NewOctopusSha1CertificatesCheck(client *client.Client, config *config.OctolintConfig, errorHandler checks.OctopusClientErrorHandler) OctopusSha1CertificatesCheck
func (OctopusSha1CertificatesCheck) Execute ¶
func (o OctopusSha1CertificatesCheck) Execute(concurrency int) (checks.OctopusCheckResult, error)
func (OctopusSha1CertificatesCheck) Id ¶
func (o OctopusSha1CertificatesCheck) Id() string
type OctopusSubscription ¶
type OctopusSubscription struct {
Name string
EventNotificationSubscription *OctopusEventNotificationSubscription
}
type OctopusUnrotatedAccountsCheck ¶
type OctopusUnrotatedAccountsCheck struct {
// contains filtered or unexported fields
}
OctopusUnrotatedAccountsCheck checks to see if any targets have not been used in a month
func NewOctopusUnrotatedAccountsCheck ¶
func NewOctopusUnrotatedAccountsCheck(client *client.Client, config *config.OctolintConfig, errorHandler checks.OctopusClientErrorHandler) OctopusUnrotatedAccountsCheck
func (OctopusUnrotatedAccountsCheck) Execute ¶
func (o OctopusUnrotatedAccountsCheck) Execute(concurrency int) (checks.OctopusCheckResult, error)
func (OctopusUnrotatedAccountsCheck) GetAll ¶
func (o OctopusUnrotatedAccountsCheck) GetAll(client newclient.Client, spaceID string) ([]*accounts.AccountResource, error)
func (OctopusUnrotatedAccountsCheck) Id ¶
func (o OctopusUnrotatedAccountsCheck) Id() string