Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo interface { Get(key string) (runtime.Object, error) Search(namespace, pattern string) []runtime.Object Delete(key string) error Logs(ctx context.Context, key string) (<-chan Log, error) }
Repo is the interface of repository.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the layer of use case, it encapsulates and implements all of the use cases of the system.
func (*Service) Get ¶
Get get the object by the key, the format is "namespace/key", and if doesn't exist it return nil.
Click to show internal directories.
Click to hide internal directories.