ci

package
v0.0.0-...-80b44f5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 9 Imported by: 0

README

Tencent CI —— Cloud Image Plugin

中文版

Added in version 0.4.0, inner name tcci.

Description

This plugin use Cloud Image (CI) of Tencent to store image files.

Options

You should provide 4 options: APPID, Secret ID, Secret Key and Bucket Name.

First three options should be provided in env var, use key RIKKA_TENCENT_APPID, RIKKA_TENCENT_SECRETID and RIKKA_TENCENT_SECRETKEY.

And the Bucket Name should be specified by the command line option -bname.

If you want, you can use option -bpath to set the path image will be store to.

For example, -bpath rikka,will save image in rikka folder.

Guide

See Rikka Deploy Guide with TC-CI Plugin on DaoCloud.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TencentCloudImagePlugin

type TencentCloudImagePlugin struct{}
var (

	// Plugin is the main plugin instance
	Plugin TencentCloudImagePlugin
)

func (TencentCloudImagePlugin) ExtraHandlers

func (plugin TencentCloudImagePlugin) ExtraHandlers() []plugins.HandlerWithPattern

func (TencentCloudImagePlugin) Init

func (plugin TencentCloudImagePlugin) Init()

func (TencentCloudImagePlugin) SaveRequestHandle

func (plugin TencentCloudImagePlugin) SaveRequestHandle(q *plugins.SaveRequest) (*api.TaskId, error)

func (TencentCloudImagePlugin) StateRequestHandle

func (plugin TencentCloudImagePlugin) StateRequestHandle(taskID string) (*api.State, error)

func (TencentCloudImagePlugin) URLRequestHandle

func (plugin TencentCloudImagePlugin) URLRequestHandle(q *plugins.URLRequest) (*api.URL, error)

Jump to

Keyboard shortcuts

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