cmd

package
v3.1.2-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 Fabrice Jammes fabrice.jammes@in2p3.fr

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 Fabrice Jammes fabrice.jammes@in2p3.fr

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Index

Constants

View Source
const DISTRIBUTION string = "distribution"
View Source
const DISTRIBUTION_BIN string = "distribute.py"
View Source
const RAW2SCIENCE string = "raw2science"
View Source
const (
	RUN string = "run"
)
View Source
const S3 string = "s3"
View Source
const STREAM2RAW string = "stream2raw"
View Source
const ShellToUse = "bash"

Variables

This section is empty.

Functions

func ExecCmd

func ExecCmd(command string) (string, string)

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Version

func Version() (version, sum string)

Version returns the version of finkctl and its checksum.

Types

type DistributionConfig

type DistributionConfig struct {
	Cpu                 string `mapstructure:"cpu"`
	DistributionServers string `mapstructure:"distribution_servers"`
	Memory              string `mapstructure:"memory"`
	SubstreamPrefix     string `mapstructure:"substream_prefix"`
	DistributionSchema  string `mapstructure:"distribution_schema"`
	Night               string
	KafkaCreds          KafkaCreds `mapstructure:"kafka"`
}

type KafkaCreds

type KafkaCreds struct {
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
}

type Raw2ScienceConfig

type Raw2ScienceConfig struct {
	Night string
}

type RunConfig

type RunConfig struct {
	ApiServerUrl      string
	Binary            string
	Cpu               string `mapstructure:"cpu"`
	Image             string `mapstructure:"image"`
	Instances         string `mapstructure:"instances"`
	Night             string `mapstructure:"night"`
	Producer          string `mapstructure:"producer"`
	OnlineDataPrefix  string `mapstructure:"online_data_prefix"`
	Packages          string
	FinkTriggerUpdate string `mapstructure:"fink_trigger_update"`
	LocalTmpDirectory string
	LogLevel          string `mapstructure:"log_level"`
	Memory            string `mapstructure:"memory"`
	PodTemplateFile   string
	StorageClass      storageClass
}

type S3Config

type S3Config struct {
	Endpoint        string `mapstructure:"endpoint"`
	AccessKeyID     string `mapstructure:"id"`
	SecretAccessKey string `mapstructure:"secret"`
	UseSSL          bool   `mapstructure:"use_ssl"`
	BucketName      string `mapstructure:"bucket"`
}

type Stream2RawConfig

type Stream2RawConfig struct {
	KafkaSocket         string `mapstructure:"kafka_socket"`
	KafkaTopic          string `mapstructure:"kafka_topic"`
	FinkAlertSchema     string `mapstructure:"fink_alert_schema"`
	KafkaStartingOffset string `mapstructure:"kafka_starting_offset"`
	Night               string
}

Jump to

Keyboard shortcuts

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