Documentation
¶
Index ¶
- Variables
- type Config
- type Service
- func (s *Service) AutoMigrate() error
- func (s *Service) CreateAPIToken(ctx context.Context, clientName string, token string) (*string, error)
- func (s *Service) CreateFunction(ctx context.Context, name string, image string, skipLogging bool, ...) (*string, error)
- func (s *Service) CreateInvocation(ctx context.Context, fn model.Function, clientName string, input *string) (*string, error)
- func (s *Service) CreateUser(ctx context.Context, username string, encryptedPassword string, email *string, ...) (*string, error)
- func (s *Service) DeleteAPIToken(ctx context.Context, id string) error
- func (s *Service) FetchAPIToken(ctx context.Context, tokenString string) (*model.APIToken, error)
- func (s *Service) FetchAPITokenByID(ctx context.Context, id string) (*model.APIToken, error)
- func (s *Service) FetchAPITokens(ctx context.Context, pageNumber uint32, pageSize uint32) ([]model.APIToken, error)
- func (s *Service) FetchFunction(ctx context.Context, name string) (*model.Function, error)
- func (s *Service) FetchFunctionInvocations(ctx context.Context, functionID string, pageNumber uint32, pageSize uint32) ([]model.Invocation, error)
- func (s *Service) FetchFunctions(ctx context.Context, pageNumber uint32, pageSize uint32) ([]model.Function, error)
- func (s *Service) FetchInvocation(ctx context.Context, id string) (*model.Invocation, error)
- func (s *Service) FetchInvocations(ctx context.Context, pageNumber uint32, pageSize uint32) ([]model.Invocation, error)
- func (s *Service) FetchUser(ctx context.Context, username string) (*model.User, error)
- func (s *Service) UpdateInvocationFailed(ctx context.Context, id string, endedAt time.Time, errorMessage *string) error
- func (s *Service) UpdateInvocationStarted(ctx context.Context, id string, startedAt time.Time) error
- func (s *Service) UpdateInvocationSucceeded(ctx context.Context, id string, endedAt time.Time, output *string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPagination = errors.New("invalid page request")
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AutoMigrate ¶
func (*Service) CreateAPIToken ¶ added in v1.1.0
func (*Service) CreateFunction ¶
func (*Service) CreateInvocation ¶
func (*Service) CreateUser ¶ added in v1.3.0
func (*Service) DeleteAPIToken ¶ added in v1.1.0
func (*Service) FetchAPIToken ¶ added in v1.1.0
func (*Service) FetchAPITokenByID ¶ added in v1.5.0
func (*Service) FetchAPITokens ¶ added in v1.1.0
func (*Service) FetchFunction ¶
func (*Service) FetchFunctionInvocations ¶
func (*Service) FetchFunctions ¶
func (*Service) FetchInvocation ¶
func (*Service) FetchInvocations ¶ added in v1.4.0
func (*Service) UpdateInvocationFailed ¶
func (*Service) UpdateInvocationStarted ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.