Documentation ¶
Overview ¶
Package stacks is a generated protocol buffer package.
It is generated from these files:
github.com/appcelerator/amp/data/stacks/stacks.proto
It has these top-level messages:
Stack
Index ¶
- Constants
- func CheckName(name string) (string, error)
- type Error
- type Interface
- type Stack
- func (*Stack) Descriptor() ([]byte, []int)
- func (m *Stack) GetCreateDt() int64
- func (m *Stack) GetId() string
- func (m *Stack) GetName() string
- func (m *Stack) GetOwner() *accounts.Account
- func (*Stack) ProtoMessage()
- func (m *Stack) Reset()
- func (m *Stack) String() string
- func (f *Stack) Validate() (err error)
- type Store
- func (s *Store) CreateStack(ctx context.Context, name string) (stack *Stack, err error)
- func (s *Store) DeleteStack(ctx context.Context, id string) error
- func (s *Store) GetStack(ctx context.Context, id string) (*Stack, error)
- func (s *Store) GetStackByFragmentOrName(ctx context.Context, fragmentOrName string) (stack *Stack, err error)
- func (s *Store) GetStackByName(ctx context.Context, name string) (stack *Stack, err error)
- func (s *Store) ListStacks(ctx context.Context) ([]*Stack, error)
- func (s *Store) Reset(ctx context.Context)
Constants ¶
View Source
const ( InvalidName = Error("name is invalid") StackAlreadyExists = Error("stack already exists") StackNotFound = Error("stack not found") )
Errors
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interface ¶
type Interface interface { // CreateStack creates a new stack CreateStack(ctx context.Context, name string) (stack *Stack, err error) // GetStack fetches a stack by id GetStack(ctx context.Context, id string) (stack *Stack, err error) // GetStackByName fetches a stack by name GetStackByName(ctx context.Context, name string) (stack *Stack, err error) // GetStackByFragmentOrName fetches a stack by fragment ID or name GetStackByFragmentOrName(ctx context.Context, fragmentOrName string) (stack *Stack, err error) // ListStacks lists stacks ListStacks(ctx context.Context) (stacks []*Stack, err error) // DeleteStack deletes a stack by id DeleteStack(ctx context.Context, id string) (err error) // Reset resets the stack store Reset(ctx context.Context) }
Interface defines the stack data access layer
type Stack ¶
type Stack struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Owner *accounts.Account `protobuf:"bytes,3,opt,name=owner" json:"owner,omitempty"` CreateDt int64 `protobuf:"varint,4,opt,name=create_dt,json=createDt" json:"create_dt,omitempty"` }
func (*Stack) Descriptor ¶
func (*Stack) GetCreateDt ¶
func (*Stack) ProtoMessage ¶
func (*Stack) ProtoMessage()
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements stack data.Interface
func (*Store) CreateStack ¶
CreateStack creates a new stack
func (*Store) DeleteStack ¶
DeleteStack deletes a stack by id
func (*Store) GetStackByFragmentOrName ¶ added in v0.9.1
func (s *Store) GetStackByFragmentOrName(ctx context.Context, fragmentOrName string) (stack *Stack, err error)
GetStackByFragmentOrName fetches a stack by fragment ID or name
func (*Store) GetStackByName ¶
GetStackByName fetches a stack by name
func (*Store) ListStacks ¶
ListStacks lists stacks
Click to show internal directories.
Click to hide internal directories.