all: add missing dots

Change-Id: I93b86c9fb3398c5d3c9121b8859dad1c615fa23a
This commit is contained in:
Egon Elbre 2020-08-11 17:50:01 +03:00
parent 0525858b72
commit 94a09ce20b
67 changed files with 198 additions and 199 deletions

View File

@ -15,7 +15,7 @@ import (
)
var (
// ErrSetup is used when an error occurs while setting up
// ErrSetup is used when an error occurs while setting up.
ErrSetup = errs.Class("setup error")
idCmd = &cobra.Command{

View File

@ -55,7 +55,6 @@ var (
Annotations: map[string]string{"type": "setup"},
}
//nolint
config struct {
Difficulty uint64 `default:"36" help:"minimum difficulty for identity generation"`
Concurrency uint `default:"4" help:"number of concurrent workers for certificate authority generation"`

View File

@ -28,30 +28,30 @@ import (
)
var (
// Addr is the address of peer from command flags
// Addr is the address of peer from command flags.
Addr = flag.String("address", "127.0.0.1:7778", "address of peer to inspect")
// IdentityPath is the path to the identity the inspector should use for network communication
// IdentityPath is the path to the identity the inspector should use for network communication.
IdentityPath = flag.String("identity-path", "", "path to the identity certificate for use on the network")
// CSVPath is the csv path where command output is written
// CSVPath is the csv path where command output is written.
CSVPath string
// ErrInspectorDial throws when there are errors dialing the inspector server
// ErrInspectorDial throws when there are errors dialing the inspector server.
ErrInspectorDial = errs.Class("error dialing inspector server:")
// ErrRequest is for request errors after dialing
// ErrRequest is for request errors after dialing.
ErrRequest = errs.Class("error processing request:")
// ErrIdentity is for errors during identity creation for this CLI
// ErrIdentity is for errors during identity creation for this CLI.
ErrIdentity = errs.Class("error creating identity:")
// ErrArgs throws when there are errors with CLI args
// ErrArgs throws when there are errors with CLI args.
ErrArgs = errs.Class("error with CLI args:")
irreparableLimit int32
// Commander CLI
// Commander CLI.
rootCmd = &cobra.Command{
Use: "inspector",
Short: "CLI for interacting with Storj network",

View File

@ -48,20 +48,20 @@ const (
// The following values of peer class and endpoints are used
// to create a port with a consistent format for storj-sim services.
// Peer class
// Peer classes.
satellitePeer = 0
gatewayPeer = 1
versioncontrolPeer = 2
storagenodePeer = 3
// Endpoint
// Endpoints.
publicRPC = 0
privateRPC = 1
publicHTTP = 2
privateHTTP = 3
debugHTTP = 9
// satellite specific constants
// Satellite specific constants.
redisPort = 4
adminHTTP = 5
debugAdminHTTP = 6

View File

@ -46,7 +46,7 @@ var (
defaults = cfgstruct.DefaultsFlag(RootCmd)
// Error is the class of errors returned by this package
// Error is the class of errors returned by this package.
Error = errs.Class("uplink")
// ErrAccessFlag is used where the `--access` flag is registered but not supported.
ErrAccessFlag = Error.New("--access flag not supported with `setup` and `import` subcommands")

View File

@ -20,7 +20,7 @@ import (
var (
mon = monkit.Package()
// Error is a pkg/revocation error
// Error is a pkg/revocation error.
Error = errs.Class("revocation error")
)

View File

@ -11,6 +11,6 @@ import (
var (
mon = monkit.Package()
// Error is a pkg/server error
// Error is a pkg/server error.
Error = errs.Class("server error")
)

View File

@ -7,17 +7,17 @@ package dbutil
type Implementation int
const (
// Unknown is an unknown db type
// Unknown is an unknown db type.
Unknown Implementation = iota
// Postgres is a Postgresdb type
// Postgres is a Postgresdb type.
Postgres
// Cockroach is a Cockroachdb type
// Cockroach is a Cockroachdb type.
Cockroach
// Bolt is a Bolt kv store
// Bolt is a Bolt kv store.
Bolt
// Redis is a Redis kv store
// Redis is a Redis kv store.
Redis
// SQLite3 is a sqlite3 database
// SQLite3 is a sqlite3 database.
SQLite3
)

View File

@ -16,10 +16,10 @@ import (
)
var (
// ErrMigrateTables is error class for MigrateTables
// ErrMigrateTables is error class for MigrateTables.
ErrMigrateTables = errs.Class("migrate tables")
// ErrKeepTables is error class for MigrateTables
// ErrKeepTables is error class for MigrateTables.
ErrKeepTables = errs.Class("keep tables")
)

View File

@ -230,12 +230,12 @@ func discoverIndexes(ctx context.Context, db dbschema.Queryer, schema *dbschema.
}
var (
// matches UNIQUE (a,b)
// matches "UNIQUE (a,b)".
rxUnique = regexp.MustCompile(`UNIQUE\s*\((.*?)\)`)
// matches ON table(expr)
// matches "ON table(expr)".
rxIndexExpr = regexp.MustCompile(`ON\s*[^(]*\((.*)\)`)
// matches WHERE (partial expression)
// matches "WHERE (partial expression)".
rxIndexPartial = regexp.MustCompile(`WHERE (.*)$`)
)

View File

@ -20,11 +20,11 @@ import (
)
var (
// ErrValidateVersionQuery is when there is an error querying version table
// ErrValidateVersionQuery is when there is an error querying version table.
ErrValidateVersionQuery = errs.Class("validate db version query error")
// ErrValidateVersionMismatch is when the migration version does not match the current database version
// ErrValidateVersionMismatch is when the migration version does not match the current database version.
ErrValidateVersionMismatch = errs.Class("validate db version mismatch error")
// ErrValidateMinVersion is when the migration version does not match the current database version
// ErrValidateMinVersion is when the migration version does not match the current database version.
ErrValidateMinVersion = errs.Class("validate minimum version error")
)

View File

@ -11,11 +11,11 @@ import (
// Constants for accounting_raw, accounting_rollup, and accounting_timestamps.
const (
// LastAtRestTally represents the accounting timestamp for the at-rest data calculation
// LastAtRestTally represents the accounting timestamp for the at-rest data calculation.
LastAtRestTally = "LastAtRestTally"
// LastBandwidthTally represents the accounting timestamp for the bandwidth allocation query
// LastBandwidthTally represents the accounting timestamp for the bandwidth allocation query.
LastBandwidthTally = "LastBandwidthTally"
// LastRollup represents the accounting timestamp for rollup calculations
// LastRollup represents the accounting timestamp for rollup calculations.
LastRollup = "LastRollup"
)

View File

@ -15,7 +15,7 @@ import (
)
var (
// Error is the default error class for live-accounting
// Error is the default error class for live-accounting.
Error = errs.Class("live-accounting")
mon = monkit.Package()
)

View File

@ -19,7 +19,7 @@ import (
var mon = monkit.Package()
var (
// ErrProjectUsage general error for project usage
// ErrProjectUsage general error for project usage.
ErrProjectUsage = errs.Class("project usage error")
)

View File

@ -21,7 +21,7 @@ import (
var (
mon = monkit.Package()
// Error is the error class for this package
// Error is the error class for this package.
Error = errs.Class("reportedrollup")
)

View File

@ -13,13 +13,13 @@ import (
)
var (
// ContainError is the containment errs class
// ContainError is the containment errs class.
ContainError = errs.Class("containment error")
// ErrContainedNotFound is the errs class for when a pending audit isn't found
// ErrContainedNotFound is the errs class for when a pending audit isn't found.
ErrContainedNotFound = errs.Class("pending audit not found")
// ErrContainDelete is the errs class for when a pending audit can't be deleted
// ErrContainDelete is the errs class for when a pending audit can't be deleted.
ErrContainDelete = errs.Class("unable to delete pending audit")
)

View File

@ -34,13 +34,13 @@ import (
var (
mon = monkit.Package()
// ErrNotEnoughShares is the errs class for when not enough shares are available to do an audit
// ErrNotEnoughShares is the errs class for when not enough shares are available to do an audit.
ErrNotEnoughShares = errs.Class("not enough shares for successful audit")
// ErrSegmentDeleted is the errs class when the audited segment was deleted during the audit
// ErrSegmentDeleted is the errs class when the audited segment was deleted during the audit.
ErrSegmentDeleted = errs.Class("segment deleted during audit")
// ErrSegmentExpired is the errs class used when a segment to audit has already expired.
ErrSegmentExpired = errs.Class("segment expired before audit")
// ErrSegmentModified is the errs class used when a segment has been changed in any way
// ErrSegmentModified is the errs class used when a segment has been changed in any way.
ErrSegmentModified = errs.Class("segment has been modified")
)

View File

@ -6,6 +6,6 @@ package compensation
import "github.com/zeebo/errs"
var (
// Error wraps common errors from this package
// Error wraps common errors from this package.
Error = errs.Class("compensation")
)

View File

@ -68,8 +68,8 @@ type APIKeyPage struct {
type APIKeyOrder uint8
const (
// KeyName indicates that we should order by key name
// KeyName indicates that we should order by key name.
KeyName APIKeyOrder = 1
// CreationDate indicates that we should order by creation date
// CreationDate indicates that we should order by creation date.
CreationDate APIKeyOrder = 2
)

View File

@ -10,12 +10,12 @@ import (
)
const (
// APIKeyInfoType is graphql type name for api key
// APIKeyInfoType is graphql type name for api key.
APIKeyInfoType = "keyInfo"
// CreateAPIKeyType is graphql type name for createAPIKey struct
// which incapsulates the actual key and it's info
// which incapsulates the actual key and it's info.
CreateAPIKeyType = "graphqlCreateAPIKey"
// FieldKey is field name for the actual key in createAPIKey
// FieldKey is field name for the actual key in createAPIKey.
FieldKey = "key"
)

View File

@ -4,19 +4,19 @@
package consoleql
const (
// ActivationPath is key for path which handles account activation
// ActivationPath is key for path which handles account activation.
ActivationPath = "activationPath"
// PasswordRecoveryPath is key for path which handles password recovery
// PasswordRecoveryPath is key for path which handles password recovery.
PasswordRecoveryPath = "passwordRecoveryPath"
// CancelPasswordRecoveryPath is key for path which handles let us know sequence
// CancelPasswordRecoveryPath is key for path which handles let us know sequence.
CancelPasswordRecoveryPath = "cancelPasswordRecoveryPath"
// SignInPath is key for sign in server route
// SignInPath is key for sign in server route.
SignInPath = "signInPath"
// LetUsKnowURL is key to store let us know URL
// LetUsKnowURL is key to store let us know URL.
LetUsKnowURL = "letUsKnowURL"
// ContactInfoURL is a key to store contact info URL
// ContactInfoURL is a key to store contact info URL.
ContactInfoURL = "contactInfoURL"
// TermsAndConditionsURL is a key to store terms and conditions URL
// TermsAndConditionsURL is a key to store terms and conditions URL.
TermsAndConditionsURL = "termsAndConditionsURL"
)

View File

@ -14,42 +14,42 @@ import (
)
const (
// Mutation is graphql request that modifies data
// Mutation is graphql request that modifies data.
Mutation = "mutation"
// CreateProjectMutation is a mutation name for project creation
// CreateProjectMutation is a mutation name for project creation.
CreateProjectMutation = "createProject"
// DeleteProjectMutation is a mutation name for project deletion
// DeleteProjectMutation is a mutation name for project deletion.
DeleteProjectMutation = "deleteProject"
// UpdateProjectDescriptionMutation is a mutation name for project updating
// UpdateProjectDescriptionMutation is a mutation name for project updating.
UpdateProjectDescriptionMutation = "updateProjectDescription"
// AddProjectMembersMutation is a mutation name for adding new project members
// AddProjectMembersMutation is a mutation name for adding new project members.
AddProjectMembersMutation = "addProjectMembers"
// DeleteProjectMembersMutation is a mutation name for deleting project members
// DeleteProjectMembersMutation is a mutation name for deleting project members.
DeleteProjectMembersMutation = "deleteProjectMembers"
// CreateAPIKeyMutation is a mutation name for api key creation
// CreateAPIKeyMutation is a mutation name for api key creation.
CreateAPIKeyMutation = "createAPIKey"
// DeleteAPIKeysMutation is a mutation name for api key deleting
// DeleteAPIKeysMutation is a mutation name for api key deleting.
DeleteAPIKeysMutation = "deleteAPIKeys"
// AddPaymentMethodMutation is mutation name for adding new payment method
// AddPaymentMethodMutation is mutation name for adding new payment method.
AddPaymentMethodMutation = "addPaymentMethod"
// DeletePaymentMethodMutation is mutation name for deleting payment method
// DeletePaymentMethodMutation is mutation name for deleting payment method.
DeletePaymentMethodMutation = "deletePaymentMethod"
// SetDefaultPaymentMethodMutation is mutation name setting payment method as default payment method
// SetDefaultPaymentMethodMutation is mutation name setting payment method as default payment method.
SetDefaultPaymentMethodMutation = "setDefaultPaymentMethod"
// InputArg is argument name for all input types
// InputArg is argument name for all input types.
InputArg = "input"
// FieldProjectID is field name for projectID
// FieldProjectID is field name for projectID.
FieldProjectID = "projectID"
// FieldNewPassword is a field name for new password
// FieldNewPassword is a field name for new password.
FieldNewPassword = "newPassword"
// Secret is a field name for registration token for user creation during Vanguard release
// Secret is a field name for registration token for user creation during Vanguard release.
Secret = "secret"
// ReferrerUserID is a field name for passing referrer's user id
// ReferrerUserID is a field name for passing referrer's user id.
ReferrerUserID = "referrerUserId"
)

View File

@ -13,74 +13,74 @@ import (
)
const (
// ProjectType is a graphql type name for project
// ProjectType is a graphql type name for project.
ProjectType = "project"
// ProjectInputType is a graphql type name for project input
// ProjectInputType is a graphql type name for project input.
ProjectInputType = "projectInput"
// ProjectUsageType is a graphql type name for project usage
// ProjectUsageType is a graphql type name for project usage.
ProjectUsageType = "projectUsage"
// BucketUsageCursorInputType is a graphql input
// type name for bucket usage cursor
// type name for bucket usage cursor.
BucketUsageCursorInputType = "bucketUsageCursor"
// BucketUsageType is a graphql type name for bucket usage
// BucketUsageType is a graphql type name for bucket usage.
BucketUsageType = "bucketUsage"
// BucketUsagePageType is a field name for bucket usage page
// BucketUsagePageType is a field name for bucket usage page.
BucketUsagePageType = "bucketUsagePage"
// ProjectMembersPageType is a field name for project members page
// ProjectMembersPageType is a field name for project members page.
ProjectMembersPageType = "projectMembersPage"
// ProjectMembersCursorInputType is a graphql type name for project members
// ProjectMembersCursorInputType is a graphql type name for project members.
ProjectMembersCursorInputType = "projectMembersCursor"
// APIKeysPageType is a field name for api keys page
// APIKeysPageType is a field name for api keys page.
APIKeysPageType = "apiKeysPage"
// APIKeysCursorInputType is a graphql type name for api keys
// APIKeysCursorInputType is a graphql type name for api keys.
APIKeysCursorInputType = "apiKeysCursor"
// FieldOwnerID is a field name for "ownerId"
// FieldOwnerID is a field name for "ownerId".
FieldOwnerID = "ownerId"
// FieldName is a field name for "name"
// FieldName is a field name for "name".
FieldName = "name"
// FieldBucketName is a field name for "bucket name"
// FieldBucketName is a field name for "bucket name".
FieldBucketName = "bucketName"
// FieldDescription is a field name for description
// FieldDescription is a field name for description.
FieldDescription = "description"
// FieldMembers is field name for members
// FieldMembers is field name for members.
FieldMembers = "members"
// FieldAPIKeys is a field name for api keys
// FieldAPIKeys is a field name for api keys.
FieldAPIKeys = "apiKeys"
// FieldUsage is a field name for usage rollup
// FieldUsage is a field name for usage rollup.
FieldUsage = "usage"
// FieldBucketUsages is a field name for bucket usages
// FieldBucketUsages is a field name for bucket usages.
FieldBucketUsages = "bucketUsages"
// FieldStorage is a field name for storage total
// FieldStorage is a field name for storage total.
FieldStorage = "storage"
// FieldEgress is a field name for egress total
// FieldEgress is a field name for egress total.
FieldEgress = "egress"
// FieldObjectCount is a field name for objects count
// FieldObjectCount is a field name for objects count.
FieldObjectCount = "objectCount"
// FieldPageCount is a field name for total page count
// FieldPageCount is a field name for total page count.
FieldPageCount = "pageCount"
// FieldCurrentPage is a field name for current page number
// FieldCurrentPage is a field name for current page number.
FieldCurrentPage = "currentPage"
// FieldTotalCount is a field name for bucket usage count total
// FieldTotalCount is a field name for bucket usage count total.
FieldTotalCount = "totalCount"
// FieldProjectMembers is a field name for project members
// FieldProjectMembers is a field name for project members.
FieldProjectMembers = "projectMembers"
// CursorArg is an argument name for cursor
// CursorArg is an argument name for cursor.
CursorArg = "cursor"
// PageArg ia an argument name for page number
// PageArg ia an argument name for page number.
PageArg = "page"
// LimitArg is argument name for limit
// LimitArg is argument name for limit.
LimitArg = "limit"
// OffsetArg is argument name for offset
// OffsetArg is argument name for offset.
OffsetArg = "offset"
// SearchArg is argument name for search
// SearchArg is argument name for search.
SearchArg = "search"
// OrderArg is argument name for order
// OrderArg is argument name for order.
OrderArg = "order"
// OrderDirectionArg is argument name for order direction
// OrderDirectionArg is argument name for order direction.
OrderDirectionArg = "orderDirection"
// SinceArg marks start of the period
// SinceArg marks start of the period.
SinceArg = "since"
// BeforeArg marks end of the period
// BeforeArg marks end of the period.
BeforeArg = "before"
)

View File

@ -12,9 +12,9 @@ import (
)
const (
// ProjectMemberType is a graphql type name for project member
// ProjectMemberType is a graphql type name for project member.
ProjectMemberType = "projectMember"
// FieldJoinedAt is a field name for joined at timestamp
// FieldJoinedAt is a field name for joined at timestamp.
FieldJoinedAt = "joinedAt"
)

View File

@ -13,15 +13,15 @@ import (
)
const (
// Query is immutable graphql request
// Query is immutable graphql request.
Query = "query"
// ProjectQuery is a query name for project
// ProjectQuery is a query name for project.
ProjectQuery = "project"
// MyProjectsQuery is a query name for projects related to account
// MyProjectsQuery is a query name for projects related to account.
MyProjectsQuery = "myProjects"
// ActiveRewardQuery is a query name for current active reward offer
// ActiveRewardQuery is a query name for current active reward offer.
ActiveRewardQuery = "activeReward"
// CreditUsageQuery is a query name for credit usage related to an user
// CreditUsageQuery is a query name for credit usage related to an user.
CreditUsageQuery = "creditUsage"
)

View File

@ -8,23 +8,23 @@ import (
)
const (
// RewardType is a graphql type for reward
// RewardType is a graphql type for reward.
RewardType = "reward"
// FieldAwardCreditInCent is a field name for award credit amount for referrers
// FieldAwardCreditInCent is a field name for award credit amount for referrers.
FieldAwardCreditInCent = "awardCreditInCent"
// FieldInviteeCreditInCents is a field name for credit amount rewarded to invitees
// FieldInviteeCreditInCents is a field name for credit amount rewarded to invitees.
FieldInviteeCreditInCents = "inviteeCreditInCents"
// FieldRedeemableCap is a field name for the total redeemable amount of the reward offer
// FieldRedeemableCap is a field name for the total redeemable amount of the reward offer.
FieldRedeemableCap = "redeemableCap"
// FieldAwardCreditDurationDays is a field name for the valid time frame of current award credit
// FieldAwardCreditDurationDays is a field name for the valid time frame of current award credit.
FieldAwardCreditDurationDays = "awardCreditDurationDays"
// FieldInviteeCreditDurationDays is a field name for the valid time frame of current invitee credit
// FieldInviteeCreditDurationDays is a field name for the valid time frame of current invitee credit.
FieldInviteeCreditDurationDays = "inviteeCreditDurationDays"
// FieldExpiresAt is a field name for the expiration time of a reward offer
// FieldExpiresAt is a field name for the expiration time of a reward offer.
FieldExpiresAt = "expiresAt"
// FieldType is a field name for the type of reward offers
// FieldType is a field name for the type of reward offers.
FieldType = "type"
// FieldStatus is a field name for the status of reward offers
// FieldStatus is a field name for the status of reward offers.
FieldStatus = "status"
)

View File

@ -8,23 +8,23 @@ import (
)
const (
// UserType is a graphql type for user
// UserType is a graphql type for user.
UserType = "user"
// UserInputType is a graphql type for user input
// UserInputType is a graphql type for user input.
UserInputType = "userInput"
// FieldID is a field name for id
// FieldID is a field name for id.
FieldID = "id"
// FieldEmail is a field name for email
// FieldEmail is a field name for email.
FieldEmail = "email"
// FieldPassword is a field name for password
// FieldPassword is a field name for password.
FieldPassword = "password"
// FieldFullName is a field name for "first name"
// FieldFullName is a field name for "first name".
FieldFullName = "fullName"
// FieldShortName is a field name for "last name"
// FieldShortName is a field name for "last name".
FieldShortName = "shortName"
// FieldCreatedAt is a field name for created at timestamp
// FieldCreatedAt is a field name for created at timestamp.
FieldCreatedAt = "createdAt"
// FieldPartnerID is a field name for partnerID
// FieldPartnerID is a field name for partnerID.
FieldPartnerID = "partnerId"
)

View File

@ -8,13 +8,13 @@ import (
)
const (
// CreditUsageType is a graphql type for user credit
// CreditUsageType is a graphql type for user credit.
CreditUsageType = "creditUsage"
// FieldAvailableCredit is a field name for available credit
// FieldAvailableCredit is a field name for available credit.
FieldAvailableCredit = "availableCredit"
// FieldUsedCredit is a field name for used credit
// FieldUsedCredit is a field name for used credit.
FieldUsedCredit = "usedCredit"
// FieldReferred is a field name for total referred number
// FieldReferred is a field name for total referred number.
FieldReferred = "referred"
)

View File

@ -50,7 +50,7 @@ const (
)
var (
// Error is satellite console error type
// Error is satellite console error type.
Error = errs.Class("satellite console error")
mon = monkit.Package()

View File

@ -62,10 +62,10 @@ type ProjectMembersPage struct {
type ProjectMemberOrder int8
const (
// Name indicates that we should order by full name
// Name indicates that we should order by full name.
Name ProjectMemberOrder = 1
// Email indicates that we should order by email
// Email indicates that we should order by email.
Email ProjectMemberOrder = 2
// Created indicates that we should order by created date
// Created indicates that we should order by created date.
Created ProjectMemberOrder = 3
)

View File

@ -31,9 +31,9 @@ type UserCredits interface {
type CreditType string
const (
// Invitee is a type of credits earned by invitee
// Invitee is a type of credits earned by invitee.
Invitee CreditType = "invitee"
// Referrer is a type of credits earned by referrer
// Referrer is a type of credits earned by referrer.
Referrer CreditType = "referrer"
)

View File

@ -81,11 +81,11 @@ func (user *CreateUser) IsValid() error {
type UserStatus int
const (
// Inactive is a user status that he receives after registration
// Inactive is a user status that he receives after registration.
Inactive UserStatus = 0
// Active is a user status that he receives after account activation
// Active is a user status that he receives after account activation.
Active UserStatus = 1
// Deleted is a user status that he receives after deleting account
// Deleted is a user status that he receives after deleting account.
Deleted UserStatus = 2
)

View File

@ -22,7 +22,7 @@ import (
)
var (
// Error defines the gc service errors class
// Error defines the gc service errors class.
Error = errs.Class("gc service error")
mon = monkit.Package()
)

View File

@ -14,7 +14,7 @@ var (
// Error is the default error class for graceful exit package.
Error = errs.Class("gracefulexit")
// ErrNodeNotFound is returned if a graceful exit entry for a node does not exist in database
// ErrNodeNotFound is returned if a graceful exit entry for a node does not exist in database.
ErrNodeNotFound = errs.Class("graceful exit node not found")
// ErrAboveOptimalThreshold is returned if a graceful exit entry for a node has more pieces than required.

View File

@ -20,7 +20,7 @@ import (
var (
mon = monkit.Package()
// Error wraps errors returned from Server struct methods
// Error wraps errors returned from Server struct methods.
Error = errs.Class("Endpoint error")
)

View File

@ -19,7 +19,7 @@ import (
)
const (
// BoltPointerBucket is the string representing the bucket used for `PointerEntries` in BoltDB
// BoltPointerBucket is the string representing the bucket used for `PointerEntries` in BoltDB.
BoltPointerBucket = "pointers"
)

View File

@ -16,7 +16,7 @@ import (
)
var (
// Error defines the expireddeletion chore errors class
// Error defines the expireddeletion chore errors class.
Error = errs.Class("expireddeletion chore error")
mon = monkit.Package()
)

View File

@ -48,9 +48,9 @@ const (
var (
mon = monkit.Package()
// Error general metainfo error
// Error general metainfo error.
Error = errs.Class("metainfo error")
// ErrNodeAlreadyExists pointer already has a piece for a node err
// ErrNodeAlreadyExists pointer already has a piece for a node err.
ErrNodeAlreadyExists = errs.Class("metainfo error: node already exists")
)

View File

@ -42,13 +42,13 @@ func (state *ObjectState) Status() ObjectStatus {
type ObjectStatus byte
const (
// ObjectMissing represents when there's no object with that particular name
// ObjectMissing represents when there's no object with that particular name.
ObjectMissing = ObjectStatus(iota)
// ObjectMultiSegment represents a multi segment object
// ObjectMultiSegment represents a multi segment object.
ObjectMultiSegment
// ObjectSingleSegment represents a single segment object
// ObjectSingleSegment represents a single segment object.
ObjectSingleSegment
// ObjectActiveOrZombie represents either an object is being uploaded, deleted or it's a zombie
// ObjectActiveOrZombie represents either an object is being uploaded, deleted or it's a zombie.
ObjectActiveOrZombie
)

View File

@ -11,6 +11,6 @@ import (
var (
mon = monkit.Package()
// Error represents an nodeselection error
// Error represents an nodeselection error.
Error = errs.Class("nodeselection")
)

View File

@ -112,9 +112,9 @@ type PendingSerial struct {
}
var (
// Error the default orders errs class
// Error the default orders errs class.
Error = errs.Class("orders error")
// ErrUsingSerialNumber error class for serial number
// ErrUsingSerialNumber error class for serial number.
ErrUsingSerialNumber = errs.Class("serial number")
errExpiredOrder = errs.Class("order limit expired")

View File

@ -14,7 +14,7 @@ import (
var (
mon = monkit.Package()
// Error represents an overlay error
// Error represents an overlay error.
Error = errs.Class("overlay error")
)

View File

@ -37,13 +37,13 @@ var nodeSelectionConfig = overlay.NodeSelectionConfig{
const (
// staleness is how stale the cache can be before we sync with
// the database to refresh the cache
// the database to refresh the cache.
// using a negative time will force the cache to refresh every time
// using a negative time will force the cache to refresh every time.
lowStaleness = -time.Hour
// using a positive time will make it so that the cache is only refreshed when
// it hasn't been in the past hour
// it hasn't been in the past hour.
highStaleness = time.Hour
)

View File

@ -69,13 +69,13 @@ type Offers []Offer
type OfferType int
const (
// Invalid is a default value for offers that don't have correct type associated with it
// Invalid is a default value for offers that don't have correct type associated with it.
Invalid = OfferType(0)
// FreeCredit is a type of offers used for Free Credit Program
// FreeCredit is a type of offers used for Free Credit Program.
FreeCredit = OfferType(1)
// Referral is a type of offers used for Referral Program
// Referral is a type of offers used for Referral Program.
Referral = OfferType(2)
// Partner is an OfferType used be the Open Source Partner Program
// Partner is an OfferType used be the Open Source Partner Program.
Partner = OfferType(3)
)

View File

@ -33,7 +33,7 @@ import (
)
var (
// Error is the default satellitedb errs class
// Error is the default satellitedb errs class.
Error = errs.Class("satellitedb")
)

View File

@ -10,7 +10,7 @@ import (
"github.com/spacemonkeygo/monkit/v3"
"github.com/zeebo/errs"
// load our cockroach sql driver for anywhere that uses this dbx.Open
// load our cockroach sql driver for anywhere that uses this dbx.Open.
_ "storj.io/storj/private/dbutil/cockroachutil"
"storj.io/storj/private/dbutil/txutil"
"storj.io/storj/private/tagsql"

View File

@ -23,7 +23,7 @@ import (
"storj.io/storj/private/tagsql"
)
// Prevent conditional imports from causing build failures
// Prevent conditional imports from causing build failures.
var _ = strconv.Itoa
var _ = strings.LastIndex
var _ = fmt.Sprint

View File

@ -19,9 +19,9 @@ import (
)
var (
// ErrMigrate is for tracking migration errors
// ErrMigrate is for tracking migration errors.
ErrMigrate = errs.Class("migrate")
// ErrMigrateMinVersion is for migration min version errors
// ErrMigrateMinVersion is for migration min version errors.
ErrMigrateMinVersion = errs.Class("migrate min version")
)

View File

@ -18,7 +18,7 @@ import (
)
var (
// offerErr is the default offer errors class
// offerErr is the default offer errors class.
offerErr = errs.Class("offers error")
)

View File

@ -28,15 +28,15 @@ const defaultIntervalSeconds = int(time.Hour / time.Second)
var (
// ErrDifferentStorageNodes is returned when ProcessOrders gets orders from different storage nodes.
ErrDifferentStorageNodes = errs.Class("different storage nodes")
// ErrBucketFromSerial is returned when there is an error trying to get the bucket name from the serial number
// ErrBucketFromSerial is returned when there is an error trying to get the bucket name from the serial number.
ErrBucketFromSerial = errs.Class("bucket from serial number")
// ErrUpdateBucketBandwidthSettle is returned when there is an error updating bucket bandwidth
// ErrUpdateBucketBandwidthSettle is returned when there is an error updating bucket bandwidth.
ErrUpdateBucketBandwidthSettle = errs.Class("update bucket bandwidth settle")
// ErrProcessOrderWithWindowTx is returned when there is an error with the ProcessOrders transaction
// ErrProcessOrderWithWindowTx is returned when there is an error with the ProcessOrders transaction.
ErrProcessOrderWithWindowTx = errs.Class("process order with window transaction")
// ErrGetStoragenodeBandwidthInWindow is returned when there is an error getting all storage node bandwidth for a window
// ErrGetStoragenodeBandwidthInWindow is returned when there is an error getting all storage node bandwidth for a window.
ErrGetStoragenodeBandwidthInWindow = errs.Class("get storagenode bandwidth in window")
// ErrCreateStoragenodeBandwidth is returned when there is an error updating storage node bandwidth
// ErrCreateStoragenodeBandwidth is returned when there is an error updating storage node bandwidth.
ErrCreateStoragenodeBandwidth = errs.Class("create storagenode bandwidth")
)

View File

@ -32,7 +32,7 @@ type Client struct {
}
const (
// fileMode sets permissions so owner can read and write
// fileMode sets permissions so owner can read and write.
fileMode = 0600
defaultTimeout = 1 * time.Second
)

View File

@ -18,7 +18,7 @@ const (
// FormatV0 is the identifier for storage format v0, which also corresponds to an absence of
// format version information.
FormatV0 storage.FormatVersion = 0
// FormatV1 is the identifier for storage format v1
// FormatV1 is the identifier for storage format v1.
FormatV1 storage.FormatVersion = 1
// Note: New FormatVersion values should be consecutive, as certain parts of this blob store

View File

@ -20,7 +20,7 @@ import (
)
var (
// Error is the default filestore error class
// Error is the default filestore error class.
Error = errs.Class("filestore error")
mon = monkit.Package()

View File

@ -20,7 +20,7 @@ import (
)
var (
// Error is a redis error
// Error is a redis error.
Error = errs.Class("redis error")
mon = monkit.Package()

View File

@ -27,10 +27,10 @@ import (
const (
maxProblems = 10
// the largest and deepest level-2 directory in the dataset
// the largest and deepest level-2 directory in the dataset.
largestLevel2Directory = "Peronosporales/hateless/"
// the directory in the dataset with the most immediate children
// the directory in the dataset with the most immediate children.
largestSingleDirectory = "Peronosporales/hateless/tod/unricht/sniveling/Puyallup/"
)

View File

@ -23,7 +23,7 @@ import (
var (
mon = monkit.Package()
// Error is the default error class for contact package
// Error is the default error class for contact package.
Error = errs.Class("contact")
errPingSatellite = errs.Class("ping satellite error")

View File

@ -23,7 +23,7 @@ import (
var (
mon = monkit.Package()
// Error is the default error class for piecestore monitor errors
// Error is the default error class for piecestore monitor errors.
Error = errs.Class("piecestore inspector")
)

View File

@ -23,7 +23,7 @@ import (
var (
mon = monkit.Package()
// Error is the default error class for piecestore monitor errors
// Error is the default error class for piecestore monitor errors.
Error = errs.Class("piecestore monitor")
)

View File

@ -21,7 +21,7 @@ import (
)
var (
// NodeStatsServiceErr defines node stats service error
// NodeStatsServiceErr defines node stats service error.
NodeStatsServiceErr = errs.Class("node stats service error")
mon = monkit.Package()

View File

@ -27,7 +27,7 @@ type Type int
const (
// TypeCustom is a common notification type which doesn't describe node's core functionality.
// TODO: change type name when all notification types will be known
// TODO: change type name when all notification types will be known.
TypeCustom Type = 0
// TypeAuditCheckFailure is a notification type which describes node's audit check failure.
TypeAuditCheckFailure Type = 1

View File

@ -23,9 +23,9 @@ import (
)
var (
// OrderError represents errors with orders
// OrderError represents errors with orders.
OrderError = errs.Class("order")
// OrderNotFoundError is the error returned when an order is not found
// OrderNotFoundError is the error returned when an order is not found.
OrderNotFoundError = errs.Class("order not found")
mon = monkit.Package()

View File

@ -14,15 +14,15 @@ import (
type Status = int
const (
//Unexpected status should not be used for sanity checking
//Unexpected status should not be used for sanity checking.
Unexpected Status = 0
//Normal status reflects a lack of graceful exit
//Normal status reflects a lack of graceful exit.
Normal = 1
//Exiting reflects an active graceful exit
//Exiting reflects an active graceful exit.
Exiting = 2
//ExitSucceeded reflects a graceful exit that succeeded
//ExitSucceeded reflects a graceful exit that succeeded.
ExitSucceeded = 3
//ExitFailed reflects a graceful exit that failed
//ExitFailed reflects a graceful exit that failed.
ExitFailed = 4
)

View File

@ -14,7 +14,7 @@ import (
)
var (
// ErrExclusion is an error class for exclusion related errors
// ErrExclusion is an error class for exclusion related errors.
ErrExclusion = errs.Class("exclusion")
)

View File

@ -11,7 +11,7 @@ import (
)
var (
// ErrFileSource is an error class for file source errors
// ErrFileSource is an error class for file source errors.
ErrFileSource = errs.Class("file source")
)

View File

@ -16,7 +16,7 @@ import (
)
var (
// ErrHTTPSource is an error class for HTTP source errors
// ErrHTTPSource is an error class for HTTP source errors.
ErrHTTPSource = errs.Class("HTTP source")
)

View File

@ -17,7 +17,7 @@ import (
)
var (
// ErrSatelliteURL is an error class for satellite URL related errors
// ErrSatelliteURL is an error class for satellite URL related errors.
ErrSatelliteURL = errs.Class("invalid satellite URL")
)

View File

@ -10,7 +10,7 @@ import (
)
var (
// ErrStaticSource is an error class for static source errors
// ErrStaticSource is an error class for static source errors.
ErrStaticSource = errs.Class("static source")
)