cmd

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: GPL-3.0 Imports: 30 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 added in v1.0.1

func Version() (version, sum string)

Version returns the version of finkctl and its checksum.

Types

type DistributionConfig

type DistributionConfig struct {
	DistributionServers string     `mapstructure:"distribution_servers"`
	SubstreamPrefix     string     `mapstructure:"substream_prefix"`
	DistributionSchema  string     `mapstructure:"distribution_schema"`
	Night               string     `mapstructure:"night"`
	KafkaCreds          KafkaCreds `mapstructure:"kafka"`
}

type KafkaCreds

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

type Raw2ScienceConfig

type Raw2ScienceConfig struct {
	Night string `mapstructure:"night"`
}

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 SparkConfig

type SparkConfig struct {
	ApiServerUrl      string
	Binary            string
	Image             string `mapstructure:"image"`
	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"`
	PodTemplateFile   string
	StorageClass      storageClass
}

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"`
}

Jump to

Keyboard shortcuts

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