Documentation
¶
Index ¶
- func Keywords(prefix string) []*keywords.Keyword
- type DataRecv
- func (t *DataRecv) DatastoreList(_ context.Context) naming.Paths
- func (t *DataRecv) Do(ctx context.Context) error
- func (t *DataRecv) HasMetadata(path naming.Path, k string) bool
- func (t *DataRecv) InstallDataByKind(kind naming.Kind) (bool, error)
- func (t *DataRecv) InstallFromDatastore(ctx context.Context, from object.DataStore) (bool, error)
- func (t *DataRecv) OldSendSignals(ctx context.Context) error
- func (t *DataRecv) RootDirPerm() *os.FileMode
- func (t *DataRecv) SendSignals(ctx context.Context, signals *volsignal.T) error
- func (t *DataRecv) SetReceiver(to receiver)
- func (t *DataRecv) Status()
- type KeyMeta
- type SigRoute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataRecv ¶
type DataRecv struct {
// Install is the list of files or directories to install in the data receiver.
Install []string `json:"install"`
// User is the default owner user of the installed items.
User string `json:"user"`
// Group is the default owner group of the installed items.
Group string `json:"group"`
// Perm is the default permission of the installed files.
Perm *os.FileMode `json:"perm"`
// DirPerm is the default permission of the installed directories.
// If not set, DirPerm defaults to Perm with execution bit over read bits (e.g. 0640 => 0750).
DirPerm *os.FileMode `json:"dirperm"`
// Deprecated by Install
Configs []string `json:"configs"`
Secrets []string `json:"secrets"`
Directories []string `json:"directories"`
Signal string `json:"signal"`
// contains filtered or unexported fields
}
func (*DataRecv) HasMetadata ¶
HasMetadata returns true if the volume has a configs or secrets reference to <namespace>/<kind>/<name>[/<key>]
func (*DataRecv) InstallDataByKind ¶
func (*DataRecv) InstallFromDatastore ¶
func (*DataRecv) RootDirPerm ¶
func (*DataRecv) SendSignals ¶
func (*DataRecv) SetReceiver ¶
func (t *DataRecv) SetReceiver(to receiver)
type KeyMeta ¶
func ParseKeyMetaRel ¶
func ParseKeyMetaRelWithFallback ¶
ParseKeyMetaRelWithFallback parses a key reference in the format "from <path> key <key>" and falls back to the legacy format "<path>" with a default key name for backward compatibility.
func (*KeyMeta) RootDecode ¶
Click to show internal directories.
Click to hide internal directories.