resource

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	sptty.BaseConfig
	Url         string `yaml:"url"`
	OssEndpoint string `yaml:"ossEndpoint"`
}

func (*Config) ConfigName

func (s *Config) ConfigName() string

type Service

type Service struct {
	sptty.BaseService
	base.IServiceResource
	// contains filtered or unexported fields
}

func (*Service) CreateResources

func (s *Service) CreateResources(resources []*base.Resource) error

func (*Service) GetResourceUrl

func (s *Service) GetResourceUrl() string

func (*Service) GetResourcesByIDs

func (s *Service) GetResourcesByIDs(ids []string) ([]*base.Resource, error)

func (*Service) GetResourcesByObjectID

func (s *Service) GetResourcesByObjectID(objectID string) ([]*base.Resource, error)

func (*Service) Init

func (s *Service) Init(app sptty.ISptty) error

func (*Service) RemoveResourcesByIDs

func (s *Service) RemoveResourcesByIDs(ids []string) error

func (*Service) ServiceName

func (s *Service) ServiceName() string

func (*Service) SetOssEndpoint

func (s *Service) SetOssEndpoint(endpoint string)

decrepit

Jump to

Keyboard shortcuts

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