rainbond: github.com/goodrain/rainbond/api/handler/share Index | Files

package share

import "github.com/goodrain/rainbond/api/handler/share"

Index

Package Files

plugin_share.go service_share.go

type APIResult Uses

type APIResult struct {
    EventID   string `json:"event_id"`
    ShareID   string `json:"share_id"`
    ImageName string `json:"image_name,omitempty"`
    SlugPath  string `json:"slug_path,omitempty"`
}

APIResult 分享接口返回

type PluginResult Uses

type PluginResult struct {
    EventID   string `json:"event_id"`
    ShareID   string `json:"share_id"`
    ImageName string `json:"image_name"`
}

PluginResult share plugin api return

type PluginShare Uses

type PluginShare struct {
    // in: path
    // required: true
    TenantName string `json:"tenant_name"`
    TenantID   string
    // in: path
    // required: true
    PluginID string `json:"plugin_id"`
    //in: body
    Body struct {
        //in: body
        //应用分享Key
        PluginKey     string `json:"plugin_key" validate:"plugin_key|required"`
        PluginVersion string `json:"plugin_version" validate:"plugin_version|required"`
        EventID       string `json:"event_id"`
        ShareUser     string `json:"share_user"`
        ShareScope    string `json:"share_scope"`
        ImageInfo     struct {
            HubURL      string `json:"hub_url" validate:"hub_url|required"`
            HubUser     string `json:"hub_user"`
            HubPassword string `json:"hub_password"`
            Namespace   string `json:"namespace" validate:"namespace|required"`
            IsTrust     bool   `json:"is_trust,omitempty" validate:"is_trust"`
        }   `json:"image_info,omitempty"`
    }
}

PluginShare PluginShare

type PluginShareHandle Uses

type PluginShareHandle struct {
    MQClient client.MQClient
    EtcdCli  *clientv3.Client
}

PluginShareHandle plugin share

func (*PluginShareHandle) Share Uses

func (s *PluginShareHandle) Share(ss PluginShare) (*PluginResult, *util.APIHandleError)

Share share app

func (*PluginShareHandle) ShareResult Uses

func (s *PluginShareHandle) ShareResult(shareID string) (i exector.ShareStatus, e *util.APIHandleError)

ShareResult 分享应用结果查询

type ServiceShareHandle Uses

type ServiceShareHandle struct {
    MQClient client.MQClient
    EtcdCli  *clientv3.Client
}

ServiceShareHandle service share

func (*ServiceShareHandle) Share Uses

func (s *ServiceShareHandle) Share(serviceID string, ss api_model.ServiceShare) (*APIResult, *util.APIHandleError)

Share 分享应用

func (*ServiceShareHandle) ShareResult Uses

func (s *ServiceShareHandle) ShareResult(shareID string) (i exector.ShareStatus, e *util.APIHandleError)

ShareResult 分享应用结果查询

Package share imports 11 packages (graph) and is imported by 2 packages. Updated 2019-04-04. Refresh now. Tools for package owners.