Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GiteeOpts ¶
type GiteeOpts struct {
RepoName string `json:"repoName" yaml:"repoName"`
Branch string `json:"branch" yaml:"branch"`
Path string `json:"path" yaml:"path"`
Email string `json:"email" yaml:"email"`
Password string `json:"password" yaml:"password"`
ClientID string `json:"clientId" yaml:"clientId"`
ClientSecret string `json:"clientSecret" yaml:"clientSecret"`
AccessToken string `json:"accessToken" yaml:"accessToken"`
}
api: https://gitee.com/api/v5/swagger#/postV5ReposOwnerRepoContentsPath
type GithubOpts ¶
type GithubOpts struct {
RepoName string `json:"repoName" yaml:"repoName"` // the name of warehouse, like: betterfor/gopic
Branch string `json:"branch" yaml:"branch"` // project branch, default is master
Token string `json:"token" yaml:"token"` // set github personal access tokens
Path string `json:"path" yaml:"path"` // storage path in github, support variables ${time-format}, default is images
}
https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#create-or-update-file-contents github options
func (*GithubOpts) Parse ¶
func (g *GithubOpts) Parse(str string) string
func (*GithubOpts) String ¶
func (g *GithubOpts) String() string
func (*GithubOpts) URL ¶
func (g *GithubOpts) URL() string
func (*GithubOpts) Unmarshal ¶
func (g *GithubOpts) Unmarshal(opts []byte) *GithubOpts
type SmmsOpts ¶
type SmmsOpts struct {
Token string `json:"token"`
}
https://doc.sm.ms/#api-Image-Upload smms options
Click to show internal directories.
Click to hide internal directories.