Documentation ¶
Index ¶
- Constants
- type APIInfo
- type AssetsInfo
- type BaseGetter
- type FSGetter
- func (gg *FSGetter) FetchAPIDef(spec *TykSourceSpec) ([]objects.DBApiDefinition, error)
- func (gg *FSGetter) FetchAssets(spec *TykSourceSpec) ([]objects.DBAssets, error)
- func (gg *FSGetter) FetchPolicies(spec *TykSourceSpec) ([]objects.Policy, error)
- func (gg *FSGetter) FetchRepo() error
- func (gg *FSGetter) FetchTykSpec() (*TykSourceSpec, error)
- type Getter
- type GitGetter
- func (gg *GitGetter) FetchAPIDef(spec *TykSourceSpec) ([]objects.DBApiDefinition, error)
- func (gg *GitGetter) FetchAssets(spec *TykSourceSpec) ([]objects.DBAssets, error)
- func (gg *GitGetter) FetchPolicies(spec *TykSourceSpec) ([]objects.Policy, error)
- func (gg *GitGetter) FetchReadme() (string, error)
- func (gg *GitGetter) FetchRepo() error
- func (gg *GitGetter) FetchTykSpec() (*TykSourceSpec, error)
- type PolicyInfo
- type PublishAction
- type Publisher
- type SpecType
- type TykSourceSpec
Constants ¶
View Source
const ( CREATE PublishAction = "create" UPDATE PublishAction = "update" ERROR PublishAction = "error" TYPE_APIDEF SpecType = "apidef" TYPE_OAI SpecType = "oas" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIInfo ¶
type APIInfo struct { File string `json:"file,omitempty"` APIID string `json:"api_id,omitempty"` DBID string `json:"db_id,omitempty"` ORGID string `json:"org_id,omitempty"` OAS struct { OverrideTarget string `json:"override_target,omitempty"` OverrideListenPath string `json:"override_listen_path,omitempty"` VersionName string `json:"version_name,omitempty"` StripListenPath bool `json:"strip_listen_path,omitempty"` } `json:"oas,omitempty"` }
type AssetsInfo ¶ added in v1.5.0
type BaseGetter ¶
type BaseGetter struct { Getter // contains filtered or unexported fields }
type FSGetter ¶
type FSGetter struct { *BaseGetter Getter // contains filtered or unexported fields }
func (*FSGetter) FetchAPIDef ¶
func (gg *FSGetter) FetchAPIDef(spec *TykSourceSpec) ([]objects.DBApiDefinition, error)
func (*FSGetter) FetchAssets ¶ added in v1.5.0
func (gg *FSGetter) FetchAssets(spec *TykSourceSpec) ([]objects.DBAssets, error)
func (*FSGetter) FetchPolicies ¶
func (gg *FSGetter) FetchPolicies(spec *TykSourceSpec) ([]objects.Policy, error)
func (*FSGetter) FetchTykSpec ¶
func (gg *FSGetter) FetchTykSpec() (*TykSourceSpec, error)
type Getter ¶
type Getter interface { FetchRepo() error FetchAPIDef(spec *TykSourceSpec) ([]objects.DBApiDefinition, error) FetchPolicies(spec *TykSourceSpec) ([]objects.Policy, error) FetchAssets(spec *TykSourceSpec) ([]objects.DBAssets, error) FetchTykSpec() (*TykSourceSpec, error) FetchReadme() (string, error) }
type GitGetter ¶
type GitGetter struct { *BaseGetter Getter // contains filtered or unexported fields }
func NewGGetter ¶
func (*GitGetter) FetchAPIDef ¶
func (gg *GitGetter) FetchAPIDef(spec *TykSourceSpec) ([]objects.DBApiDefinition, error)
func (*GitGetter) FetchAssets ¶ added in v1.5.0
func (gg *GitGetter) FetchAssets(spec *TykSourceSpec) ([]objects.DBAssets, error)
func (*GitGetter) FetchPolicies ¶
func (gg *GitGetter) FetchPolicies(spec *TykSourceSpec) ([]objects.Policy, error)
func (*GitGetter) FetchReadme ¶ added in v1.5.0
func (*GitGetter) FetchTykSpec ¶
func (gg *GitGetter) FetchTykSpec() (*TykSourceSpec, error)
type PolicyInfo ¶
type PublishAction ¶
type PublishAction string
type Publisher ¶
type Publisher interface { Name() string CreateAPIs(apiDefs *[]objects.DBApiDefinition) error UpdateAPIs(apiDefs *[]objects.DBApiDefinition) error SyncAPIs(apiDefs []objects.DBApiDefinition) error CreatePolicies(pols *[]objects.Policy) error UpdatePolicies(pols *[]objects.Policy) error SyncPolicies(pols []objects.Policy) error CreateAssets(assets *[]objects.DBAssets) error SyncAssets(assets []objects.DBAssets) error UpdateAssets(assets *[]objects.DBAssets) error Reload() error }
type TykSourceSpec ¶
type TykSourceSpec struct { Type SpecType `json:"type,omitempty"` Files []APIInfo `json:"files,omitempty"` Policies []PolicyInfo `json:"policies,omitempty"` Assets []AssetsInfo `json:"assets,omitempty"` }
Click to show internal directories.
Click to hide internal directories.