config

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MDRepoPackagePath string = "MD-Repo/md-repo-cli"
	ClientProgramName string = "md-repo-cli"

	FilesystemTimeout               irodsclient_types.Duration = irodsclient_types.Duration(10 * time.Minute)
	LongFilesystemTimeout           irodsclient_types.Duration = irodsclient_types.Duration(15 * time.Minute) // exceptionally long timeout for listing dirs or users
	TransferThreadNumDefault        int                        = 5
	TransferThreadNumPerFileDefault int                        = 5
	TcpBufferSizeStringDefault      string                     = "0"

	// iRODS configuration
	// Prod
	MDRepoHost            string = "data.cyverse.org"
	MDRepoPort            int    = 1247
	MDRepoZone            string = "iplant"
	MDRepoUser            string = "anonymous"
	MDRepoUserPassword    string = ""
	MDRepoHashScheme      string = "MD5"
	MDRepoWebDAVServerURL string = "https://data.cyverse.org"
	MDRepoWebDAVPrefix    string = "/dav-anon"

	MDRepoLandingPath string = mdRepoHome + "/landing"
	MDRepoReleasePath string = mdRepoHome + "/release"

	MDRepoURL               string = "https://mdrepo.org"
	MDRepoGetTicketApi      string = "/api/v1/get_ticket"
	MDRepoVerifyMetadataApi string = "/api/v1/verify_metadata"

	MaxSimulationSubmissionSize string = "40GB"
)

Variables

This section is empty.

Functions

func GetDefaultFilesystemTimeoutInSeconds

func GetDefaultFilesystemTimeoutInSeconds() int

func GetDefaultTCPBufferSize

func GetDefaultTCPBufferSize() int

func GetDefaultTCPBufferSizeString

func GetDefaultTCPBufferSizeString() string

func GetDefaultTransferThreadNum

func GetDefaultTransferThreadNum() int

func GetDefaultTransferThreadNumPerFile

func GetDefaultTransferThreadNumPerFile() int

func GetMaxSimulationSubmissionSize

func GetMaxSimulationSubmissionSize() int64

func InputMissingFields

func InputMissingFields() (bool, error)

InputMissingFields inputs missing fields

func SetDefaultConfigIfEmpty

func SetDefaultConfigIfEmpty()

Types

type Config

type Config struct {
	Token        string
	TicketString string
}

func GetConfig

func GetConfig() *Config

func GetDefaultConfig

func GetDefaultConfig() *Config

func (*Config) ToConfigTypeIn

func (config *Config) ToConfigTypeIn() *ConfigTypeIn

type ConfigTypeIn

type ConfigTypeIn struct {
	TicketString string `yaml:"ticket_string,omitempty"`
}

func NewConfigTypeInFromYAML

func NewConfigTypeInFromYAML(yamlBytes []byte) (*ConfigTypeIn, error)

NewConfigTypeInFromYAML creates ConfigTypeIn from YAML

func (*ConfigTypeIn) ToYAML

func (config *ConfigTypeIn) ToYAML() ([]byte, error)

ToYAML converts to YAML bytes

Jump to

Keyboard shortcuts

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