analyze

package module
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

README

Analyze

sg_analyze_light

Coverage Status Build Status License Apache 2 Go Report Card

#deployment using HELM

  1. helm chart can be found on ./helm/analyze folder
  2. check that you have access to the private docker registry - https://hub.docker.com/r/supergiant/analyze/
  3. generate secret of docker-registry and apply it to k8s cluster where you are planning to deploy helm chart. I you need deatils how to generate secret for private docker registry please check following link - https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  4. helm install --debug ./helm/analyze/ --set cloudProviderType=aws --set aws.region=us-wild-wild-west--1 --set aws.accessKeyId=xxx --set aws.secretAccessKey=xxxx if you need to configure ingress use flag --set ingress.enabled=true
  5. if there is no ingress controller nginx is installed on cluster install it using command helm install stable/nginx-ingress
  6. if there is RBAC on cluster we need to enable view for service account kubectl create clusterrolebinding default-view --clusterrole=view --serviceaccount=default:default

dev info

This repository using go 1.11 modules instead of vendoring. In order to enable it export GO111MODULE=on

Service configuration can be stored using JSON, TOML, YAML, HCL(v1), and Java properties config file Also can be configured using environment variables:

*AZ_LOGGING_LEVEL debug
*AZ_LOGGING_FORMATTER TXT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logging logger.Config   `mapstructure:"logging"`
	API     api.Config      `mapstructure:"api"`
	Plugin  plugin.Config   `mapstructure:"plugin"`
	ETCD    clientv3.Config `mapstructure:"etcd"`
}

Config struct represents configuration of robot service

func (*Config) Validate

func (c *Config) Validate() error

Validate checks configuration instance for correctness

Directories

Path Synopsis
asset package provides the assets via a virtual filesystem.
asset package provides the assets via a virtual filesystem.
builtin
cmd
pkg
api
Package api Analyze service API
Package api Analyze service API
config
Package config is a wrapper on viper to simplify config struct populating current implementation works with single viper instance casual flow of using its public API: ReadFromFiles() -> MergeEnv() if ReadFromFiles() invocation is skipped than MergeEnv() need to be invoked to get all config values from env variables
Package config is a wrapper on viper to simplify config struct populating current implementation works with single viper instance casual flow of using its public API: ReadFromFiles() -> MergeEnv() if ReadFromFiles() invocation is skipped than MergeEnv() need to be invoked to get all config values from env variables
logger
Package logger is used to extract logging configuration
Package logger is used to extract logging configuration
plugin
Package plugin contains types and interfaces represents Analyze plugin.
Package plugin contains types and interfaces represents Analyze plugin.

Jump to

Keyboard shortcuts

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