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) Create(ctx context.Context, name string) (stack *Stack, err error)
- func (s *Store) Delete(ctx context.Context, id string) error
- func (s *Store) Get(ctx context.Context, id string) (*Stack, error)
- func (s *Store) GetByFragmentOrName(ctx context.Context, fragmentOrName string) (stack *Stack, err error)
- func (s *Store) GetByName(ctx context.Context, name string) (stack *Stack, err error)
- func (s *Store) List(ctx context.Context) ([]*Stack, error)
Constants ¶
View Source
const ( InvalidName = Error("name is invalid") AlreadyExists = Error("stack already exists") NotFound = Error("stack not found") )
Errors
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interface ¶
type Interface interface { // Create creates a new stack Create(ctx context.Context, name string) (stack *Stack, err error) // Get fetches a stack by id Get(ctx context.Context, id string) (stack *Stack, err error) // GetByName fetches a stack by name GetByName(ctx context.Context, name string) (stack *Stack, err error) // GetByFragmentOrName fetches a stack by fragment ID or name GetByFragmentOrName(ctx context.Context, fragmentOrName string) (stack *Stack, err error) // List lists stacks List(ctx context.Context) (stacks []*Stack, err error) // Delete deletes a stack by id Delete(ctx context.Context, id string) (err error) }
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) GetByFragmentOrName ¶ added in v0.12.0
func (s *Store) GetByFragmentOrName(ctx context.Context, fragmentOrName string) (stack *Stack, err error)
GetByFragmentOrName fetches a stack by fragment ID or name
Click to show internal directories.
Click to hide internal directories.