aliyun_sls

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvSLSEndpoint  = "SLS_ENDPOINT"
	EnvSLSKeyID     = "SLS_KEY_ID"
	EnvSLSKeySecret = "SLS_KEY_SECRET"
	EnvSLSProject   = "SLS_PROJECT"
	EnvSLSLogStore  = "SLS_LOG_STORE"
)

Constants down below defines configurations to initialize a sls backend storage service, user should set sls environment variables in Dockerfile or deployment manifests files, for security user should better init environment variables by referencing Secret key as down below: spec:

containers:
- name: xxx-container
  image: xxx
  env:
    - name: SLS_ENDPOINT
      valueFrom:
        secretKeyRef:
          name: my-sls-secret
          key: endpoint

Variables

This section is empty.

Functions

func GetSLSClient

func GetSLSClient() (slsClient *sls.Client, project, logStore string, err error)

func NewSLSEventBackend

func NewSLSEventBackend() backends.EventStorageBackend

Types

This section is empty.

Jump to

Keyboard shortcuts

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